Add API samples tests for the coverage extension.

Partially implements blueprint nova-api-samples
Fixes bug 1089531

Change-Id: I5b287ea210f275a0c316a28d6dc3614d107aff05
Imported Translations from Transifex

Change-Id: I17d73e4475788329a4c49a4c0d0f5ba713dc194b
Teardown container rootfs in host namespace for lxc

Unlike other hypervisor to directly using image for VM, rootfs need to
be mounted in setup_container() for lxc before launching the domain.

However, this leads to several problems:

* previously spawned container polluted later spawned container, which
  in turn causing lvm device refused to be removed, as bug descirbes
* container rootfs not mounted after nova stop/start sequence

This commit addresses above two issues.

Fixes bug 1091639

Change-Id: I718baa6e46cf07a5458a5b80d42139dd353ae51c
Remove lxc attaching/detaching of volumes

Remove lxc attach and detach of volumes since this
will be handled by libvirt in upcoming versions of
libvirt.

This is expected to be in libvirt 1.0.1 or 1.0.2.
This resolves (LP: #1067638) and (LP: #1009701)

This removes a non-functional feature of the
lxc driver with functionalilty that is coming
with newer versions of libvirt.

Change-Id: Iaf4bc2769632ba2e7dcfc67892dded7b4dfbb3ae
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Ensure we add a new line when appending to rc.local

When we add content to rc.local, if the file already
exists then we need to make sure we add the content
after a new line explicitly

Fixes LP #1089668

Change-Id: I35be1496703b302f732363fa76ce832505eed599
Imported Translations from Transifex

Change-Id: I8beb8ef0800c7ba4e24a96ce3b6b9f749dc00a8b
Merge "Imported Translations from Transifex"
Adds test for 'itemNotFound' errors in 'Delete server'

Implements a test for 'itemNotFound' errors when deleting
a server.

Fixes Bug 1089368

Change-Id: I201486bb5775f856048ac1f5e4f3c852fb38e091
Imported Translations from Transifex

Change-Id: Ida94b82fbab1655191e493069a3c6ee9664100c7
Merge "Ensure we add a new line when appending to rc.local"
Merge "Add API samples tests for the coverage extension."
Merge "Adds test for 'itemNotFound' errors in 'Delete server'"
Merge "Remove lxc attaching/detaching of volumes"
Move baremetal options to [BAREMETAL] OptGroup

Move all the baremetal options into a new [BAREMETAL] OptGroup,
except for 'baremetal_db_backend', which breaks LazyPluggable if moved.

blueprint general-bare-metal-provisioning-framework

Change-Id: I06f53dcf10b9bbd3fd7cc0725cc6076af3d74d19
Fix tests/baremetal/test_driver.py

Unit tests for baremetal/driver.py were not functioning and were
falsely reporting success due to inheriting from the wrong class.
This lead to drift between the tests and the code over time.
I decided it was easier to re-implement tests/baremetal/test_driver.py
instead of trying to fix the drift. This gave me the chance to make
the test class easier to extend. Additional tests will be added
in the future, when I refactor driver.py:spawn().

This patch also has some minor variable name changes for baremetal/driver.py.

blueprint general-bare-metal-provisioning-framework.

Change-Id: I36ba5ed340b722b9a6e8d02d6d57d3c8d53b1eef
Implement IPMI sub-driver for baremetal compute

This patch implements only the IPMI power manager for baremetal nova
compute. Documentation will come in a separate patch.

blueprint general-bare-metal-provisioning-framework

Change-Id: I60ccfbf963d7bbf6f840e627396601b7bba80e7f
baremetal power driver takes **kwargs

Some baremetal power drivers may require different information passed to
them. This patch prepares the way by having the base class take only
**kwargs, and having the driver pass both 'instance' and 'node', instead
of just passing 'node'.

blueprint general-bare-metal-provisioning-framework

Change-Id: Iff91024b1d019b0d07f2cbfe991748e618bfcb18
Improve baremetal driver error handling

Several improvements to baremetal driver are implemented in this patch.
There is now significantly more error handling during spawn().

It also includes an addition to nova/tests/utils.py to provide
additional sample information from get_test_network_info().

blueprint general-bare-metal-provisioning-framework

Change-Id: I65d93051d7fcfd79f4d24d4ddb62fb1a55bee646
Implement baremetal PXE driver

This patch implements the PXE driver for baremetal compute.
Documentation will follow in another patch.

blueprint general-bare-metal-provisioning-framework.

Change-Id: I8d849601186e3dc13f10382857ff2bbc1ff1026d