set admin password during instance creation

Fix bug #1026650

Change-Id: Ie52751021275d1c7f718b84e7a2e66420131ce4d
Fix image-create --poll race-condition.

This fixes a race-condition caused by `do_image_create` with polling
enabled returning after the image has finished uploading but before the
instance `task_state` was cleared out.

This would cause a snapshot taken immediately afterwards to fail because
the `task_state` would still be in the `image_snapshot` state.

The (short-term) fix is to add an addition poll-loop that ensures the
`task_state` field is cleared-out as well.

Change-Id: I3adeed24ecea127c8bdd12143634a6ce5da64330
Add call to get hypervisor statistics

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
Merge "Fix image-create --poll race-condition."
Relex prettytable depend to match glanceclient.

Change-Id: Ic820a3cef791455a78e2aaa9e20c7ee42bed33a8
change image list and network list data
to be sorted by name rather than UUID

Change-Id: I3a0faa56dbb85c916c93b5065bda90f99bb3937c
Better handling of stale tokens (no more 401's)

There was a problem with stale tokens generating 401's. The
headers for the request where not replacing the stale token
with the freshly obtained one. This patch remedies that.

Change-Id: I8e7c7e01fddeec17ad9ff4254b1223820bb8e2b7
Allow different auth providers via plugin system.

- Remove the NOVA_RAX_AUTH hack and provide (temporary) compatibility
  with the new system.
- Example plugin for RAX and HP provided here :
    RAX - https://github.com/emonty/rackspace-auth-openstack
    HP - https://github.com/emonty/hpcloud-auth-openstack
- Plugin are allowed to specify their own auth_url directly.
- Thanks to mtaylor for helping on this.

Change-Id: Ie96835be617c6a20d9c3fc3bd1536083aecfdc0b
gitignore ChangeLog and add to MANIFEST.in.

Change-Id: I6dde5a0411f3e814bb34c0936010f1b46a4248a3
Allow resources to use any field as 'name'

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 support for autogenerated device on attach

In order to keep backwards compatibility, use 'auto' as a positional
parameter to allow nova to automatically generate the device name
for the attached volume.

Also, prints the result of the attach so that the user can see which
device was selected.

Change-Id: I25ad8eac48b9a085268627435b68ad20d1fb3c4c
Merge "set admin password during instance creation"
Merge "Allow different auth providers via plugin system."
Merge "Allow resources to use any field as 'name'"
Merge "Adds support for autogenerated device on attach"
Merge "Relex prettytable depend to match glanceclient."