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

Bug 1615191

Summary: OLM install failed via openshift-ansible
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: InstallerAssignee: Evan Cordell <ecordell>
Status: CLOSED ERRATA QA Contact: Jian Zhang <jiazha>
Severity: medium Docs Contact:
Priority: high    
Version: 3.11.0CC: aos-bugs, ecordell, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.11.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: 2018-10-11 07:24:38 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 Jian Zhang 2018-08-13 01:27:42 UTC
Description of problem:
Got below errors:
TASK [olm : Apply aggregate-olm-edit ClusterRole manifest] *********************
Monday 13 August 2018  08:52:32 +0800 (0:00:01.076)       0:24:14.997 ********* 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was:     ^
fatal: [host-8-246-132.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1747, in <module>\n    main()\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1740, in main\n    rval = OCObject.run_ansible(module.params, module.check_mode)\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1679, in run_ansible\n    update = ocobj.needs_update(params['files'], params['content'])\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1588, in needs_update\n    data = Utils.get_resource_file(files[0], content_type)\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1298, in get_resource_file\n    contents = yaml.safe_load(contents)\n  File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 93, in safe_load\n    return load(stream, SafeLoader)\n  File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 71, in load\n    return loader.get_single_data()\n  File \"/usr/lib64/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n    node = self.get_single_node()\n  File \"/usr/lib64/python2.7/site-packages/yaml/composer.py\", line 43, in get_single_node\n    event.start_mark)\nyaml.composer.ComposerError: expected a single document in the stream\n  in \"<string>\", line 3, column 1:\n    kind: ClusterRole\n    ^\nbut found another document\n  in \"<string>\", line 15, column 1:\n    ---\n    ^\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

Version-Release number of selected component (if applicable):
Openshift-ansible master branch

How reproducible:
always


Steps to Reproduce:
1. Enable the olm in the inventroy file:
  openshift_enable_olm: true

2. Install it via openshift-ansible


Actual results:
Install failed:
TASK [olm : Apply aggregate-olm-edit ClusterRole manifest] *********************
Monday 13 August 2018  08:52:32 +0800 (0:00:01.076)       0:24:14.997 ********* 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was:     ^
fatal: [host-8-246-132.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1747, in <module>\n    main()\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1740, in main\n    rval = OCObject.run_ansible(module.params, module.check_mode)\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1679, in run_ansible\n    update = ocobj.needs_update(params['files'], params['content'])\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1588, in needs_update\n    data = Utils.get_resource_file(files[0], content_type)\n  File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1298, in get_resource_file\n    contents = yaml.safe_load(contents)\n  File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 93, in safe_load\n    return load(stream, SafeLoader)\n  File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 71, in load\n    return loader.get_single_data()\n  File \"/usr/lib64/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n    node = self.get_single_node()\n  File \"/usr/lib64/python2.7/site-packages/yaml/composer.py\", line 43, in get_single_node\n    event.start_mark)\nyaml.composer.ComposerError: expected a single document in the stream\n  in \"<string>\", line 3, column 1:\n    kind: ClusterRole\n    ^\nbut found another document\n  in \"<string>\", line 15, column 1:\n    ---\n    ^\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}


Expected results:
The OLM install success.

Additional info:

Comment 4 Scott Dodson 2018-08-14 21:24:48 UTC
Should be in openshift-ansible-3.11.0-0.15.0

Comment 8 errata-xmlrpc 2018-10-11 07:24:38 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/RHBA-2018:2652