Fix glance image upload in the gate
Glance in devstack was recently updated to rely on clouds.yaml instead of using tokens (change I7092fb10cbe243e091789134263fab081af0c7f4). This caused redstack to break in the gate as the file is written by devstack in the 'stack' user's home directory. Fixed this by linking the file from the 'stack' user's actual home directory to the jenkins user's home directory. Closes-Bug: #1498626 Co-Authored-By: Nikhil Manchanda <SlickNik@gmail.com> Change-Id: Ida0aa155b1e1ec7b8e9fa73006d3db9a88ffea02
This commit is contained in:
parent
c8b174f390
commit
df6b68b494
|
@ -1081,6 +1081,11 @@ function cmd_dsvm_gate_tests() {
|
|||
NETWORK_GATEWAY=${4:-'10.1.0.1'}
|
||||
ESCAPED_PATH_TROVE=${5:-'\/opt\/stack\/new\/trove'}
|
||||
|
||||
# Ensure we have access to the clouds.yaml file set up by devstack-gate
|
||||
sudo mkdir -p ~/.config/openstack
|
||||
sudo ln -s $DEST/.config/openstack/clouds.yaml ~/.config/openstack/clouds.yaml
|
||||
sudo chown -R $(whoami) ~/.config
|
||||
|
||||
# Devstack vm-gate runs as the jenkins user, but needs to connect to the guest image as ubuntu
|
||||
echo "User=ubuntu" >> /home/jenkins/.ssh/config
|
||||
|
||||
|
|
Loading…
Reference in New Issue