Bug 1507787

Summary: default ansible_service_broker_etcd_image_prefix should use fully qualified etcd image name
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: InstallerAssignee: Fabian von Feilitzsch <fabian>
Status: CLOSED CURRENTRELEASE QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-10 20:59:58 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 Johnny Liu 2017-10-31 07:34:28 UTC
Description of problem:
According to BZ#1506138, default __ansible_service_broker_etcd_image_prefix in roles/ansible_service_broker/vars/openshift-enterprise.yml should be set to:
registry.access.redhat.com/rhel7/;

In openshift-ansible-3.7.0-0.185.0.git.0.eb61aff.el7.noarch code, it is:
__ansible_service_broker_etcd_image_prefix: rhel7/

Which will lead to the following error:
# oc get po
NAME           READY     STATUS             RESTARTS   AGE
asb-7-deploy   0/1       Error              0          39m
asb-8-deploy   1/1       Running            0          4m
asb-8-nspbk    0/2       CrashLoopBackOff   5          4m

# oc describe po asb-8-nspbk
<--snip-->
  4m		4m		2	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{asb}	Normal		Created			Created container
  4m		4m		2	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{asb}	Normal		Started			Started container
  4m		4m		3	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{etcd}	Normal		BackOff			Back-off pulling image "rhel7/etcd:latest"
  4m		4m		3	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{etcd}	Warning		Failed			Error: ImagePullBackOff
  4m		4m		2	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{etcd}	Normal		Pulling			pulling image "rhel7/etcd:latest"
  4m		4m		3	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{asb}	Warning		BackOff			Back-off restarting failed container
  4m		4m		2	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{etcd}	Warning		Failed			Failed to pull image "rhel7/etcd:latest": rpc error: code = 2 desc = errors:
denied: requested access to the resource is denied
unauthorized: authentication required

  4m	4m	2	kubelet, qe-chezhang-1node-registry-router-1	spec.containers{etcd}	Warning	Failed	Error: ErrImagePull

In this case, we set "registry.reg-aws.openshift.com" to openshift_docker_additional_registries for openshift-ansible inventory host file.


Version-Release number of the following components:
openshift-ansible-3.7.0-0.185.0.git.0.eb61aff.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Fabian von Feilitzsch 2017-11-03 19:37:06 UTC
https://github.com/openshift/openshift-ansible/pull/6010

Comment 2 openshift-github-bot 2017-11-06 02:49:57 UTC
Commits pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/e760ccf93410c94f174a694f3d6bb02f5a5c82e9
Bug 1507787- add full path to default asb etcd image

https://github.com/openshift/openshift-ansible/commit/5f08527527b11afce4b7676f32e0dd99eae86546
Merge pull request #6010 from fabianvf/1507787-asb-fix-ocp-defaults

Bug 1507787- add full path to default asb etcd image

Comment 4 Johnny Liu 2017-11-07 06:18:58 UTC
Verified this bug with openshift-ansible-3.7.0-0.196.0.git.0.27cd7ec.el7.noarch, and PASS.


# oc get dc asb -n openshift-ansible-service-broker -o yaml | grep etcd | grep image
        image: registry.access.redhat.com/rhel7/etcd:latest