yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49633
[Bug 1521464] Re: create an instance with ephemeral disk or swap disk error
On a newton devstack, this is what I get:
stack@swapvol:~$ nova boot --flavor 2 --image
c5c957b0-c19b-4567-8f57-9ccb8a5a1d0e --ephemeral size=5,format=ext3
bug1521464 ERROR (BadRequest): Ephemeral disks requested
are larger than the instance type allows. (HTTP 400) (Request-ID: req-
75051aa0-d6e7-43be-96c6-a065334311ee)
Which is actually some pretty old validation code:
https://github.com/openstack/nova/blob/df488c863e1f9a6656aac1cd9cb9b54c6160ad01/nova/compute/api.py#L1352-L1356
Added here:
https://review.openstack.org/#/c/44864/
Which makes this working as designed, you're requesting an ephemeral
block device that is larger than the flavor being used allows. So you'd
need to use a flavor that has ephemeral>=5.
** Changed in: nova
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1521464
Title:
create an instance with ephemeral disk or swap disk error
Status in OpenStack Compute (nova):
Invalid
Bug description:
I boot an instance with ephemeral disk(or swap disk) in kilo, but return http request error:
eg:
nova boot --flavor 2 --image 5905bd7e-a87f-4856-8401-b8eb7211c84d --nic net-id=12ace164-d996-4261-9228-23ca0680f7a8 --ephemeral size=5,format=ext3 test_vm1
ERROR (BadRequest): Block Device Mapping is Invalid: Boot sequence for
the instance and image/block device mapping combination is not valid.
(HTTP 400) (Request-ID: req-b571662f-e554-49a7-979f-763f34b4b162)
I think the instance with ephemeral disk should be able to boot from
the image, instead of invalid boot sequence.
the log in:
http://paste.openstack.org/show/480452/
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1521464/+subscriptions
References