Bug 1762428

Summary: Retirement of Ansible Playbook service using Embedded Ansible fails
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: drew uhlmann <duhlmann>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.6CC: dmetzger, duhlmann, gmccullo, mkanoor, mshriver, ngupta, obarenbo, simaishi, tfitzger, wfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.14Flags: simaishi: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.14.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1731559 Environment:
Last Closed: 2020-01-21 16:51:47 UTC Type: ---
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:
Bug Depends On: 1731559    
Bug Blocks:    

Comment 2 CFME Bot 2019-10-21 17:05:36 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/97c8ac39f4a650d268dbd541c4a99ca20a7234cf
commit 97c8ac39f4a650d268dbd541c4a99ca20a7234cf
Author:     Brandon Dunne <bdunne>
AuthorDate: Tue Oct 15 16:56:53 2019 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue Oct 15 16:56:53 2019 -0400

    Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize

    Generate retire requests from the base class name

    (cherry picked from commit b7c9523e41be7406c2bde8554424d5caf0017ca7)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1762428

 app/models/mixins/retirement_mixin.rb | 2 +-
 spec/models/service/retirement_management_spec.rb | 8 +
 2 files changed, 9 insertions(+), 1 deletion(-)

Comment 3 CFME Bot 2019-10-21 17:50:36 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/497912ef441ece34ed65b7d69789026e0a6a349e
commit 497912ef441ece34ed65b7d69789026e0a6a349e
Author:     Satoe Imaishi <simaishi>
AuthorDate: Mon Oct 21 13:45:44 2019 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Oct 21 13:45:44 2019 -0400

    Revert "Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize"

    This reverts commit 97c8ac39f4a650d268dbd541c4a99ca20a7234cf.

    https://bugzilla.redhat.com/show_bug.cgi?id=1762428

 app/models/mixins/retirement_mixin.rb | 2 +-
 spec/models/service/retirement_management_spec.rb | 8 -
 2 files changed, 1 insertion(+), 9 deletions(-)

Comment 4 drew uhlmann 2019-10-28 15:47:39 UTC
Sorry people, this one requires a bunch all at once:


depends on https://github.com/ManageIQ/manageiq/pull/19064 
and the linked content PR https://github.com/ManageIQ/manageiq-content/pull/552, 
and https://github.com/ManageIQ/manageiq-api/pull/662

Comment 8 CFME Bot 2019-12-19 19:10:45 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/19828a9617bbe2f6c8b1ba03690e85179dd2f71b
commit 19828a9617bbe2f6c8b1ba03690e85179dd2f71b
Author:     Brandon Dunne <bdunne>
AuthorDate: Tue Oct 15 16:56:53 2019 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue Oct 15 16:56:53 2019 -0400

    Merge pull request #19398 from d-m-u/fixing_retire_request_class_name_constantize

    Generate retire requests from the base class name

    (cherry picked from commit b7c9523e41be7406c2bde8554424d5caf0017ca7)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1762428

 app/models/mixins/retirement_mixin.rb | 2 +-
 spec/models/service/retirement_management_spec.rb | 8 +
 2 files changed, 9 insertions(+), 1 deletion(-)

Comment 9 Satyajit Bulage 2020-01-09 17:31:49 UTC
Created attachment 1651044 [details]
Screenshot is showing actual results.

When tried to retire service, using "Time Delay from Now",
Save button is getting enabled, do I need to add a specific delay there .?

Comment 10 drew uhlmann 2020-01-16 12:53:39 UTC
Hey Satyajit, yes, you will have to fill out what the time delay is in order for the retirement as a time delay to work. 
Please see "6.1.4. Setting a Retirement Date and Time for a Virtual Machine or Instance" on https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.7/html/provisioning_virtual_machines_and_instances/retirement

Comment 11 Satyajit Bulage 2020-01-17 15:18:15 UTC
Able to see Service is being retired using "Time Delay from Now" with an 1 Hour delay.

Verified Version: 5.10.14.0.20200107223945_aa73a61

Comment 13 errata-xmlrpc 2020-01-21 16:51:47 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-2020:0189

Comment 14 Red Hat Bugzilla 2023-09-14 05:44:37 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days