openstack overcloud update ... fails when yum is locked on an overcloud node

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

Bug Description

As discussed at https://bugzilla.redhat.com/show_bug.cgi?id=1467649 - a previous (failed/hanging?) yum process could cause the overcloud minor update to hang indefinitely. It would be much better to exit with a relevant error message.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/483390
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=839c0b111651b8f5a1608f179781707b78dbacaa
Submitter: Jenkins
Branch: master

commit 839c0b111651b8f5a1608f179781707b78dbacaa
Author: marios <email address hidden>
Date: Thu Jul 13 16:11:13 2017 +0300

    Adds check for existing yum process during the legacy minor update

    Checks for an existing /var/run/yum.pid and exit 1 with an error
    message saying why.

    Change-Id: I374eeb4164a8007ae67fea2796eac109fffdef97
    Closes-Bug: 1704131

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

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

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

Reviewed: https://review.openstack.org/483829
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=08a89804781d63c8f234244bdd10b9149eaac8bd
Submitter: Jenkins
Branch: stable/ocata

commit 08a89804781d63c8f234244bdd10b9149eaac8bd
Author: marios <email address hidden>
Date: Thu Jul 13 16:11:13 2017 +0300

    Adds check for existing yum process during the legacy minor update

    Checks for an existing /var/run/yum.pid and exit 1 with an error
    message saying why.

    Change-Id: I374eeb4164a8007ae67fea2796eac109fffdef97
    Closes-Bug: 1704131
    (cherry picked from commit 839c0b111651b8f5a1608f179781707b78dbacaa)

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

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

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

Reviewed: https://review.openstack.org/484296
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ebd6c013b8556c4d19b7bfda17d2a14c221036c2
Submitter: Jenkins
Branch: stable/newton

commit ebd6c013b8556c4d19b7bfda17d2a14c221036c2
Author: marios <email address hidden>
Date: Thu Jul 13 16:11:13 2017 +0300

    Adds check for existing yum process during the legacy minor update

    Checks for an existing /var/run/yum.pid and exit 1 with an error
    message saying why.

    Change-Id: I374eeb4164a8007ae67fea2796eac109fffdef97
    Closes-Bug: 1704131
    (cherry picked from commit 839c0b111651b8f5a1608f179781707b78dbacaa)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 6.2.0

This issue was fixed in the openstack/tripleo-heat-templates 6.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.0.0b3

This issue was fixed in the openstack/tripleo-heat-templates 7.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 5.3.1

This issue was fixed in the openstack/tripleo-heat-templates 5.3.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/529309

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/528984
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=bfe876e01c9b29f8eaf72579614b4e52d4d795b5
Submitter: Zuul
Branch: master

commit bfe876e01c9b29f8eaf72579614b4e52d4d795b5
Author: Yurii Prokulevych <email address hidden>
Date: Tue Dec 19 10:10:57 2017 +0200

    Check for yum lock befor all yum* operations.

    A previous (failed/hanging?) yum process blocks 'yum makecache'
     and 'yum check-update' operations, which leads to timeout during
    minor update.

    Change-Id: I461c1c722944813493f53f339054f420d6ddbe15
    Related-Bug: #1704131

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/529309
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=2ae1f02e4e0d80f813e74db40ed12d7ea7cf11f6
Submitter: Zuul
Branch: stable/pike

commit 2ae1f02e4e0d80f813e74db40ed12d7ea7cf11f6
Author: Yurii Prokulevych <email address hidden>
Date: Tue Dec 19 10:10:57 2017 +0200

    Check for yum lock befor all yum* operations.

    A previous (failed/hanging?) yum process blocks 'yum makecache'
     and 'yum check-update' operations, which leads to timeout during
    minor update.

    Change-Id: I461c1c722944813493f53f339054f420d6ddbe15
    Cherry picked from commit bfe876e01c9b29f8eaf72579614b4e52d4d795b5
    Related-Bug: #1704131

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (stable/ocata)

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

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

Reviewed: https://review.openstack.org/530725
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=4c002bd1d6d8c2118cb27b3246e08a80a8a8107f
Submitter: Zuul
Branch: stable/ocata

commit 4c002bd1d6d8c2118cb27b3246e08a80a8a8107f
Author: Yurii Prokulevych <email address hidden>
Date: Tue Dec 19 10:10:57 2017 +0200

    Check for yum lock befor all yum* operations.

    A previous (failed/hanging?) yum process blocks 'yum makecache'
     and 'yum check-update' operations, which leads to timeout during
    minor update.

    Change-Id: I461c1c722944813493f53f339054f420d6ddbe15
    Related-Bug: #1704131
    (cherry picked from commit bfe876e01c9b29f8eaf72579614b4e52d4d795b5)
    (cherry picked from commit 2ae1f02e4e0d80f813e74db40ed12d7ea7cf11f6)

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.