Merge "Fix Broken XML Namespace Handling"
Correct _extract_query_params in image.glance

Updates _params rather than params to ensure filters.

Fixes bug 1070138.

Change-Id: I4e71d19f120ea91d8dfca32785ccb0aa7b1c770b
Save exceptions earlier in finish_resize

Fixes bug 1071595

When catching exceptions, _quota_rollback is called before we save an
exception for re-raising later.  Also: we should ignore any possible
exceptions from _quota_rollback so we are sure to set instance to error.

Change-Id: I50cb4879f7dcc13f99fa23a45030b4140dfc326a
Fix hardcoded topic strings with constants.

Replace hardcoded topic strings like 'volume' or 'compute'
with config constants like FLAGS.volume_topic, etc. See
bug #1057831 and bug #1061628.

Change-Id: I817ecc3cbe3245b51a0c047be58d17edfec8a838
fetch_images() method no more needed

The Nova Glance wrapper returns all images metadata
if the parameter 'limit' is not define. It doesn't
split the image metadata list.

So the sub method fetch_image is no more needed.
We can delete it.

I added a check in Nova Glance wrapper to be sure
the parameter 'marker' or another one aren't set
to 'None' (like in bug #1065053).

Fixes LP bug #1070904

Change-Id: I24ecc4adf158401f60b508aa3a20bd4c91bfa92b
Let scheduler know services' capabilities at startup

Fixes bug 1071254.

Changes:
* Add new rpc-api(fanout) of compute "publish_service_capabilities"
    This rpc-api urges services to send its capabilites to the scheduler.
* Scheduler calls publish_service_capabilities right after the start

By them, the scheduler get to know the capabilities earlier.

Now we can expect that the scheduler always holds the capabilities. So it
is reasonable to change HostManager to ignore hosts whose capabilities are
"None" since it becomes a rare case; this will make scheduling more
reliable. This will achieved by Another patch.

Change-Id: If6582765011fd5e1b794bfdc068e17630ba381cb
Remove duplicated definition of is_loaded()

Change-Id: I34c247bc0bc349bf0f7be49a35bb03596c070134
Merge "Remove duplicated definition of is_loaded()"
Merge "Let scheduler know services' capabilities at startup"
Make nova-rootwrap optional

Make the use of nova-rootwrap optional if the current process's
effective user id is already root.

Change-Id: I2cf5c743c6f4d6f235a54ca70c11d8191deeed6a
Fix config-file overrides for nova-dhcpbridge

nova-dhcpbridge can read in an alternate config file location but wasn't
using it to parse config options.  This fixes a regression introduced in
00786bc554a2dfacb3c6f02fbb7e9c98f35d4262.

This change is motivated by the fact that nova-dhcpbridge is passed to
dnsmasq in restart_dhcp() in nova/network/linux_net.py, and there is
currently no support for overriding config options for nova-dhcpbridge
in that call.  There is support for overriding the FLAGFILE env variable
in that call, but nova-dhcpbridge was ignoring that.  If I start
nova-network with an alternate config this provides a way for me to pass
that config to nova-dhcpbridge as well.

Change-Id: I002ea768500555a089bd1d5b0fea2354b27fba14
Send usage event on revert_resize

We send a usage event when we resize.  revert_resize should also send
one to note a resize back to the original size.

Fixes bug 1071773

Change-Id: I96a14ef60fbfa98c75381c7251a217c3e65334ce
Merge "Send full migration to resize_instance."
Merge "Send full migration to confirm_resize."
Merge "Fix config-file overrides for nova-dhcpbridge"
xenapi: refactor: Agent class

Related to blueprint xenapi-config-drive

As config drive and agent are doing similar operations, part of the
config drive introduction, we would like to make the agent optional.
This refactor is introducing an agent class holding together the agent
operations, as a first step.

The steps were:
Introduce XenAPIBasedAgent
Added constructor parameters to XenAPIBasedAgent
get rid of parameters on get_agent_version
get rid of parameters on agent_update
get rid of parameters on set_admin_password
get rid of parameters on inject_file
get rid of parameters on resetnetwork
Correct newlines
add factory method for getting an agent instance

For the small changes, see:
https://github.com/citrix-openstack/nova/commits/agent2class

Change-Id: I3928c0776ff98c830c19487eb8ff7820e41ca025
details the reboot behavior that a virt driver should follow.

fixes bug 1000774

Change-Id: I5a1cd62181d6f3772b890006ae73113eee0a0e0e
Fix hacking.py naivete regarding lines that look like imports

Right now, any line that starts with "from" (after whitespace
removal) is considered an import line. That assumption leads to
some unsavory parsing and crashing if the line doesn't match
the expected format.

This patch checks to make sure that the word "import" is in the line
as well as starting with "from", which at least gets us a bit closer
to a reasonable assumption.

Fixes bug 1071849

Change-Id: Iab666fcd04a9aaa3a490737a173ee3189b9b8329
Merge "Send usage event on revert_resize"
Merge "Fix hacking.py naivete regarding lines that look like imports"