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
remove session parameter from fixed_ip_get

Remove session parameter from public method fixed_ip_get.
This requires some changes to floating_ip_disassociate,
but doesn't appear to affect anything else.

Change-Id: I435bfc4f2f4175049fd164fea37b4724871e1eb1
Clean up quantumv2.get_client

Makes the get_client function more readable

Change-Id: I90a1e529308d0f52d1315e57cc412b40426d50a6
Ensures compute_driver flag can be used by bdm

Fixes bug 1063851 by moving compute_driver flag from
compute/manager.py to the global flags.py

Change-Id: I06891fd65550b63ffe83da18b6af41cf46938667
improve sessions around compute_node_*

Removed 'session' parameter from public method compute_node_get,
and replaced private calls with new method _compute_node_get.
Removed unused session paramter from other compute_node_* methods.

Change-Id: I943306be014b61d8818fdbe7891f6ad5ef934751
refactor: extract _terminate_volume_connections

Extract _terminate_volume_connections method, to remove code
duplication.

Change-Id: Ib9bede24d051700fe297fdd5a619f4a3a21bb88e
Merge "improve sessions around compute_node_*"
Merge "Ensures compute_driver flag can be used by bdm"
Merge "refactor: extract _terminate_volume_connections"
Remove nose detailed error reporting.

Nosetests' detailed error reporting breaks when running testtools tests.
Disable this plugin to get proper error reporting.

Change-Id: I4898f567e8588e1dd61940486dfc515e459adc34
Clean up xenapi VM records on failed disk attaches

Breaks the create_vm_step up so that we can clean up the VM record in
case of disk attach failures.

Fixes bug 1073219

Change-Id: I54e28e2cce6fe4f29a03566eff998479410f7555
Remove database usage from libvirt check_can_live_migrate_destination

While libvirt is the only one that actually uses the compute host info
during this check, I think that it's an entirely reasonable thing to
pass to each hypervisor when doing the "can I migrate to this host"
check. Thus, I've added it excplicitly, without a gating check of
the capabilities.

Related to bp:no-db-compute

Change-Id: I7049879fcec3894165f1bece9beeb045ed78c94b
Fix VM deletion from down compute node

* free network resources
* free volume resources
* delete.start and delete.stop notifications added
* Handle network deallocate in multi_host mode

Fixes bug 1067214

Co-authored-by: Vishvananda Ishaya <vishvananda@gmail.com>
Change-Id: I0d4a7dc5836d39e405824528de214f23b214849f
pep8 fixes for nova-manage

nova-manage is now getting pep8 scanned, so these fixes
are needed to make things happy.

Change-Id: I68b1d17fc06c2b2580907eb950b6087e499d65f9
Merge "remove session parameter from fixed_ip_get"
Merge "pep8 fixes for nova-manage"
Use env to set environ when starting dnsmasq

Explictly use env to setup needed environment variables for dnsmasq when
starting to avoid problems with subprocess mis-interpreting the first
command line argument as the executable name.

Also update DnsmasqFilter to accept any command that starts with env
followed by a set of args that include an equals sign, as long as the
next arg is the dnsmasq command.

fixes bug #1073253

Change-Id: I8ac08ba2d2309934a67ed2cb28049ed5d3277d63
refactor: extract method vm_ref_or_raise

Related to bp xenapi-volume-drivers

Imporve the code by extract method, and testing.

Change-Id: I8caca173266890bd99a360671e7af86759b89201
Force earlier version of sqlalchemy

Set the version of sqlalchemy to be earlier than the 0.8 beta as it
is incompatible with the latest available sqlalchemy-migrate and as
a result run_tests.sh does not run any tests.

Change-Id: I9c5515b76d35e4999f81d71e82f818685efe54ea
Merge "Fix VM deletion from down compute node"