Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-09 Thread Flavio Percoco
On 09/01/14 10:03 +0100, Flavio Percoco wrote: Just a gentle reminder. Please, remember to the subject of the emails. Erm, I obviously meant 'to tag the subject'* Sorry, too sleepy. -- @flaper87 Flavio Percoco pgpD5k5khTAQA.pgp Description: PGP signature ___

Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-09 Thread Flavio Percoco
Just a gentle reminder. Please, remember to the subject of the emails. Cheers, FF -- @flaper87 Flavio Percoco pgptFnbJDCsYT.pgp Description: PGP signature ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi

Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-09 Thread 黎林果
Oh, I see. Thank you very much. It's just hard coded for attaching volume and swapping volume. How to deal the bp: https://blueprints.launchpad.net/nova/+spec/add-delete-on-termination-option ? 2014/1/9 Christopher Yeoh : > On Thu, Jan 9, 2014 at 2:35 PM, 黎林果 wrote: >> >> Hi Chris, >> Thanks for

Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-08 Thread Christopher Yeoh
On Thu, Jan 9, 2014 at 2:35 PM, 黎林果 wrote: > Hi Chris, > Thanks for you reply. > > It's not only hard coded for swap volumes. In function > '_create_instance' which for creating instance of nova/compute/api.py, > the '_prepare_image_mapping' function will be called. And it hard code > to True, to

Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-08 Thread 黎林果
Hi Chris, Thanks for you reply. It's not only hard coded for swap volumes. In function '_create_instance' which for creating instance of nova/compute/api.py, the '_prepare_image_mapping' function will be called. And it hard code to True, too. values = block_device.BlockDeviceDict({

Re: [openstack-dev] Discuss the option delete_on_termination

2014-01-08 Thread Christopher Yeoh
On Thu, Jan 9, 2014 at 9:25 AM, 黎林果 wrote: > Hi All, > >Attach a volume when creating a server, the API contains > 'block_device_mapping', such as: > "block_device_mapping": [ > { > "volume_id": "", > "device_name": "/dev/vdc", > "de

[openstack-dev] Discuss the option delete_on_termination

2014-01-08 Thread 黎林果
Hi All, Attach a volume when creating a server, the API contains 'block_device_mapping', such as: "block_device_mapping": [ { "volume_id": "", "device_name": "/dev/vdc", "delete_on_termination": "true" } ] It allows the op