The nova.virt.configdrive Module

Config Drive v2 helper.

class ConfigDriveBuilder(instance_md=None)

Bases: object

Build config drives, optionally as a context manager.

add_instance_metadata(instance_md)
cleanup()
make_drive(path)

Make the config drive.

Parameters:path – the path to place the config drive image at

:raises ProcessExecuteError if a helper process has failed.

required_by(instance)
update_instance(instance)

Update the instance config_drive setting if necessary

The image or configuration file settings may override the default instance setting. In this case the instance needs to mirror the actual virtual machine configuration.

Previous topic

The nova.virt.block_device Module

Next topic

The nova.virt.diagnostics Module

Project Source

This Page