No output from Pike minor update ansible-playbook calls

Bug #1732497 reported by Marios Andreou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
mathieu bultel

Bug Description

As discussed in https://bugzilla.redhat.com/show_bug.cgi?id=1505926 the current way we are invoking the ansible-playbook for mistral workflows means we don't get any output until the invocation is completed.

In the case of the Pike minor update, in the worst case this can be for the duration of the update workflow on all nodes, i.e. no output at all about the current progress or node being updated.

The problem is there is only one invocation of ansible-playbook here [1] and ultimately here [2].

Lucas patch series in https://review.openstack.org/#/q/topic:bp/tripleo-common-ansible-python-api+(status:open+OR+status:merged tries to address the issue.

[1] https://github.com/openstack/tripleo-common/blob/49f091392e85698a9a1ef7c8547a300ef7ed2e8f/workbooks/package_update.yaml#L96
[2] https://github.com/openstack/tripleo-common/blob/49f091392e85698a9a1ef7c8547a300ef7ed2e8f/tripleo_common/actions/ansible.py#L410

Changed in tripleo:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/521256

Changed in tripleo:
assignee: Lukas Bezdicka (social-b) → mathieu bultel (mat-bultel)
status: Triaged → In Progress
Changed in tripleo:
assignee: mathieu bultel (mat-bultel) → Amit Ugol (amit-ugol)
Changed in tripleo:
assignee: Amit Ugol (amit-ugol) → mathieu bultel (mat-bultel)
Changed in tripleo:
assignee: mathieu bultel (mat-bultel) → Dougal Matthews (d0ugal)
Changed in tripleo:
assignee: Dougal Matthews (d0ugal) → mathieu bultel (mat-bultel)
Changed in tripleo:
assignee: mathieu bultel (mat-bultel) → Dougal Matthews (d0ugal)
Changed in tripleo:
assignee: Dougal Matthews (d0ugal) → mathieu bultel (mat-bultel)
Changed in tripleo:
assignee: mathieu bultel (mat-bultel) → Dougal Matthews (d0ugal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 7.6.5

This issue was fixed in the openstack/tripleo-common 7.6.5 release.

Changed in tripleo:
assignee: Dougal Matthews (d0ugal) → mathieu bultel (mat-bultel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/521256
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=bb52d24649358c2cbd11df2239afea8471f72b88
Submitter: Zuul
Branch: master

commit bb52d24649358c2cbd11df2239afea8471f72b88
Author: Mathieu Bultel <email address hidden>
Date: Sat Nov 18 14:56:24 2017 +0100

    Consume a zaqar queue for update to poll ansible result

    Consume the update zaqar queue to get the ansible output in
    real time.
    The queue used is not the 'tripleo' queue because we need
    to not be disrupt by other messages.
    We need to claim all the zaqar messages in the queue to
    get a consistent ansible output

    Change-Id: I3682051eb719f8da9c744f7ec8be3a58f3db3f86
    Closes-Bug: 1732497

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/522218

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-tripleoclient (stable/pike)

Change abandoned by mathieu bultel (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/522218

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/pike)

Reviewed: https://review.openstack.org/522218
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=15db65eabc91bec4ebdef60a247e0a554c276424
Submitter: Zuul
Branch: stable/pike

commit 15db65eabc91bec4ebdef60a247e0a554c276424
Author: Mathieu Bultel <email address hidden>
Date: Sat Nov 18 14:56:24 2017 +0100

    Consume a zaqar queue for update to poll ansible result

    Consume the update zaqar queue to get the ansible output in
    real time.
    The queue used is not the 'tripleo' queue because we need
    to not be disrupt by other messages.
    We need to claim all the zaqar messages in the queue to
    get a consistent ansible output

    Cherry-Pick from bb52d24649358c2cbd11df2239afea8471f72b88
    Change-Id: I3682051eb719f8da9c744f7ec8be3a58f3db3f86
    Closes-Bug: 1732497

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 8.1.0

This issue was fixed in the openstack/python-tripleoclient 8.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.2.0

This issue was fixed in the openstack/tripleo-common 8.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 7.3.6

This issue was fixed in the openstack/python-tripleoclient 7.3.6 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.