Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1467798

Summary: asb pod label is inconsistent with asb svc label
Product: OpenShift Container Platform Reporter: DeShuai Ma <dma>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:29:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description DeShuai Ma 2017-07-05 08:02:48 UTC
Description of problem:
After install asb by ansible, then check asb endpoints is null. asb pod label is inconsistent with asb svc label.

Version-Release number of selected component (if applicable):
openshift v3.6.133
kubernetes v1.6.1+5115d708d7
etcd 3.2.1
openshift-ansible-3.6.133-1.git.0.950bb48.el7.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1. Deploy with below parameter:
  ansible_service_broker_image_prefix: ansibleplaybookbundle/
  ansible_service_broker_image_tag: latest
  ansible_service_broker_etcd_image_prefix: quay.io/coreos/
  ansible_service_broker_etcd_image_tag: latest
  ansible_service_broker_etcd_image_etcd_path: /usr/local/bin/etcd

2. After complete install check asb svc, pod and endponints
# oc get endpoints asb -n openshift-ansible-service-broker
NAME      ENDPOINTS         AGE
asb       <none>            1h

The svc's label is
        "labels": {
            "app": "ansible-service-broker",
            "service": "asb"
        },

The asb pod's label is:
        "labels": {
            "app": "openshift-ansible-service-broker",
            "pod-template-hash": "4275931488",
            "service": "asb"
        },


3.

Actual results:
asb endpoints is null

Expected results:
asb pod label is consistent with asb svc label

Additional info:
https://github.com/openshift/openshift-ansible/blob/master/roles/ansible_service_broker/tasks/install.yml#L50-L52
https://github.com/openshift/openshift-ansible/blob/master/roles/ansible_service_broker/tasks/install.yml#L180-L182

Comment 1 Scott Dodson 2017-07-05 19:15:11 UTC
https://github.com/openshift/openshift-ansible/pull/4684 fixes this

Comment 3 DeShuai Ma 2017-07-07 08:31:37 UTC
Verify on openshift v3.6.136. 
After install we can get endpoints correctly.
# oc get endpoints -n kube-service-catalog
NAME                                 ENDPOINTS   AGE
apiserver                                        5h
controller-manager                               5h

Comment 5 errata-xmlrpc 2017-08-10 05:29:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716