Prevent the unexpected with nova-manage network modify.

"nova-manage network modify" can misinterpret arguments if the user
provides values where they are unexpected, specifically the
--disassociate-project and --disassociate-host options. If the user
provides a project or hostname value for either of these values, it will
be interpreted as a positional argument and modify handler may behave as
if other options were provided (e.g. project or host).

This change handles the presence of a project or host option along with
--disassociate-project or --disassociate-host as an error, printing a
message and exiting immediately with an error code. While there are
other approaches (e.g. perform the disassociate modifications while
ignoring the others), preventing unexpected or inconsistent results by
doing nothing seems safest.

Change-Id: Iff7817fe3ed19a4ff330b4029f9c558d3b405e9b
Enhance IPAdresses migration tests

This enhances IPAddresses tests to check if the migration goes fine with longer
IPv6, and with ipv6 that can be shortened (postgresql uses shortened form,
mysql and sqlite doesn't).

Also enhances cidr tests to check migration of shortenables cidrs, and cidrs
that postgresql suppress its prefix, like 10.0.0.0/32 cause it is pretty much
the same as 10.0.0.0

Partially implements bp migration-testing-with-data

Change-Id: I11dfc8fda7034a46a6bc067294ac8e88ca43b508
Fix broken logging imports.

This fixes all of the files incorrectly importing logging directly
and removes the workaround in hacking.py that was due to improper
from nova.openstack.common.log import logging statements.

Change-Id: Icfc25dc148c4a7b5fa7f6a7b609cd6c3d94efee1
Sync latest install_venv_common.py

Syncs:

  c78b2ab Avoid using cfg in install_venv_common

So that people don't need oslo-config installed to run install_venv

Change-Id: I05b69f043b276d5e6cd2df5d90bc679df6373383
Sync rpc from oslo-incubator.

This includes the following changes:

 * use oslo.config directly
 * implementation of rpc-amqp-fast-reply-queue
 * simplifications to bin/nova-rpc-zmq-receiver
 * add new join_consumer_pool API call
 * a bug fix to ensure kombu messages get acked even when an exception
   occurs in the message callback

Change-Id: I813ce0ee7d5442d7b5b0f9d477949adabc83174e
Log lifecycle events to log INFO (not ERROR)

By default we would prefer not to see lifecycle events getting
logged to Nova's compute.log file as errors.

Fixes LP Bug #1130686.

Change-Id: I10899e0c89ab922c48370d107ab496902ccc8c77
Add API Sample tests for Hypervisors extension.

Partially implements blueprint nova-api-samples
Fixes bug 1091750

Change-Id: Ie8e6881ea3533cd43259548594d3debe377345a5
Merge "Enhance IPAdresses migration tests"
Merge "Log lifecycle events to log INFO (not ERROR)"
Merge "Fix broken logging imports."
Merge "Sync latest install_venv_common.py"
Allow exit code 21 for 'iscsiadm -m session'.

Updates the libvirt volume driver so that it properly handles
exit code 21 in the active session check. This fixes issues
in running the command on Fedora 17.

This behaviour was broken in 933365a (multipath libvirt iscsi).

Fixes LP Bug #1130718.

Change-Id: I80de4c09ba857d550734f9bd0dfc0c40bfd5036a
Fix handling of source_groups with no-db-compute.

The moving of data around in no-db-compute broke source groups. This
is a combination of a few errors. First, the instance_type data wasn't
being retrieved from system_metadata. Second, the instance_type data
was too deep in the heirarchy and being ignored. Finally, source
groups require a nw info call which causes a db access by
nova-compute.

Fixes bug 1122316

Change-Id: Iccb6e5d336c0b2c8ba41c41ab2e046fc9617835a
Merge "Allow exit code 21 for 'iscsiadm -m session'."
Merge "Sync rpc from oslo-incubator."
Merge "Add API Sample tests for Hypervisors extension."
Merge "Prevent the unexpected with nova-manage network modify."
Merge "Fix handling of source_groups with no-db-compute."