Bug 1462376

Summary: Run Ansible Playbook Action in Control Explorer always reverts to localhost for Inventory
Product: Red Hat CloudForms Management Engine Reporter: olive power <opower>
Component: UI - OPSAssignee: lgalis
Status: CLOSED WORKSFORME QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: dajohnso, dmisharo, hkataria, jhardy, mpovolny, obarenbo, opower
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ansible_embed:control
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-28 16:09:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Ansible Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shots of before and after
none
three log files - production, audit and evm - collected at the time of item creation none

Description olive power 2017-06-16 23:08:33 UTC
Created attachment 1288482 [details]
screen shots of before and after

Description of problem:

When creating an Action to Run Ansible Playbook; the Inventory always reverts to "localhost" even when the other options - "Target Machine" or "Specific Hosts" are selected.

Version-Release number of selected component (if applicable):
5.8.0.17.20170525183055_6317a22 


How reproducible:
Happens each time an action is created


Steps to Reproduce:
1. Navigate to Control/Explorer/Actions/All Actions
2. Click Add New Action. Select Action Type as "Run Ansible Playbook"
3. Select Relevant Playbook Catalog Item, and Inventory of "Target Machine" ; Click ADD
4. Navigate to newly created action and click Configuration/Edit Action
5. Value for inventory has reverted back to localhost

screen shots included



Actual results:
Value for inventory has is "localhost"

Expected results:
Value for inventory has reverted back to "Target Machine"


Additional info:

Comment 3 olive power 2017-06-27 09:31:58 UTC
extract from miq_actions table:

 1000000000039 | af771f3e-4f84-11e7-bbef-000c29b8bba8    | op_checking_again                                           | 2017-06-12 15:34:55.621496 | 2017-06-12 15:34:55.621496 | af771f3e-4f84-
11e7-bbef-000c29b8bba8 | run_ansible_playbook | ---                                +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_event_target: false           +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_localhost: true               +
               |                                         |                                                             |                            |                            |               
                       |                      | :service_template_id: 1000000000002+
               |                                         |                                                             |                            |                            |               
                       |                      | 
 1000000000040 | 582a952e-4f9f-11e7-bbef-000c29b8bba8    | late_check_001                                              | 2017-06-12 18:45:45.568808 | 2017-06-12 18:45:45.568808 | 582a952e-4f9f-
11e7-bbef-000c29b8bba8 | run_ansible_playbook | ---                                +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_event_target: false           +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_localhost: true               +
               |                                         |                                                             |                            |                            |               
                       |                      | :service_template_id: 1000000000003+
               |                                         |                                                             |                            |                            |               
                       |                      | 
 1000000000041 | 74411c9e-52a9-11e7-af59-000c29b8bba8    | op_satcheck_01                                              | 2017-06-16 15:35:41.148238 | 2017-06-16 15:35:41.148238 | 74411c9e-52a9-
11e7-af59-000c29b8bba8 | run_ansible_playbook | ---                                +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_event_target: false           +
               |                                         |                                                             |                            |                            |               
                       |                      | :use_localhost: true               +
               |                                         |                                                             |                            |                            |               
                       |                      | :service_template_id: 1000000000004+
               |                                         |                                                             |                            |                            |

Comment 5 olive power 2017-07-17 12:57:29 UTC
Created attachment 1299847 [details]
three log files - production, audit and evm - collected at the time of item creation

as requested