Ignore double messages to associate the same ip

Associating an ip removes the old association and adds a new one.
If we are already associated to the target ip, then we can avoid
sending extra messages and making db calls. The current possibility
of a double send contributes to bug 1092762.

Change-Id: I5a40177fcd05b150f39e3144c1d521bd979b358b
Ensure datetimes can be properly serialized.

The nova-network manager was returning db models from methods invoked
via rpc.call(). These db models include non-primitive types that can
not be properly serialized (namely datetime objects). Use
to_primitive() to ensure that the data gets serialized properly.

Fix bug: #1089430

Change-Id: I0519e88444b8fcc3af5e43170ea07dd966ccef05
Signed-off-by: zhiyanliu <lzy.dev@gmail.com>
Allow new XML API sample file generation

When GENERATE_SAMPLES is used, it's supposed to generate the docs for
you.  However, if there's no pre-existing XML doc sample, it fails due
to bad handling of this case.

Fixes bug 1094141

Change-Id: I186d6ce78886e37a3fdd3268154872c99072fdca
Periodic update of DNS entries.

The new DNS mechanism to resolve instance names on private network with
multi hosted mode doesn't scale.
This patch add the possibility to update the DNS entries periodically on
each network host in addition to fanout cast each time the DNS entries
need to be updated.

DocImpact: new config options
Fixes LP bug #1086026

Change-Id: I59094a29c9f5010f5e55a6f11160263337b058b2
Fix bug and remove update lock in db.instance_test_and_set()

Remove session from arguments.

Instance update works through one query, so we don't need to use update lock.

Add tests for instance_test_and_set().

blueprint db-session-cleanup

Change-Id: I143877f427f5eba4a7c7aa985bb70c79a9513822
Adds test for HTTPUnprocessableEntity when rebooting

Implements a test for 'HTTPUnprocessableEntity' error when rebooting
an instance.

Fixes Bug 1088672.

Change-Id: I7a658f4f09c871a43d20fd6fa60d4ad69784ce7d
Add API sample tests to FixedIPs extension

Partially implements blueprint nova-api-samples
Bug 1091739

Change-Id: Ie10fd85199ec10de29e99338c748f34cc04aeeb6
Merge "Ignore double messages to associate the same ip"
Merge "Add API sample tests to FixedIPs extension"
Merge "Fix bug and remove update lock in db.instance_test_and_set()"
Merge "Periodic update of DNS entries."
Merge "Ensure datetimes can be properly serialized."
Merge "Adds test for HTTPUnprocessableEntity when rebooting"
Merge "Allow new XML API sample file generation"