From 4a4a9d3d6aa663288696ce47370f0ec68aa8725f Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Fri, 29 Jul 2016 11:08:36 -0500 Subject: [PATCH] modfieid to create contianer first then upload. Change-Id: Ifdc95a2c50a47eb90a15c4b50053856ea321bed3 Signed-off-by: Narinder Gupta --- juju/configure-juju-on-openstack | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack index 62ce885e..ff60d454 100755 --- a/juju/configure-juju-on-openstack +++ b/juju/configure-juju-on-openstack @@ -109,16 +109,17 @@ done $SSH "juju metadata generate-tools -d juju-meta/ " ## upload images and tools streams to swift and make public +$SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \ + --os-tenant-name $OS_TENANT_NAME post -r '.r:*' juju-meta + $SSH "cd ~/juju-meta/ && swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME \ --os-password $OS_PASSWORD --os-tenant-name $OS_TENANT_NAME \ upload juju-meta images" + $SSH "cd ~/juju-meta/ && swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME \ --os-password $OS_PASSWORD --os-tenant-name $OS_TENANT_NAME \ upload juju-meta tools" -$SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \ - --os-tenant-name $OS_TENANT_NAME post -r '.r:*' juju-meta - ## collect the URL for getting the images $($SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \ --os-tenant-name $OS_TENANT_NAME auth) -- 2.16.6