Bug 1449682

Summary: [RFE] Embedded Ansible role cannot be enabled in podified environment
Product: Red Hat CloudForms Management Engine Reporter: Dmitry Misharov <dmisharo>
Component: cfme-openshift-appAssignee: Satoe Imaishi <simaishi>
Status: CLOSED ERRATA QA Contact: Ievgen Zapolskyi <izapolsk>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.8.0CC: abellott, bazulay, gtanzill, jfrey, jhardy, lavenel, obarenbo, simaishi
Target Milestone: GAKeywords: FutureFeature, RFE
Target Release: 5.9.0   
Hardware: All   
OS: All   
Whiteboard: container:pod:ansible
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:33:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Dmitry Misharov 2017-05-10 12:46:18 UTC
Version-Release number of selected component (if applicable):
5.8.0.14-rc3.20170509175238_5dbf87a

How reproducible:
Always

Steps to Reproduce:
1. Use podified CFME.
2. Enable Embedded Ansible role.


Actual results:
Embedded Ansible role is not enabled.

Expected results:
Embedded Ansible role should be enabled.

Additional info:
[----] E, [2017-05-10T12:37:02.933423 #356:b05ce80] ERROR -- : AwesomeSpawn: ansible-tower-setup exit code: 2
[----] E, [2017-05-10T12:37:02.933510 #356:b05ce80] ERROR -- : AwesomeSpawn: /var/lib/awx/setup/setup.sh: line 333: sudo: command not found
[----] E, [2017-05-10T12:37:02.933741 #356:b05ce80] ERROR -- : [AwesomeSpawn::CommandResultError]: ansible-tower-setup exit code: 2  Method:[rescue in do_before_work_loop]
[----] E, [2017-05-10T12:42:42.313053 #356:f3f3cc] ERROR -- : /opt/rh/cfme-gemset/gems/awesome_spawn-1.4.1/lib/awesome_spawn.rb:105:in `run!'
/var/www/miq/vmdb/lib/embedded_ansible.rb:102:in `block in run_setup_script'
/var/www/miq/vmdb/lib/embedded_ansible.rb:112:in `with_inventory_file'
/var/www/miq/vmdb/lib/embedded_ansible.rb:95:in `run_setup_script'
/var/www/miq/vmdb/lib/embedded_ansible.rb:54:in `start'
/var/www/miq/vmdb/app/models/embedded_ansible_worker/runner.rb:37:in `setup_ansible'
/var/www/miq/vmdb/app/models/embedded_ansible_worker/runner.rb:13:in `do_before_work_loop'
/var/www/miq/vmdb/app/models/embedded_ansible_worker/runner.rb:7:in `prepare'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:129:in `start'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:21:in `start_worker'
/var/www/miq/vmdb/app/models/embedded_ansible_worker.rb:10:in `block in start_runner'

Comment 4 Nick Carboni 2017-06-30 14:22:45 UTC
This is resolved as of https://github.com/ManageIQ/manageiq-pods/pull/163

Comment 5 Satoe Imaishi 2017-06-30 14:42:46 UTC
Putting back to ON_DEV as separate change is needed for downstream.

Comment 7 Ievgen Zapolskyi 2017-10-31 16:09:02 UTC
Verified in 5.9.0.4.20171024163837_ef71ea6
I see some messages the following 
[----] I, [2017-10-31T16:06:14.505887 #7:88e0ec4]  INFO -- : MIQ(EmbeddedAnsible.container_start) Waiting for Ansible co
ntainer to respond
However, Embedded Ansible role is enabled in UI w/o issues.

Comment 10 errata-xmlrpc 2018-03-01 13:33:16 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:0382