Add back loading of the discovery image, was accidentally removed previously

This commit is contained in:
James Slagle 2015-01-19 13:44:11 -05:00
parent 7e712416dd
commit 11c22c9d9e
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,13 @@ glance image-delete bm-deploy-ramdisk 2>/dev/null || :
glance image-create --name bm-deploy-ramdisk --public \
--disk-format ari < $IMAGE_PATH/$DEPLOY_NAME.initramfs
glance image-delete discovery-kernel 2>/dev/null || :
glance image-create --name discovery-kernel --public \
--disk-format aki < $IMAGE_PATH/$DISCOVERY_NAME.kernel
glance image-delete discovery-ramdisk 2>/dev/null || :
glance image-create --name discovery-ramdisk --public \
--disk-format ari < $IMAGE_PATH/$DISCOVERY_NAME.initramfs
nova flavor-create baremetal auto 4096 30 1
deploy_kernel_id=$(glance image-show bm-deploy-kernel | awk ' / id / {print $4}')