Make cleanup-containers works dynamically. The script
removes the containers and its volumes dynamically based
on label contained in each kolla container, this way is not
needed create a big container and volume lists to be deleted.
http://paste.openstack.org/show/496357/
Closes-Bug: #1579044
Change-Id: Ie0d8a38ba2cf77c8d5da655958407145f4105bec
rax-iad node has two Ethernets, but others not. Detect the private
Ethernet by using script.
Closes-Bug: #1561563
Change-Id: I7c5d241f2b1a21f97512e52c487d875dd270011b
Sed and check the length of the IP addresses in the private list.
If none found, copy the public to the private.
Change-Id: I05e4798aa301e022de7d5097d503d8213f2b66a8
Closes-Bug: #1571275
This will allow ansible to output to the console log in realtime.
Closes-Bug: #1569769
Change-Id: If4e4ccd9911d9fa9031eed8419bb5a1367c99e49
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
new cleanup-host script removes kolla-build.conf
in /etc/kolla directory which contains the build
configuration for building images.
This should be preserved.
Change-Id: I20fbf3f8a2400a5e048ba55beb0c8e1ec849d8a3
Related-Bug:#1561055
In the gate, it is possible for /etc/hostname to not have a valid
SELinux security conext. So, reset them to default before we update
the hostname to avoid:
TASK: [Assign hostname]
failed: [node1] => {"failed": true}
msg: Command failed rc=1, out=, err=Could not set property: Access
denied
Closes-Bug: #1568047
Change-Id: Ie30c8437b310d1ea5bc75307375c255131dfe934
Needed-By: I2ff5fbb315832b8cf07c93d0dd0cdaacd958631e
Use a random virtual_router_id in case there are multi keepalived
instances exist at the same time in the gate.
Closes-Bug: #1568818
Change-Id: Iebb3dec088a21820e641b63bb2a5f40586d1df8c
Kolla deployment creates /etc/kolla folder on a target host
with multiple configuration files. In some scenarios,
the presence of these files prevent successful deployment
of certain services especially when their configuration parameters
have been changed on the deployment host.
Change-Id: Iefd544b50fc90b7f00d6e137bc14ab4807ef7c0f
Closes-Bug: #1561055
The nova team is removing the default flavors from a standard
deployment. This is great for operators, who have to delete
the defaults anyways. This patch adds the original default
flavors back during init-runonce so kolla users can be ready
to launch instances.
Closes-Bug: #1567964
Change-Id: I17daec98997a6e412a99f34d3f8a4324460d8c60
After run cleanup-containers script, was necessary to
clear references to the ceph in fstab file manually
Change-Id: I264e6644d5d569a9b56115ea31b15589b093c3f9
Closes-Bug: #1562991
A recent change related to sudo securepath broke how sudo -E
works. Now the PATH is reset by sudo as set by tox. As a result
we can no longer rely on sudo -E anywhere in our gating system
relating to path inheritence from the parent shell.
This patch uses a shell operation in the setup_nodes.yml code
to chmod the docker socket to 666 so docker containers can build
properly. Now docker operations don't return a permission denied
and we no longer require the sudo -E operation in any of our tox
scripts. This isn't a security vulnerability because our gate
scripts are only meant to be run in OpenStack infrastructure.
To make this more clear I recommend moving these shell scripts to
tests/gate.
Change-Id: I5b3d6e280e3c12a25defedb14b5589ba642043fa
Closes-Bug: #1562383
Avoids errors about missing journalctl on Ubuntu and missing upstart on
redhat bases.
Closes-Bug: 1554724
Change-Id: I80bb55688398df85f9020d5cfe5dda757fc5a0ef