2015-06-03 17:41:28 |
Nikola Đipanov |
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 succseed but no 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 |
$ 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 |
|