nova/nova/compute
Nikola Dipanov b6733dbdf3 virt: add get_device_name_for_instance to the base driver class
Just as libvirt needs to decide on the device names when booting an
instance (as opposed to them being assigned by the user), the same needs
to be done when attaching additional volumes to a running instance.

This patch exposes it on the ComputeDriver base class and makes sure
that it will be called by the compute manager (and that an appropriate
fallback will happen if the drivers do not care about overriding this),
as a pre-req for doing the work in the libvirt driver.

Partial-bug: 1452224
Related-bug: 1231874

Change-Id: I66693a8a6a632b65f930a58905336397ac6c9f29
2015-07-06 11:30:17 +01:00
..
monitors Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
resources Use oslo.log 2015-02-22 07:56:40 -05:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py API: make sure a blank volume with no size is rejected 2015-07-02 13:45:36 +01:00
arch.py Add amd64 to arch.canonicalize() 2014-09-08 08:08:00 -07:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
cells_api.py Handle cells race condition deleting unscheduled instance 2015-06-03 20:19:47 +00:00
claims.py objects: introduce numa topology limits objects 2015-03-12 16:39:49 -04:00
cpumodel.py Add VirtCPUModel nova objects 2015-02-09 10:26:10 +11:00
flavors.py Replace unicode with six.text_type 2015-05-12 12:31:20 +02:00
hv_type.py Remove hv_type translation shim for powervm 2015-06-17 12:51:00 -07:00
instance_actions.py Add missing instance action record for start of live migration 2014-09-24 10:14:42 +08:00
manager.py virt: add get_device_name_for_instance to the base driver class 2015-07-06 11:30:17 +01:00
opts.py Use oslo-config-generator instead of generate_sample.sh 2015-06-18 22:00:18 +00:00
power_state.py Remove power_state.BUILDING 2015-04-14 19:10:12 -07:00
resource_tracker.py Merge "Remove compat_instance()" 2015-07-02 20:57:50 +00:00
rpcapi.py Make live migration create a migration object record 2015-06-25 08:42:04 -07:00
stats.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
task_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00
utils.py compute: remove get_image_metadata method 2015-06-09 11:40:48 +01:00
vm_mode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
vm_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00