redhat-nfvpe / base-infra-bootstrap

Generic node bootstrap for virtual KVM or baremetal
Apache License 2.0
3 stars 4 forks source link

openshift_service_catalog is failed at openshift-ansible #29

Closed s1061123 closed 6 years ago

s1061123 commented 6 years ago

I met the following failure in openshift-ansible based on inventory/example_openshift-ansible/vanilla.inventory file.

Condition:

Failure logs:

# ansible-playbook -i ./inventory/test1 playbooks/deploy_cluster.yml
(snip)
TASK [openshift_master : Ensure that Template Service Broker has nodes to run on] *********************************
Friday 02 March 2018  06:53:29 -0500 (0:00:00.526)       0:05:51.353 **********
fatal: [openshift-master]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{  __schedulable_nodes_matching_selector['results']['results'][0]['items'] | default([]) | length != 0 }}): object of type 'builtin_function_or_method' has no len()"}

Adding following config in inventory, playbooks/deploy_cluster.yml works fine.

openshift_enable_service_catalog=false
template_service_broker_install=false

Did you see such issue? or how about to add above config in our inventory/example_openshift-ansible/vanilla.inventory?

leifmadsen commented 6 years ago

I was able to get these working with the 3.9 deployment and containerization methods that Doug had outlined. However, I was having an issue with the ASB on that deployment.

Which version were you using?

s1061123 commented 6 years ago

I use https://github.com/redhat-nfvpe/base-infra-bootstrap/blob/master/inventory/example_openshift-ansible/vanilla.inventory, so version is not selected. As far as I checked, 3.7 is used for now.

s1061123 commented 6 years ago

As @leifmadsen , I also see it works in atomic deploy (centos atomic with inventory/example_openshift-ansible/atomic.inventory).

I will try to find why...

leifmadsen commented 6 years ago

Yea I know @dougbtv was having some issues with deployments of OpenShift on CentOS as well, and I think just switched to using Atomic mostly?

dougbtv commented 6 years ago

Spot on, need atomic if you're using containerized: true and want something > 3.7.0

On Wed, Mar 7, 2018, 7:45 AM Leif Madsen notifications@github.com wrote:

Yea I know @dougbtv https://github.com/dougbtv was having some issues with deployments of OpenShift on CentOS as well, and I think just switched to using Atomic mostly?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/redhat-nfvpe/base-infra-bootstrap/issues/29#issuecomment-371127221, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN_vX-pKFAK6sI7uDsjDEgLt13b3YNtks5tb9ZwgaJpZM4SZwJ2 .

s1061123 commented 6 years ago

@dougbtv @leifmadsen , thank you for your info! well, we may need to write somewhere (like README.md) otherwise everyone may try and fail....

leifmadsen commented 6 years ago

Good call. I'll do that.