aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/vagrant
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2021-01-29 14:59:58 +0100
committerPawel Wieczorek <p.wieczorek2@samsung.com>2021-01-29 15:00:01 +0100
commitae43fa6fee1bb5b8cb68e21f50b477c084ef21eb (patch)
tree5150f8d1c4602fcec4954532561820edaed21ea6 /deployment/noheat/infra-openstack/vagrant
parenta4e91199e71aafff55120ebb9ebef1826d741db8 (diff)
Make adding Ubuntu Bionic image to the DevStack idempotent
Relevant review: https://gerrit.onap.org/r/c/integration/+/116546/#message-dc666a721a0f7ee646626bef6d36e54b7786e38f Issue-ID: INT-1601 Change-Id: I3a37cb6b2ff8b200dcbad052653e0eac7af10c60 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'deployment/noheat/infra-openstack/vagrant')
-rw-r--r--deployment/noheat/infra-openstack/vagrant/Vagrantfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment/noheat/infra-openstack/vagrant/Vagrantfile b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
index 96f640e95..8acdf1442 100644
--- a/deployment/noheat/infra-openstack/vagrant/Vagrantfile
+++ b/deployment/noheat/infra-openstack/vagrant/Vagrantfile
@@ -86,8 +86,8 @@ SCRIPT
$add_os_image = <<-SCRIPT
url="$1"
name="$2"
- image="$(mktemp)"
- wget --quiet --output-document="$image" "$url"
+ image="/root/${name}.img"
+ wget --quiet --continue --output-document="$image" "$url"
export OS_CLOUD=openstack
openstack image create "$name" --public --disk-format qcow2 --container-format bare --file "$image"
SCRIPT