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

Bug #1461638 reported by Nikola Đipanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Nikola Đipanov

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

Tags: volumes
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/188913

Changed in nova:
assignee: nobody → Nikola Đipanov (ndipanov)
status: New → In Progress
Changed in nova:
importance: Undecided → Medium
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-2 → 12.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.