Previous topic

The nova.virt.baremetal.tilera Module

Next topic

The nova.virt.disk.api Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.virt.connection Module

Abstraction of the underlying virtualization API.

FLAGS = <nova.openstack.common.cfg.CommonConfigOpts object at 0xa00054c>

In case of baremetal (FLAGS.connection_type), specific driver is set by FLAGS.baremetal_driver

get_connection(read_only=False)

Returns an object representing the connection to a virtualization platform, or to an on-demand bare-metal provisioning platform.

This could be nova.virt.fake.FakeConnection in test mode, a connection to KVM, QEMU, or UML via libvirt_conn, or a connection to XenServer or Xen Cloud Platform via xenapi. Other platforms are also supported.

Any object returned here must conform to the interface documented by FakeConnection.

Related flags

Connection_type :
 

A string literal that falls through an if/elif structure to determine what virtualization mechanism to use. Values may be

  • fake
  • libvirt
  • xenapi
  • vmwareapi
  • baremetal