<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>
</p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-unicode">Hi openstack CLI wizards,<br>
<br>
Having flavors without disks, I want volumes to be created from
images on the fly that I can boot from.
<br>
But I don't want to do bookkeeping for these volumes; they should
disappear once the server disappears.
<br>
<br>
On the command line with nova, I can do this:
<br>
nova boot --nic net-name=$MYNET --key-name $MYKEY --flavor
$MYFLAVOR \
<br>
--block-device
"id=$MYIMGIFD,source=image,dest=volume,size=$MYSIZE,shutdown=remove,bootindex=0"
$MYNAME
<br>
<br>
I did not find a way to do this with openstack server create.
<br>
Is there one?
<br>
<br>
Here's what I tried:
<br>
--image $MYIMGID --boot-from-volume $MYSIZE
<br>
works, except that there is no way to specify
delete_on_termination
<br>
<br>
--block-device-mapping "sda=$MYIMGID:image:$MYSIZE:true"
<br>
does complain that no --image or --volume have been passed.
<br>
The option does not appear to be used for bootable volumes.
<br>
<br>
I have seen a BP (merged with Ussuri) that would allow a PUT call
to update delete_on_termination, but I don't see it usable with
the openstackclient ...
<br>
<a class="moz-txt-link-freetext"
href="https://specs.openstack.org/openstack/nova-specs/specs/ussuri/implemented/destroy-instance-with-datavolume.html">https://specs.openstack.org/openstack/nova-specs/specs/ussuri/implemented/destroy-instance-with-datavolume.html</a>
<br>
<br>
Anything obvious I missed?
<br>
<br>
Thanks,
<br>
<br>
<div class="moz-txt-sig"><span class="moz-txt-tag">-- <br>
</span>Kurt Garloff <a class="moz-txt-link-rfc2396E"
href="mailto:kurt@garloff.de"><kurt@garloff.de></a>
<br>
Cologne, Germany
</div>
</div>
</body>
</html>