Revision history [back]

click to hide/show revision 1
initial version

Persistent Boot Volume from CLI

Hi guys, Ive create a volume based off the cirros image with the following command..

volume create --image cirros --size 10 volboot

And from horizon I can successfully start an instance based of this volume.. I'm just a lttle stuck on how to do it from the CLI.. Im running "centos-release-openstack-queens" .. and have read somewhere that this old syntax is deprecated..

 --block-device source=volume,id=volboot,dest=volume,size=10,shutdown=preserve,bootindex=0

So Im now trying.. .

--block-device-mapping vda=volboot:volume:10:false

But my instances wont start..

(openstack) server create --volume volboot --flavor m1.small --block-device-mapping vda=volboot --key-name jkkey --nic net-id=dmz-net1 --wait pers01  
Error creating server: pers01
Error creating server

In /var/log/nova/nova-compute.log it seems to be complaining ..

fe4ca08 - default default] Couldn't find iscsi sessions because iscsiadm err: iscsiadm: No active sessions.
: libvirtError: internal error: qemu unexpectedly closed the monitor: 2018-09-19T12:32:14.658201Z qemu-kvm: -drive file=/dev/sda,format=raw,if=none,id=drive-virtio-disk0,serial=b4f16154-f277-441c-b4c0-86456edde4da,cache=none,aio=native: 'serial' is deprecated, please use the corresponding option of '-device' instead
2018-09-19 22:32:18.998 1421 WARNING os_brick.initiator.connectors.iscsi [req-3215b049-f577-46ab-bac6-5886c0af0d9e 6da09935e104459da638bc8d590f5bda 7920780309f34695a70fc5a37fe4ca08 - default default] Couldn't find iSCSI nodes because iscsiadm err: iscsiadm: No records found

I was hoping someone might be able to confirm I am using the correct syntack in the CLI to start my instance.. Thanks in advance..