Skip to content

Commit 722284f

Browse files
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
1 parent 735f4d3 commit 722284f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ironic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,15 @@ function upload_baremetal_ironic_deploy {
500500
image create \
501501
$(basename $IRONIC_DEPLOY_KERNEL_PATH) \
502502
--public --disk-format=aki \
503+
--container-format=aki \
503504
< $IRONIC_DEPLOY_KERNEL_PATH | grep ' id ' | get_field 2)
504505
IRONIC_DEPLOY_RAMDISK_ID=$(openstack \
505506
--os-token $token \
506507
--os-url http://$GLANCE_HOSTPORT \
507508
image create \
508509
$(basename $IRONIC_DEPLOY_RAMDISK_PATH) \
509510
--public --disk-format=ari \
511+
--container-format=ari \
510512
< $IRONIC_DEPLOY_RAMDISK_PATH | grep ' id ' | get_field 2)
511513
}
512514

0 commit comments

Comments
 (0)