Ask Your Question
0

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:

http://docs.openstack.org/grizzly/openstack-compute/admin/content//config-drive.html (http://docs.openstack.org/grizzly/ope...)

Is this implemented through any API method ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

hs-chen gravatar image

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

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

and ../nova/nova/virt/libvirt/driver.py

 # Config drive
    if configdrive.required_by(instance):
        LOG.info(_('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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 202 times

Last updated: Feb 19 '14