5 Commits

Author SHA1 Message Date
Alex Schultz
bdbce00e31 Address python3 string issues with subprocess
This patch updates our Popen calls to enable universal newlines for
calls that we parse or consume the output for. Without
univeral_newlines=True, the output is treated as bytes under python3
which leads to issues later where we are using it as strings.

See https://docs.python.org/3/glossary.html#term-universal-newlines

Change-Id: I1a9edd0ebac6f0539ac5c33056c442cfcfafb7f3
Related-Blueprint: python3-support
2018-12-12 13:38:14 -07:00
Martin André
e2615e83e9 Do not explode on empty containers list
In the case the containers list was empty or non existent,
container-check would explode and produce a traceback. This is for
example visible at [1].

This commit makes container-check more robust about the input data.

[1] http://logs.openstack.org/06/572806/1/experimental/tripleo-ci-centos-7-scenario009-multinode-oooq/a88c395/logs/undercloud/home/zuul/overcloud_prep_containers.log.txt.gz

Change-Id: I5639cd2b0b32b8f1261064ee178193f0c589f233
2018-06-08 11:07:29 +02:00
Dougal Matthews
cd2532fd8e Remove extra parenthesis from container-update.py
Change-Id: Idf938a91459c9f35abc30c3b1ea368108f5ec879
2018-05-30 14:40:51 +01:00
Sagi Shnaidman
2afc6ba811 Support packages list for updates in container
Use -k|--packages to set exactly which packages we want to update.
By default it's None and all packages will be updated.

Change-Id: Ic6453724cda79f294c25bcebb3fade058f9aab1a
2018-05-13 18:07:47 +03:00
Ian Main
deb8480163 Script to update RPM's in containers.
This script was living in a github repo and is used during the CI
job.  Moving it here so more people can review it.

This updates the RPM's in a container without having to rebuild
the whole thing.

Change-Id: I4905c35fcd45ef0fe1845857020c7e1a44c8c3d6
2018-05-02 08:47:28 -06:00