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 :

  1. It should be fixed
  2. 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)

Most upvoted comments

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:

➜ oc describe clusterservicebroker ansible-service-broker
Name:         ansible-service-broker
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  servicecatalog.k8s.io/v1beta1
Kind:         ClusterServiceBroker
Metadata:
  Creation Timestamp:  2018-09-01T10:15:32Z
  Finalizers:
    kubernetes-incubator/service-catalog
  Generation:        3
  Resource Version:  2552256
  Self Link:         /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/ansible-service-broker
  UID:               f5d56063-adcf-11e8-8705-0a580a810005
Spec:
  Auth Info:
    Bearer:
      Secret Ref:
        Name:       asb-client
        Namespace:  openshift-ansible-service-broker
  Ca Bundle:        <ca-bundle>
  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-09-10T23:42:52Z
    Message:                    Successfully fetched catalog entries from broker.
    Reason:                     FetchedCatalog
    Status:                     True
    Type:                       Ready
  Last Catalog Retrieval Time:  2018-09-10T23:42:52Z
  Reconciled Generation:        3
Events:
  Type     Reason                Age                   From                                Message
  ----     ------                ----                  ----                                -------
  Normal   FetchedCatalog        12m                   service-catalog-controller-manager  Successfully fetched catalog entries from broker.

This image dos not works for me: docker.io/ansibleplaybookbundle/origin-ansible-service-broker:ansible-service-broker-1.2.17-1 but 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:

openshift_enable_service_catalog=true
openshift_template_service_broker_namespaces=['openshift']
template_service_broker_selector={"env":"infra"}
ansible_service_broker_local_registry_whitelist=['.*-apb$']
ansible_service_broker_registry_whitelist=['.*-apb$']

I am accessing the default registries, dockerhub and local.