Bug 1615191 - OLM install failed via openshift-ansible
Summary: OLM install failed via openshift-ansible
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 3.11.0
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-13 01:27 UTC by Jian Zhang
Modified: 2018-10-11 07:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-11 07:24:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:25:04 UTC

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


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