Description of problem: Ansible playbook service retirement always uses the host which was provided during the ordering and ignores the host which was entered during creating ansible playbook catalog item. Version-Release number of selected component (if applicable): 5.8.0.8-alpha1.20170328221054_e6ca7a2 How reproducible: Always Steps to Reproduce: 1. Enable Embedded Ansible role. 2. Wait until it will be enabled. 3. Add some ansible repository, credential in Automation/Ansible. 4. Navigate to Services/Catalogs/Catalog Items. 5. Create "Ansible Playbook" Catalog Item with filled Retirement tab. Host in the Retirement tab should be different from the Provision tab. 6. Navigate to Services/Service Catalogs. 7. Order the service. 8. Wait until it will be provisioned. 9. Navigate to Services/My Services. 10. Click on the service in the tree. 11. Click Lifecycle/Retire this Service. 12. Wait until retirement will be finished. 13. Open Retirement tab of the service in My Services. Actual results: In the Details box host is the same which was entered during the service ordering and the task was executed against that host. Expected results: Ansible task must executed against the host which was entered during creating ansible playbook catalog item. Additional info:
https://github.com/ManageIQ/manageiq/pull/14602
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/77fef962659166df6e74a6a29eabba11e33a664a commit 77fef962659166df6e74a6a29eabba11e33a664a Author: Bill Wei <bilwei> AuthorDate: Fri Mar 31 15:03:02 2017 -0400 Commit: Bill Wei <bilwei> CommitDate: Fri Mar 31 15:03:02 2017 -0400 Skip dialog options for retirement https://bugzilla.redhat.com/show_bug.cgi?id=1437945 app/models/service_ansible_playbook.rb | 2 +- spec/models/service_ansible_playbook_spec.rb | 30 +++++++++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-)
Blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1501143
Verified in 5.9.0.5.20171102023815_209f732. Ansible playbook service retirement accounts provided host.