Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1615191 - OLM install failed via openshift-ansible
OLM install failed via openshift-ansible
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.11.0
Unspecified Unspecified
high Severity medium
: ---
: 3.11.0
Assigned To: Evan Cordell
Jian Zhang
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-12 21:27 EDT by Jian Zhang
Modified: 2018-10-11 03:25 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:24:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:25 EDT

  None (edit)
Description Jian Zhang 2018-08-12 21:27:42 EDT
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 17:24:48 EDT
Should be in openshift-ansible-3.11.0-0.15.0
Comment 8 errata-xmlrpc 2018-10-11 03:24:38 EDT
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

Note You need to log in before you can comment on or make changes to this bug.