Browse code

Fix image create functions for Ironic

This fixes an issue where --container-format was not passed to
'openstack image create'.

Change-Id: If1431c8dc8ff8e940f99e984939f5b2732bb0ee0
Closes-Bug: 1357495

Jim Rollenhagen authored on 2014/08/16 03:04:02
Showing 1 changed files
... ...
@@ -500,6 +500,7 @@ function upload_baremetal_ironic_deploy {
500 500
         image create \
501 501
         $(basename $IRONIC_DEPLOY_KERNEL_PATH) \
502 502
         --public --disk-format=aki \
503
+        --container-format=aki \
503 504
         < $IRONIC_DEPLOY_KERNEL_PATH  | grep ' id ' | get_field 2)
504 505
     IRONIC_DEPLOY_RAMDISK_ID=$(openstack \
505 506
         --os-token $token \
... ...
@@ -507,6 +508,7 @@ function upload_baremetal_ironic_deploy {
507 507
         image create \
508 508
         $(basename $IRONIC_DEPLOY_RAMDISK_PATH) \
509 509
         --public --disk-format=ari \
510
+        --container-format=ari \
510 511
         < $IRONIC_DEPLOY_RAMDISK_PATH  | grep ' id ' | get_field 2)
511 512
 }
512 513