Red Hat Bugzilla – Bug 1467649
'openstack overcloud update ...' fails when yum is locked on an overcloud node
Last modified: 2018-03-13 12:16:45 EDT
Description of problem:
'openstack overcloud update ...' fails when yum is already locked on an overcloud node. The overcloud update subsequently times out waiting for yum_update.sh to obtain a list of packages requiring an update on that node.
Version-Release number of selected component (if applicable):
* Red Hat OpenStack Platform 9.
* RHEL 7.
Steps to Reproduce:
1. On an overcloud node, trigger a scenario where yum is locked. In a real world use-case, this could be due to a previous issue being experienced on an overcloud node.
2. Run 'openstack overcloud update ...'.
The overcloud update times out when the yum_update.sh script tries to obtain a list of packages requiring update from the node which is locked.
For the overcloud update sequence to handle this situation effectively, perhaps through clear error messaging or by handling of the yum lock.
OSP9 @ https://bugzilla.redhat.com/show_bug.cgi?id=1467649
No BZ needed for OSP12 since the minor update workflow there is different. However the files do still exist on master and we landed this one first https://review.openstack.org/#/c/483390/ (even though it won't be used by master/Pike) and then backported to stable/newton since that is the oldest we have right now. Will have to be d/stream for OSP9 which is what this bug was opened for in the first place. Once stable/newton merges I will post the d/stream review and attach to the OSP9 clone.