From 72f632222f6d90d3545b5d7ca48297da4218e2ea Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 19 Feb 2019 14:06:18 +1100 Subject: [PATCH] Update cirros256 flavor to have some disk It seems nova has changed defaults on who can create zero-sized disk instances [1] and now some devstack jobs, like nodepool's, can't create cirros images using this flavor. It seems the easiest thing to do is just to bump it up. [1] https://review.openstack.org/#/c/603910/ Change-Id: I1172d4775d608568ccbeb27e2975d83add892ea9 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 6c9b944ba0..033ebf3697 100644 --- a/lib/nova +++ b/lib/nova @@ -1167,7 +1167,7 @@ function create_flavors { if is_service_enabled n-api; then if ! openstack --os-region-name="$REGION_NAME" flavor list | grep -q ds512M; then # Note that danms hates these flavors and apologizes for sdague - openstack --os-region-name="$REGION_NAME" flavor create --id c1 --ram 256 --disk 0 --vcpus 1 cirros256 + openstack --os-region-name="$REGION_NAME" flavor create --id c1 --ram 256 --disk 1 --vcpus 1 cirros256 openstack --os-region-name="$REGION_NAME" flavor create --id d1 --ram 512 --disk 5 --vcpus 1 ds512M openstack --os-region-name="$REGION_NAME" flavor create --id d2 --ram 1024 --disk 10 --vcpus 1 ds1G openstack --os-region-name="$REGION_NAME" flavor create --id d3 --ram 2048 --disk 10 --vcpus 2 ds2G