revenge of the tuskar - remove left over packages if present after upgrade

Bug #1691744 reported by Marios Andreou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Marios Andreou

Bug Description

As first discussed at https://bugzilla.redhat.com/show_bug.cgi?id=1324894 and https://bugzilla.redhat.com/show_bug.cgi?id=1353346 if you have a tripleo deployment that started at Kilo when tuskar was still in use the left-over package can cause problems during subsequent upgrades.

We can either add this to the tripleo-client (here https://github.com/openstack/python-tripleoclient/blob/78d468884200e862d81faceb4629ff0ea1c94b67/tripleoclient/v1/undercloud.py#L50-L52 after this for example) or into instack-undercloud to happen during the instack install/upgrade undercloud invocation.

Posting something momentarily that does the latter. I think we should backport this as far as we can, stable/newton currently.

Changed in tripleo:
assignee: nobody → Marios Andreou (marios-b)
tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/465940
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=2114ee63ae8e63d8ddafaa64f6bb0b6bae9c9db9
Submitter: Jenkins
Branch: master

commit 2114ee63ae8e63d8ddafaa64f6bb0b6bae9c9db9
Author: marios <email address hidden>
Date: Thu May 18 15:21:31 2017 +0300

    Remove any left-over tuskar packages on upgrade

    During the instack install/upgrade undercloud run remove any
    left over packages - see bug for more info

    Closes-Bug: 1691744
    Change-Id: I25dcdd82803f51db456213751849443715c8fe6f

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/466605

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/ocata)

Reviewed: https://review.openstack.org/466605
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=7cbdf710a768dc4035da51465b75e276dc7bcee3
Submitter: Jenkins
Branch: stable/ocata

commit 7cbdf710a768dc4035da51465b75e276dc7bcee3
Author: marios <email address hidden>
Date: Thu May 18 15:21:31 2017 +0300

    Remove any left-over tuskar packages on upgrade

    During the instack install/upgrade undercloud run remove any
    left over packages - see bug for more info

    Closes-Bug: 1691744
    Change-Id: I25dcdd82803f51db456213751849443715c8fe6f
    (cherry picked from commit 2114ee63ae8e63d8ddafaa64f6bb0b6bae9c9db9)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/466797

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to instack-undercloud (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/466798

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/466798
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=798dfdc0dd6525e2e367c011794bd46f54c4398f
Submitter: Jenkins
Branch: master

commit 798dfdc0dd6525e2e367c011794bd46f54c4398f
Author: marios <email address hidden>
Date: Mon May 22 18:47:07 2017 +0300

    Add unit test and release note for tuskar package removal

    In I25dcdd82803f51db456213751849443715c8fe6f we added explicit
    removal of tuskar for the related bug below. This change adds
    basic test and release note as requested at
    https://review.openstack.org/#/c/466605/

    Change-Id: I77cb4a1bf5cb880505e2f6dfefcf06d79eab23b3
    Related-Bug: 1691744

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to instack-undercloud (stable/ocata)

Related fix proposed to branch: stable/ocata
Review: https://review.openstack.org/467617

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to instack-undercloud (stable/ocata)

Reviewed: https://review.openstack.org/467617
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=dca0042eb0c02f1a302d34ba691a63d1f7d7a6a4
Submitter: Jenkins
Branch: stable/ocata

commit dca0042eb0c02f1a302d34ba691a63d1f7d7a6a4
Author: marios <email address hidden>
Date: Mon May 22 18:47:07 2017 +0300

    Add unit test and release note for tuskar package removal

    In I25dcdd82803f51db456213751849443715c8fe6f we added explicit
    removal of tuskar for the related bug below. This change adds
    basic test and release note as requested at
    https://review.openstack.org/#/c/466605/

    Change-Id: I77cb4a1bf5cb880505e2f6dfefcf06d79eab23b3
    Related-Bug: 1691744
    (cherry picked from commit 798dfdc0dd6525e2e367c011794bd46f54c4398f)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/newton)

Reviewed: https://review.openstack.org/466797
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=a99caeb061588041544283f54e4b053bfe62f266
Submitter: Jenkins
Branch: stable/newton

commit a99caeb061588041544283f54e4b053bfe62f266
Author: marios <email address hidden>
Date: Thu May 18 15:21:31 2017 +0300

    Remove any left-over tuskar packages on upgrade

    During the instack install/upgrade undercloud run remove any
    left over packages - see bug for more info. This cherrypick
    is slightly different from ocata because here we don't have
    the 'is upgrade' check/fact so we run the tuskar removal on
    every instack run.

    Closes-Bug: 1691744
    Change-Id: I25dcdd82803f51db456213751849443715c8fe6f
    (cherry picked from commit 7cbdf710a768dc4035da51465b75e276dc7bcee3)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 7.1.0

This issue was fixed in the openstack/instack-undercloud 7.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 5.3.1

This issue was fixed in the openstack/instack-undercloud 5.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 6.1.1

This issue was fixed in the openstack/instack-undercloud 6.1.1 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.