Always filter out multicast from reflection

Instances will try IPv6 neighbour discovery via multicast
even in an IPv4-only cloud and can throw errors
if they see inbound packets from their own MAC address

Closes-bug: #1229625

Change-Id: I3539e788fe07519d87ce7c3800c5d38b7bd99d3b
Add notification on deleting instance without host

If an instance which does not have a host associated is deleted, the
corresponding notifications were not being sent. Fixed the issue.

Closes-Bug: #1211742

Change-Id: I56482ab38725e6f1ddfb14350637d329f35095b3
Adds missing entry in setup.cfg for V3 API shelve plugin

Adds the missing entry in setup.cfg which allows the V3 API
shelve plugin to be loaded. Also adds a v3 version of the unittests
for the shelve plugin.

Change-Id: I737ca0cae503b726b0103a4ae169ffca91188c87
Closes-Bug: #1233454
Libvirt: default device bus for floppy block devs

Even though 'floppy' is a valid device type, libvirt driver was
not supporting it.

This patch makes the bus for floppy devices be defaulted to 'fdc' if not
specified, when running libvirt with KVM.

Also it makes the device name prefix for devices on the fdc bus default
to 'fd' so that it is possible to default device names for floppy
devices. It also makes the fdc count as valid bus for kvm/qemu
hypervisors.

This effectively adds support for the floppy devices in the libvirt
driver.

Closes-bug: #1229273

Change-Id: If030109fa16a2518a550fc0dc31341442262756c
Remove `utils.total_seconds`

The one place this was used would be better written using
`timeutils.delta_seconds`.

Change-Id: I601c23245149ca1bd9bbf5927a2458a6a1c21dbe
Fixes typos in virt files

Mainly comments, but also few messages

Change-Id: I7cba8f516c914a73dd2575ac802b5920389c77c8
Closes-bug: 1235422
Fixes typos in nova/compute files

blueprint fix-nova-typos

Change-Id: Iaea1c1a4154b8a8c705980e32e21d187ccb01c3c
fallocate image only when user has write access

Libvirt will change instance's ownership when the instance became power
off which will make nova-compute service unable to hard reboot instance
bacause the nova-compute service has not write access. This commit will
allocate space for image only the first time we create image.

fixes bug 1200113

Change-Id: Id81b09ade5f870665f5ffabab3cde144c6dec210
Ensure that the netaddr import is in the 3rd party section

There were cases when the netaddr import was not in the correct place.

Change-Id: I7715fcfa8cade6a78a2a58dffdc9cdca13b7d59c
Closes-Bug: #1236744
Replace decprecated method aliases in tests

Some of the TestCase methods have been deprecated since python 2.7.
We need use correct names.

http://docs.python.org/2/library/unittest.html#deprecated-aliases

* replace 'failIf' with 'assertFalse'
* replace 'failUnlessAlmostEqual' with 'assertAlmostEqual'

Change-Id: I68746f8810c17cd5456328005fc65003e57491c8
Drop unused BM start_console/stop_console methods.

We already implement these function (which return/pass) in
the base PowerManager.

Change-Id: Ib85cc9054f1256d768669fca179bb3532b785201
Update default for running_deleted_instance_action

Update the default value of running_deleted_instance_action to 'reap'
from 'log'.  Consensus seems to be that this is what most people expect.

DocImpact

http://lists.openstack.org/pipermail/openstack-dev/2013-October/016153.html

Change-Id: I24990e20c8b85fb8b7ce15c229f99f5b0281f103
Fix DB API tests depending on the order of rows

A few DB API tests depends on the specific order of returned rows
in SQLite (i. e. ORDER BY is not specified for DB queries). This
order can be different when running tests on PostgreSQL or MySQL,
so the tests must be fixed to not depend on it.

Blueprint: db-api-tests-on-all-backends

Change-Id: Ibc0094edf70b03264e78878ebb6a6bdcb1fb942d
Fix PCI devices DB API tests

Stub values of PCI device addresses, which are used in
DB API tests of PCI devices code, do not fit into 'address'
column of 'pci_devices' table (that is of type VARCHAR(12)),
because they actually have length of 13 characters.

The tests succeed with SQLite, but fail with both PostgreSQL
and MySQL.

Blueprint: db-api-tests-on-all-backends

Change-Id: I5757fa07618d9a0e944704c8fbff3c6bcb15d37d
Fix test_shadow_tables() on PostgreSQL/MySQL

Migration 209 creates a few new tables for storing of temporary
data (they all have names starting with 'dump_'). This breaks
test_shadow_tables() of ArchiveTestCase, which checks that every
existing table has a corresponding shadow table.

The DB API tests currently succeed only because they are run on
SQLite, and migration 209 is no-op for SQLite DB backend.

Blueprint: db-api-tests-on-all-backends

Change-Id: I632454fdacf35be972668f394496466978b5616f
Fix FK violation errors in InstanceActionTestCase

A few tests of InstanceActionTestCase inserts rows,
that have no corresponding values in 'instances' table,
and this causes FK violation errors.

This change fixes InstanceActionTestCase when running
tests on PostgreSQL/MySQL or on SQLite with FKs enabled.

Blueprint: db-api-tests-on-all-backends

Change-Id: I9ec39d5f4c21ba5a627b289164480c694bc1539c
Add a custom iboot power driver for nova bm.

Adds a custom power driver for nova baremetal so that
iBoot capable devices can be used.

In order to support multiple baremetal nodes attached to a single PDU
you can specify a pm_address in the format of address:port,relay.
If only an address is specified port and relay use defaults.

Tested locally with an iBoot G2.

Fixes bug 1226042
Implements nova-barmetal-iboot-g2-driver

Change-Id: I155f364f4ff6d77b34ded46de60c5cbca26596a2
Merge "Replace decprecated method aliases in tests"
Merge "Remove `utils.total_seconds`"
Merge "Ensure that the netaddr import is in the 3rd party section"