← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1461638] [NEW] when booting with a blank volume without supplied size - it will just get ignored

 

Public bug reported:

$ nova boot --image cirros-0.3.4-x86_64-uec --flavor 1 --block-device
source=blank,dest=volume testvm-blank

The above line would be accepted as a valid boot request, but no blank
volume would be created. The reason is that:

https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1210

will not check if the size was provided (like it checks when
source=image volume is requested), and then it will just get completely
disregarded here:

https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1204

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: volumes

** Description changed:

  $ nova boot --image cirros-0.3.4-x86_64-uec --flavor 1 --block-device
  source=blank,dest=volume testvm-blank
  
- The above line would succseed but no volume would be created. The reason
- is that:
+ The above line would be accepted as a valid boot request, but no blank
+ volume would be created. The reason is that:
  
  https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1210
  
  will not check if the size was provided (like it checks when
  source=image volume is requested), and then it will just get completely
  disregarded here:
  
  https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1204

-- 
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/1461638

Title:
  when booting with a blank volume without supplied size - it will just
  get ignored

Status in OpenStack Compute (Nova):
  New

Bug description:
  $ nova boot --image cirros-0.3.4-x86_64-uec --flavor 1 --block-device
  source=blank,dest=volume testvm-blank

  The above line would be accepted as a valid boot request, but no blank
  volume would be created. The reason is that:

  https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1210

  will not check if the size was provided (like it checks when
  source=image volume is requested), and then it will just get
  completely disregarded here:

  https://github.com/openstack/nova/blob/46bba88413c99ddbb8080f68c1a32a64ef908150/nova/compute/api.py#L1204

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1461638/+subscriptions


Follow ups

References