Module py3kcompat was removed from oslo-incubator. We need remove its
usage in client side firstly. This make us move smoothly when sync
oslo-incubator code.
Change-Id: I8b07c32c9852e747579a23685f3c8a07ac13ec01
Partial-Bug: #1280033
Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.
However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so we do it via
py3kcompat.
Modules such as StringIO and CStringIO have been removed
completely so we use the io module.
Change-Id: I53adac11b634de2c710fc39def36bcec96366710
Signed-off-by: Chuck Short <chuck.short@canonical.com>
The 'name' field for some resources is called something different,
for example 'display_name' for volumes. There was a hack in our
find method to search for display_name as well.
This change adds a new class variable to a Resource to tell it
which attribute to use for searching by name. Volumes and snapshots
were switched to use 'display_name' and hypervisors were switched
to use 'hypervisor_hostname'.
Tests fixed and added.
Fixes bug 1034536
Change-Id: I1b4fb969d42c59d1ab8e3e275a563bbe158e9264
Adds an admin API call to retrieve the compute node statistics for an
entire nova instance. Counts up all hypervisors and sums all their
values (vcpus, vcpus_used, etc.).
Change-Id: I0a3df235282089f1313d08ae5b89dadbd1db9840
Adds support for the new uptime call to the hypervisors extension to
nova. This allows the results of "uptime" on the hypervisor to be
returned to the caller. Note that currently, only XenAPI implements
the underlying method; if the version of nova uses another virt
driver, the result will be a 501 error.
Change-Id: I34cc92557e6d22705a5591e54404b32245dbe16a
Adds support for a new nova extension for getting information about
hypervisors (as opposed to compute hosts), including a list of
hypervisors matching a regular expression (database regular
expression, i.e., %'s) and a list of hypervisors with the list of
instances living on those hypervisors.
Change-Id: I7353991ffbf484da175a0912ee46e80f623e230f