Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1510154

Summary: Service Catalog playbook get triggered when openshift_enable_service_catalog is not set in the inventory file
Product: OpenShift Container Platform Reporter: Hongkai Liu <hongkliu>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED NOTABUG QA Contact: Johnny Liu <jialiu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.7.0CC: aos-bugs, hongkliu, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
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-06 19:53:25 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:

Description Hongkai Liu 2017-11-06 19:43:09 UTC
Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible
5efcf4a2f (tag: openshift-ansible-3.7.0-0.195.0) Automatic commit of package [openshift-ansible] release [3.7.0-0.195.0].
rpm -q ansible
ansible --version
2.4.0.0

How reproducible:

Steps to Reproduce:
1. run byo playbook: playbooks/byo/config.yml
2.
3.

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

TASK [openshift_service_catalog : wait for api server to be ready] *************
Monday 06 November 2017  15:53:31 +0000 (0:00:02.503)       0:39:30.658 ******* 
FAILED - RETRYING: wait for api server to be ready (120 retries left).
...
FAILED - RETRYING: wait for api server to be ready (1 retries left).
fatal: [ec2-54-202-209-230.us-west-2.compute.amazonaws.com]: FAILED! => {"attempts": 120, "changed": false, "cmd": ["curl", "-k", "https://apiserver.kube-service-catalog.svc/healthz"], "delta": "0:00:01.010756", "end": "2017-11-06 16:01:53.603275", "failed": true, "msg": "non-zero return code", "rc": 7, "start": "2017-11-06 16:01:52.592519", "stderr": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0curl: (7) Failed connect to apiserver.kube-service-catalog.svc:443; Connection refused", "stderr_lines": ["  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current", "                                 Dload  Upload   Total   Spent    Left  Speed", "", "  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0", "  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0curl: (7) Failed connect to apiserver.kube-service-catalog.svc:443; Connection refused"], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/home/slave4/workspace/Launch Environment Flexy/private-openshift-ansible/playbooks/byo/config.retry

PLAY RECAP *********************************************************************
ec2-34-209-87-193.us-west-2.compute.amazonaws.com : ok=187  changed=56   unreachable=0    failed=0   
ec2-34-216-20-113.us-west-2.compute.amazonaws.com : ok=187  changed=57   unreachable=0    failed=0   
ec2-54-200-240-84.us-west-2.compute.amazonaws.com : ok=187  changed=56   unreachable=0    failed=0   
ec2-54-202-209-230.us-west-2.compute.amazonaws.com : ok=589  changed=221  unreachable=0    failed=1   
ec2-54-202-86-221.us-west-2.compute.amazonaws.com : ok=187  changed=56   unreachable=0    failed=0   
ec2-54-203-225-230.us-west-2.compute.amazonaws.com : ok=187  changed=56   unreachable=0    failed=0   
localhost                  : ok=12   changed=0    unreachable=0    failed=0 

INSTALLER STATUS ***************************************************************
Initialization             : Complete
Health Check               : Complete
etcd Install               : Complete
Master Install             : Complete
Master Additional Install  : Complete
Node Install               : Complete
Hosted Install             : Complete
Service Catalog Install    : In Progress
	This phase can be restarted by running: playbooks/byo/openshift-cluster/service-catalog.yml

Expected results:
Service Catalog should not be triggered at all when openshift_enable_service_catalog does not show in the inventory file.

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

We can work around the problem by openshift_enable_service_catalog=false.
Should it be false by default?

Comment 3 Scott Dodson 2017-11-06 19:53:25 UTC
This is expected, the service catalog, ASB and TSB should be enabled by default now per the service catalog team.