From: Narinder Gupta Date: Fri, 29 Jul 2016 16:08:36 +0000 (-0500) Subject: modfieid to create contianer first then upload. X-Git-Tag: colorado.1.0~54 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F17833%2F1;p=joid.git modfieid to create contianer first then upload. Change-Id: Ifdc95a2c50a47eb90a15c4b50053856ea321bed3 Signed-off-by: Narinder Gupta --- 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)