Add optional argument to include reservations in os-used-limits

Fixes bug #1089271

Change-Id: I01a3823a4f4b1045e4f8e35f749fc9233bef4489
Merge "Add optional argument to include reservations in os-used-limits"
Specify some arguments by name.

'nova boot', 'nova flavor-key', 'nova flavor-show' and the other subcommands
can be specified by a flavor name also.
But 'nova flavor-delete' and 'nova list --flavor' cannot, also 'nova list
--image' cannot be specified by a image name.
I feel it is user-friendly that a user can specify arguments by name.

By this patch, a user can do it like the following.

Before appying this patch:
 $ nova flavor-delete m1.tiny
 ERROR: Flavor m1.tiny could not be found. (HTTP 404) (Request-ID: req-af2c049f-1b77-42cf-a9ed-a3914626bc83)
 $
 $ nova list --flavor m1.tiny
 ERROR: Flavor could not be found (HTTP 422) (Request-ID: req-dbfd5df2-77d7-4a71-a3e6-b1f7fd25b96c)
 $
 $ nova list --image cirros-0.3.0-x86_64-uec

 $

After appying this patch:
 $ nova flavor-delete m1.tiny
 $
 $ nova list --flavor m1.tiny
 +--------------------------------------+--------+--------+------------------+
 | ID                                   | Name   | Status | Networks         |
 +--------------------------------------+--------+--------+------------------+
 | 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 |
 +--------------------------------------+--------+--------+------------------+
 $
 $ nova list --image cirros-0.3.0-x86_64-uec
 +--------------------------------------+--------+--------+------------------+
 | ID                                   | Name   | Status | Networks         |
 +--------------------------------------+--------+--------+------------------+
 | 2f003e0e-bfdf-4f56-bdf9-276732e640a0 | test01 | ACTIVE | private=10.0.0.2 |
 +--------------------------------------+--------+--------+------------------+
 $

Fixes bug 1091814

Change-Id: Ic7f6ce76608a448dea3c151bc349391fbf3fa456
Add support for the coverage extension.

This adds support for the coverage extension and also adds 3
CLI commands to interact with coverage:

nova coverage-start

nova coverage-stop

nova coverage-report

'nova coverage-report' has a required '--filename' argument
which gives the filename for the generated report files.

Change-Id: I9cb002b0e32cfe5572878d2c8436270663c0ae96
Make --tenant a required arg for quota-show

Fixes LP 1088519

Previously, novaclient was incorrectly defaulting to the tenant name
as the tenant ID when retrieving quota thresholds via the os-quota-sets
API extension, in an apparent attempt to default to the current tenant
if no specific tenant is explicitly requested.

As a result, the default quotas were always returned, regardless of
whether there were specific overridden quotas for this tenant.

We now require that the --tenant option is always specified for the
quota-show verb, as a sensible default isn't always possible
(because the tenant ID may be opaque to the client, for example when
the auth token is cached in the keyring from a previous call out to
keystone - now the tenant ID is of course generally embedded in the
nova publicURL retrieved from the service catalog, but that is not
guaranteed to be the case, i.e. I don't think we can safely make
assumptions about that URL format).

This change also makes the quota-show verb more consistent with the
quota-update verb, which currently requires that the tenant is
always explicitly specified.

Change-Id: I1706ad993059e70ca0e2f3bcf7b1d06cbcc39f2d
Fix find for alphanumeic flavor id/name

Fixes LP bug #1089299

Change-Id: Ia9cc756b85096532acfc9ecacd1330de8a765fba
Merge "Add support for the coverage extension."
Merge "Fix find for alphanumeic flavor id/name"
Merge "Specify some arguments by name."
Use requests module for HTTP/HTTPS

* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests

Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.

Blueprint: tls-verify

Change-Id: I9a25a94c8dfcaf483c4c8328439809d65cf10b38
add num_instances option for nova boot.

fix bug #1092475.

Change-Id: I584b27c1f24c6a5183a2289e77580f204db2e4db
Fix some usage messages of 'nova volume-*'

'nova volume-show', 'nova volume-delete', 'nova volume-snapshot-show'
and 'nova volume-snapshot-delete' can be specified by ID or name as
the argument.
But that is not described on the usage messages.
This patch fixes the usage messages.

Fixes bug 1093172

Change-Id: I3dcdd2aca923e9304efd9ea7b467d5b81cd642a7
Unify Manager._update behaviour

Now _update call usually returns an instance of self.resource_class.
This simplifies the code and makes novaclient closer to keystoneclient.

Also, update hosts and services API according to changes on nova.
(If50a6b6e20f9b3fe66d486bb9b15d3eb4b62daf9).

Change-Id: I447e49e5fce0afba8a9c1a5df6dfa7200cc93e18
Update README.rst

Update the README to remove PENDING links to non-existent docs, and
to remove Rackspace-specific references.

Change-Id: I08311e0da3d181c3817573be93f6eed6e15e3812
Merge "Update README.rst"
Move from untitest2 to testtools.

Use testtools as the base testclass. Use fixtures library for managing
fixtures.

Part of blueprint grizzly-testtools

Change-Id: Iac5af286b988787acf7049344641aadf140b9398
Fix the help text of add-fixed-ip

Makes the help text of the add-fixed-ip less confusing by pointing out
that the IP address is taken from the given network and assigned to the
server.

Change-Id: Iaf4641f65a5872ee70273d5b972ff5da0ddd7b1d
Merge "Unify Manager._update behaviour"
Add support for instance evacuate.

This adds support for server evacuation from failed host.
Adds CLI command:

nova evacuate <server> <host> [--password pwd] [--on-shared-storage]

Depends on the approval of change:
https://review.openstack.org/#change,17991

Change-Id: Icd91c0484b2db532861e23163d043737ad04117a
When logging request include request data

When the --debug flag is used it should print out the body of a POST
request.  It did that previously but the kwargs dict used for the
request stopped using 'body' which is what the logging relied on.  This
changes it to use 'data' which is a string representation of what was in
'body'.

Bug 1098241

Change-Id: I82f36e59b459706d9d5a3a38563a45c80e84c6e2