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

Bug 1525828

Summary: CFME deployment failed on ocp-3.8
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.8.0CC: aos-bugs, 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-12-14 14:54:32 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 Gaoyun Pei 2017-12-14 06:42:06 UTC
Description of problem:
When running CFME deployment playbook on an ocp-3.8 cluster, it fails as below:

TASK [openshift_management : Ensure the Management App is created] **********************************************************************************************************
fatal: [x]: FAILED! => {"changed": true, "msg": [{"cmd": "/usr/bin/oc create -f /tmp/manageiq-secrets-wPWstm -n openshift-management", "kind": "Secret", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/ansible-secrets-oaLAN6 -n openshift-management", "kind": "Secret", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/postgresql-configs-fedMUp -n openshift-management", "kind": "ConfigMap", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/httpd-configs-orsyyL -n openshift-management", "kind": "ConfigMap", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/httpd-auth-configs-SgGLF_ -n openshift-management", "kind": "ConfigMap", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/manageiq-vibI5e -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/httpd-zRzOlq -n openshift-management", "kind": "Route", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/manageiq-postgresql-XzJqkq -n openshift-management", "kind": "PersistentVolumeClaim", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/manageiq-Ntb77U -n openshift-management", "kind": "StatefulSet", "results": {}, "returncode": 1, "stderr": "Error from server (BadRequest): error when creating \"/tmp/manageiq-Ntb77U\": StatefulSet in version \"v1beta1\" cannot be handled as a StatefulSet: json: cannot unmarshal string into Go struct field StatefulSetSpec.replicas of type int32\n", "stdout": ""}, {"cmd": "/usr/bin/oc create -f /tmp/manageiq-backend-4WnPEG -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/manageiq-backend-4ORCbB -n openshift-management", "kind": "StatefulSet", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/memcached-yyRzJy -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/memcached-Dcc96j -n openshift-management", "kind": "DeploymentConfig", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/postgresql-MWDAzb -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/postgresql-AEuvIF -n openshift-management", "kind": "DeploymentConfig", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/ansible-YP2p3C -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/ansible-ijMxr5 -n openshift-management", "kind": "DeploymentConfig", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/httpd-SSiDeR -n openshift-management", "kind": "Service", "results": {}, "returncode": 0}, {"cmd": "/usr/bin/oc create -f /tmp/httpd-rZAi7x -n openshift-management", "kind": "DeploymentConfig", "results": {}, "returncode": 0}], "state": "present"}
	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/openshift-management/config.retry



Version-Release number of the following components:
openshift-ansible-3.8.18-1.git.140.794367f.el7.noarch
ansible-2.4.2.0-1.el7ae.noarch
openshift v3.8.18

How reproducible:
Always

Steps to Reproduce:
1. Add following options into ansible inventory file and run CFME deployment playbook
openshift_management_install_beta=true
openshift_management_app_template=miq-template
openshift_management_storage_class=cloudprovider

#ansible-playbook -i host/host /usr/share/ansible/openshift-ansible/playbooks/openshift-management/config.yml


Actual results:
Full log of the playbook will be attached.

Expected results:

Additional info:

Comment 2 Scott Dodson 2017-12-14 14:54:32 UTC
This is a 3.8 change to config parsing but it looks as if they're working on fixing that.

*** This bug has been marked as a duplicate of bug 1525162 ***