Bug 1562782 - A state machine's on_exit method runs before the main method if the main method is an embedded Ansible playbook
Summary: A state machine's on_exit method runs before the main method if the main meth...
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.9.2
Assignee: Tina Fitzgerald
QA Contact: Dmitry Misharov
Depends On: 1557310 1568384
TreeView+ depends on / blocked
Reported: 2018-04-02 13:33 UTC by Satoe Imaishi
Modified: 2022-07-09 09:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1557310
Last Closed: 2018-05-07 20:48:01 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1328 0 None None None 2018-05-07 20:48:40 UTC

Comment 2 CFME Bot 2018-04-02 13:37:12 UTC
New commit detected on ManageIQ/manageiq-automation_engine/gaprindashvili:

commit 0c3ee3c99138767a59eacf31c6e66c3433f78636
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Thu Mar 29 14:47:57 2018 -0400
Commit:     Madhu Kanoor <mkanoor>
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)


 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 07:29:54 UTC
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 08:49:32 UTC
Fixed and verified in on_exit is not called when the playbook was launched in a state machine.

Comment 8 errata-xmlrpc 2018-05-07 20:48:01 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.


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