Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1562782 - A state machine's on_exit method runs before the main method if the main method is an embedded Ansible playbook
A state machine's on_exit method runs before the main method if the main meth...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.9.0
Unspecified Unspecified
high Severity high
: GA
: 5.9.2
Assigned To: Tina Fitzgerald
Dmitry Misharov
: Reopened, ZStream
Depends On: 1557310 1568384
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-02 09:33 EDT by Satoe Imaishi
Modified: 2018-05-07 16:48 EDT (History)
7 users (show)

See Also:
Fixed In Version: 5.9.2.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1557310
Environment:
Last Closed: 2018-05-07 16:48:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1328 None None None 2018-05-07 16:48 EDT

  None (edit)
Comment 2 CFME Bot 2018-04-02 09:37:12 EDT
New commit detected on ManageIQ/manageiq-automation_engine/gaprindashvili:

https://github.com/ManageIQ/manageiq-automation_engine/commit/0c3ee3c99138767a59eacf31c6e66c3433f78636
commit 0c3ee3c99138767a59eacf31c6e66c3433f78636
Author:     Madhu Kanoor <mkanoor@redhat.com>
AuthorDate: Thu Mar 29 14:47:57 2018 -0400
Commit:     Madhu Kanoor <mkanoor@redhat.com>
CommitDate: Thu Mar 29 14:47:57 2018 -0400

    Merge pull request #168 from tinaafitz/fix_retry_for_on_exit

    Don't call on_exit method while Ansible Playbook method is running.
    (cherry picked from commit 089de0f03ffcc3ed1e4c1d592317accdb2d716e0)

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

 lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_playbook_method.rb | 2 +-
 lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_state_machine.rb | 16 +-
 spec/engine/miq_ae_state_machine_steps_spec.rb | 14 +
 spec/miq_ae_playbook_method_spec.rb | 6 +-
 4 files changed, 28 insertions(+), 10 deletions(-)
Comment 3 Dmitry Misharov 2018-04-20 03:29:54 EDT
I cannot verify this BZ until this issue will be fixed https://bugzilla.redhat.com/show_bug.cgi?id=1568384. But the target release for it is 5.9.3. Chris, can we change target release for one these BZs?
Comment 5 Dmitry Misharov 2018-05-02 04:49:32 EDT
Fixed and verified in 5.9.2.4.20180501195858_35dc609. on_exit is not called when the playbook was launched in a state machine.
Comment 8 errata-xmlrpc 2018-05-07 16:48:01 EDT
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/RHSA-2018:1328

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