Bug 1437945 - Ansible playbook service retirement ignores provided host
Summary: Ansible playbook service retirement ignores provided host
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.8.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: GA
: 5.9.0
Assignee: Bill Wei
QA Contact: Dmitry Misharov
URL:
Whiteboard: ansible:service
Depends On: 1501143 1506796
Blocks: 1439286
TreeView+ depends on / blocked
 
Reported: 2017-03-31 14:00 UTC by Dmitry Misharov
Modified: 2018-03-06 14:54 UTC (History)
5 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1439286 (view as bug list)
Environment:
Last Closed: 2018-03-06 14:54:47 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dmitry Misharov 2017-03-31 14:00:57 UTC
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:

Comment 3 CFME Bot 2017-04-03 18:06:31 UTC
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(-)

Comment 5 Dmitry Misharov 2017-10-18 08:40:58 UTC
Blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1501143

Comment 6 Dmitry Misharov 2017-11-07 10:21:01 UTC
Verified in 5.9.0.5.20171102023815_209f732. Ansible playbook service retirement accounts provided host.


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