Fix sample files miss for os-aggregates

There are some sample files for os-aggregates V3 API assigning
'deleted' element with '0', which should be assigned to 'false'.
This patch fixes it.

Change-Id: I6d7814ce98bc0c701d4eabefcbe64100345cb2d3
Closes-Bug: #1294556
Network: enable instance deletion when dhcp release fails

In the event that the 'dhcp_release' fails we should continue
with the deletion of the instance.

This will no longer the leave the instance in ERROR state.

Change-Id: Ie8259180a9df12865940907c728a8d9da3c9fda0
Closes-bug: #1289397
Fix NUMA fit testing in claims and filter class

This patch makes sure that the overall topology is considered when
checking wather a NUMA instance can fit on a NUMA host, as previously we
would only check the corresponding cells without considering the overall
topology.

It adds a method for checking it on the VirtNUMAHostTopology class and
make sure it's called when checking for placement in the scheduler and
confirming claims on compute hosts.

We also split out the method for getting the topology from a host
as it can be reused in the scheduler now.

Change-Id: I038c81a5241bf1fd2ce37f7eff69f89ecedf59ef
Closes-bug: #1369984
compute: tweaks to vm_mode APIs to align with arch/hvtype

Rename the 'name' method to 'canonicalize' to make its purpose
clearer. Also add a 'is_valid' method to check validity without
doing canonicalization. Make it use a specialized exception
class instead of the generic 'Invalid' class.

Related-bug: #1348629
Change-Id: I4bb972aeafb69be594bff40eded3cfeec22f0bef
virt: use compute.vm_mode constants and validate vm mode type

Where we have hardcoded vm modes, use compute.vm_mode constants.
Where we get vm modes from external systems, validate them against
the list of acceptable names.

The baremetal/ironic drivers are reporting a bogus vm mode of
'baremetal' for supported instances which is confusing the vm
mode with the Nova driver type. These drivers use the native
ABI for their architecture, so should be reporting 'hvm' as
the vm mode, which indicates an unmodified native OS ABI.

On the other side, the ImagePropertiesFilter will canonicalize
the hvtype it fetches from image metadata, so that 'baremetal'
gets remapped to 'hvm' during comparison.

Closes-bug: #1348629
Change-Id: Ibda7c5ab0759aee672870d84974ccdea25f14407
bring over pretty_tox.sh from tempest

Tempest developed a set of wrappers around testr to print out tests as
they are running through using the subunit stream. This also displays
which workers the various tests are running on. Adapted for nova's
need for loading the locking.

I expect that the needs of nova will diverge this over time,
especially what's displayed during tracing, as such I think it's fine
to just do a transplant and not try to turn this into some external
repo.

Change-Id: Ied1708515fc49f4e18cd8dbb7b2cd821f85e1966
Assume VNIC_NORMAL if binding:vnic_type not set

Nova was assuming that every port returned from neutron had a
binding:vnic_type attribute, however this is not always the case.
This fix ensures that in the cases when a port does not have the
attribute nova assumes the default, VNIC_NORMAL. Unit tests added
to prevent the regression of this change have also been addded.

Change-Id: Ia92ffa8658c2e972fa5556e9e47ada8affb57053
Closes-Bug: 1370077
Merge "Network: enable instance deletion when dhcp release fails"
Merge "Fix sample files miss for os-aggregates"
Merge "Fix NUMA fit testing in claims and filter class"
Merge "compute: tweaks to vm_mode APIs to align with arch/hvtype"
Merge "bring over pretty_tox.sh from tempest"
Merge "virt: use compute.vm_mode constants and validate vm mode type"
Merge "Assume VNIC_NORMAL if binding:vnic_type not set"