Ask Your Question

API equivalent for nova boot --config-drive

asked 2014-02-07 20:24:41 -0500

guido-extras gravatar image

I am interested in using the --config-drive option through REST api. So far, all I could found how to use the config-drive option is through the nova boot command: (

Is this implemented through any API method ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-19 07:11:45 -0500

hs-chen gravatar image

hi,Guido Patanella i see the code in path ../nova/nova/virt/,

def required_by(instance): return instance.get('config_drive') or CONF.force_config_drive

and ../nova/nova/virt/libvirt/

 # Config drive
    if configdrive.required_by(instance):'Using config drive'), instance=instance)

You can use rest api add "config_drive": true in message body. You can also configure the Compute service to always create a config drive by setting the following option in /etc/nova/nova.conf: force_config_drive=true

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-07 20:24:41 -0500

Seen: 255 times

Last updated: Feb 19 '14