origin: Error syncing catalog from ServiceBroker
Hello,
I deployed Openshift Origin with Ansible using tag openshift-ansible-3.9.0-0.22.0 because the latest (openshift-ansible-3.9.0-0.31.0) fails to deploy the web-console.
After the install is over I get the usual broken asb because asb-etcd pvc fail to bind a volume because openshift-ansible doesn’t take account of this line in my inventory : openshift_hosted_etcd_storage_kind=glusterfs
I then manually fix asb by deleting the existing etcd pvc then creating a new one with the same name using my glusterfs storageclass.
After that, I restart the two deployments (asb + asb-etcd). Everything is ok asb-etcd works well with the new pvc.
Problem is that I have a recurrent error when service catalog tries to get ansible service broker catalog.
Here is oc describe clusterservicebroker ansible-service-broker output
Name: ansible-service-broker
Namespace:
Labels: <none>
Annotations: <none>
API Version: servicecatalog.k8s.io/v1beta1
Kind: ClusterServiceBroker
Metadata:
Creation Timestamp: 2018-01-29T01:02:27Z
Generation: 1
Resource Version: 113530
Self Link: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/ansible-service-broker
UID: 13399600-0490-11e8-81b6-0a580a810203
Spec:
Auth Info:
Bearer:
Secret Ref:
Name: asb-client
Namespace: openshift-ansible-service-broker
Ca Bundle: ...removed for the example
Relist Behavior: Duration
Relist Duration: 15m0s
Relist Requests: 0
URL: https://asb.openshift-ansible-service-broker.svc:1338/ansible-service-broker
Status:
Conditions:
Last Transition Time: 2018-01-29T01:02:31Z
Message: Error syncing catalog from ServiceBroker. Error getting catalog payload for broker "ansible-service-broker"; received zero services; at least one service is required
Reason: ErrorSyncingCatalog
Status: False
Type: Ready
Reconciled Generation: 0
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
13h 1m 2491 service-catalog-controller-manager Warning ErrorSyncingCatalog Error getting catalog payload for broker "ansible-service-broker"; received zero services; at least one service is required
This issue references the same problem : Bug 1509366 - Error syncing catalog from ServiceBroker.
But :
- It should be fixed
- I never set any credentials so I don’t see how it can be a credentials issue
Version
oc version
oc v3.7.0+7ed6862
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server ****
openshift v3.7.0+7ed6862
kubernetes v1.7.6+a08f5eeb62
Expected Result
OAB working with no errors …
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 35 (15 by maintainers)
I found an issue open in openshift-ansible: https://github.com/openshift/openshift-ansible/issues/9960
Basically, the installer refers to latest version of image ansibleplaybookbundle/origin-ansible-service-broker, when it should actually point to ansible-service-broker-1.2.17-1.
Manually replacing the version inside the deployment config fixed the issue:
This image dos not works for me:
docker.io/ansibleplaybookbundle/origin-ansible-service-broker:ansible-service-broker-1.2.17-1but this fixed my issues:docker.io/ansibleplaybookbundle/origin-ansible-service-broker:ansible-service-broker-1.3.23-1@jmrodri I’ve used openshift-ansible on a multi-master cluster. This is what I’ve added to my hosts file:
I am accessing the default registries, dockerhub and local.