Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1570950 - Service and VM retirement are non-deterministic, running parallel [NEEDINFO]
Service and VM retirement are non-deterministic, running parallel
Status: CLOSED NEXTRELEASE
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.8.0
Unspecified Unspecified
high Severity high
: GA
: 5.9.2
Assigned To: drew uhlmann
Dave Johnson
: ZStream
Depends On: 1563627
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-23 16:04 EDT by Satoe Imaishi
Modified: 2018-05-07 15:36 EDT (History)
9 users (show)

See Also:
Fixed In Version: 5.9.2.4
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1563627
Environment:
all CFME (bug should be cloned)
Last Closed: 2018-05-03 16:34:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Unknown
gekis: needinfo?


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1328 normal SHIPPED_LIVE Important: CloudForms 4.6.2 bug fix and enhancement update 2018-05-07 20:42:50 EDT

  None (edit)
Comment 2 CFME Bot 2018-04-23 16:21:37 EDT
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/b8bc7bed2cd1a3fdbd81454cb8e176c7ec5c02d5
commit b8bc7bed2cd1a3fdbd81454cb8e176c7ec5c02d5
Author:     Greg McCullough <gmccullo@redhat.com>
AuthorDate: Thu Apr 19 08:47:41 2018 -0400
Commit:     Greg McCullough <gmccullo@redhat.com>
CommitDate: Thu Apr 19 08:47:41 2018 -0400

    Merge pull request #17280 from d-m-u/adding_lock_to_retire_now

    Add lock to retire_now start
    (cherry picked from commit 2deffa58399461396e3bbd57b93fc744f0c64e88)

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

 app/models/mixins/retirement_mixin.rb | 43 +-
 spec/models/service/retirement_management_spec.rb | 23 +-
 spec/models/vm/retirement_management_spec.rb | 19 +
 3 files changed, 67 insertions(+), 18 deletions(-)
Comment 4 Tina Fitzgerald 2018-05-03 07:53:03 EDT
This is difficult to reproduce, but probably the best setup would be: 

1. An environment where there are 4 zones.
2. A Service with a retire_on date of today.

Each of the schedule workers should initiate the Service retirement at the same time, causing the request_service_retire event to be raised 4 times.
You should be able to see the events raised and the service retirement state machine start_retirement Automate method running.
The more zones, the better the odds of reproducing the customer scenario.
Comment 5 Sudhir Mallamprabhakara 2018-05-03 16:34:42 EDT
Closing this one as it is hard for QE to validate.

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