yum check-update in redhat/centos lxc container creation fails if updates are available
Bug #1850940 reported by
Jeff Albert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
New
|
Undecided
|
Unassigned |
Bug Description
During LXC container creation, a bash script is built to prep the container environment with platform-specific actions.
One of those actions for RedHat/CentOS is a `yum check-update`, followed immediately by a full `yum -y update` to actually apply updates that are available.
However, the output of check-update is never used, and it by design returns a non-zero return code if updates are available to be installed, which means the script fails because it implements `set -ev`, which fails the whole script if any subcommand fails.
The `yum check-update` command is superfluous in this action set, and I think should be removed.
To post a comment you must log in.
Argh, moments too late I discovered this change, which does the removal I'm proposing, in the stein branch:
https:/ /github. com/openstack/ openstack- ansible- lxc_container_ create/ commit/ b15b97fa0ab7357 9e4939ae767a281 0196b33df2# diff-0dc9e326c6 4f4a15341a43e16 b94ee60
Can/should this be backported to Rocky?