648 Commits

Author SHA1 Message Date
SandyWalsh
f15974b80d 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
2012-08-01 13:23:07 -05:00
James Meredith
cefd0fc80e change image list and network list data
to be sorted by name rather than UUID

Change-Id: I3a0faa56dbb85c916c93b5065bda90f99bb3937c
2012-07-26 15:44:17 -05:00
Jenkins
c41f5f643a Merge "Fix image-create --poll race-condition." 2012-07-24 15:23:21 +00:00
Kevin L. Mitchell
85d591b1d8 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
2012-07-23 17:10:27 -05:00
Rick Harris
7ef0786d9e 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
2012-07-23 22:05:22 +00:00
Sascha Peilicke
186a38cbc6 Clarify usage of --insecure flag
Change-Id: Iad52212ea2ba7bfc93c597c23cc6314f9916edb9
2012-07-20 10:20:45 +02:00
Jenkins
b9e1d61872 Merge "Add support for modification of instance Security Group" 2012-07-17 15:24:09 +00:00
Jenkins
d50cf705d3 Merge "Flavor-list sort by ID numerically" 2012-07-17 15:22:36 +00:00
Jenkins
667dcc313c Merge "Install test-requires in development venv." 2012-07-13 18:13:14 +00:00
Rick Harris
77206eb6d7 Fix resize polling.
The `--poll` option for resize is not working because it is looking for
`verify-resize` instead of `verify_resize`.

Change-Id: I824ee019047121d49789a8311a1b315aa36fa295
2012-07-11 15:58:08 +00:00
TianTian Gao
33cc7b1826 Add support for modification of instance Security Group
Change-Id: Ie4196281a34a83316425eada871865e4a33fab5d
2012-07-10 10:55:54 +08:00
Kevin L. Mitchell
dff56d84cc Add support for hypervisor-uptime.
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
2012-07-09 14:00:33 -05:00
Sascha Peilicke
c3f295729e Install test-requires in development venv.
Otherwise ./run_tests.sh may fail

Change-Id: Id37117a2dfd53144b8f062767afcf17825fd5d6e
2012-07-09 17:31:34 +02:00
Jenkins
5a98ed7112 Merge "'endpoints' and 'credentials' work with token caching." 2012-07-05 15:46:51 +00:00
SandyWalsh
99d97b9d4e 'endpoints' and 'credentials' work with token caching.
The recently introduced token caching busted these two commands
since there was no longer a ServiceCatalog to access. This patch
disables token caching for these commands.

LP1020669

Change-Id: I198acea44fca99b4c907c11198813412df5559bd
2012-07-05 09:50:04 -03:00
Sandy Walsh
db50e76e0c This should fix a problem with overly aggressive token caching.
Previously I was only using the service name and auth url as the
token cache key. This was posing problems with services that have
multiple endpoints and/or are needing different service types
(like volume). Now we take all endpoint selection criteria
into account.

See LP1019054

Change-Id: Ideecca805bb0d0754bcc74e536821f32170b9857
2012-07-03 11:40:18 -03:00
John Tran
dde84ebdb8 Flavor-list sort by ID numerically
Fixes bug 1016680 - the flavors list created has
ID field value as a unicode string therefore sort
on it not the same as numerical.

Change-Id: I71f2c8583cca33d2f1be2a2daa856ecec524267e
2012-07-02 15:05:09 -07:00
Major Hayden
6483ad10a7 Bring back the output from client.http_log()
Change-Id: If7c583751abe9ae60f299515a5f7778db72fa70c
2012-07-02 15:42:02 -05:00
Jenkins
bd833c8096 Merge "Update for blueprint general-host-aggregates" 2012-07-02 17:19:49 +00:00
Jenkins
0b55c534a3 Merge "don't bash-complete the '-h' option" 2012-07-02 17:19:47 +00:00
Jenkins
be09db71b8 Merge "Add host-list command" 2012-07-02 17:11:26 +00:00
Jenkins
20aa3ab779 Merge "Small doc cleanup round." 2012-07-02 17:10:59 +00:00
Kevin L. Mitchell
a11788515e Add hypervisor information extension.
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
2012-06-29 12:21:19 -05:00
Jenkins
08cf0bf95e Merge "Indicate unused variables and other misc. house cleaning." 2012-06-29 16:48:19 +00:00
Sandy Walsh
f78553211c More friendly keyring support when token caching is off.
The token caching would always try to save the token even
if --no_cache was specified. The downside of this is
environments where there is no keyring agent it would prompt
for a password. Now, if --no_cache is specified it won't try
to save the token.

Also ability to reset timings (--timings) which is handy for
client-driven profiling efforts. Yes, this should be a separate
branch, but it's so tiny it's hardly worth the effort.

I'd also like to take this time to express my admiration for
Brian Waldon. A stalwart young fellow and a fine coder.

Change-Id: I97c2c5f6864fe156a3e204927b2831b74fb1c893
2012-06-28 17:15:57 -03:00
Sandy Walsh
0248ae78ec Whoops, the last changes to keyring introduced some problems with v1.1
auth tests.

Change-Id: I09605be563da5f026a45549d59bc0a6a1dd1d8a2
2012-06-28 13:00:56 -03:00
Jenkins
0c5b977254 Merge "Add read_versioninfo method" 2012-06-27 22:10:55 +00:00
Sandy Walsh
1c6e044bdc Auth token caching on by default. --no_cache to disable. Better bypass support too.
Will use and/or store your Openstack Auth token in the operating
system's keyring if available. Cuts about a 1/2 second off operations.

Change-Id: Ibe2dc0c49baefd23afe3844a78c1df884a4fb7c7
2012-06-27 16:43:58 -03:00
Jenkins
34915a0ea9 Merge "Update Contributing blurb in the docs." 2012-06-27 19:08:54 +00:00
Jenkins
e8609c990e Merge "Filter out v1.0 endpoints" 2012-06-27 19:08:08 +00:00
Joe Gordon
888cfeb2c3 Add host-list command
Rename describe_resource => host-describe

Change-Id: Ic3548c3404ccbb1abd2ea9f096e3df8950d43e89
2012-06-27 10:05:33 -07:00
Josh Kearney
d4c9b12f39 Indicate unused variables and other misc. house cleaning.
Change-Id: I4529d8b6b27dddb1b79ee2167a054b471eaf0dbc
2012-06-27 11:55:36 -05:00
Jenkins
b7c51840b9 Merge "Turn multiple hints with the same key into a list" 2012-06-27 16:51:51 +00:00
Dominik Heidler
44038f3397 don't bash-complete the '-h' option
Change-Id: Iafd424355167883a10048a0fc0ed13515186a047
2012-06-27 11:53:57 +02:00
Monty Taylor
632a8ec89e Add read_versioninfo method
Change-Id: Ida728f07f253d15c9ce64da1be4ba4f3a7022ca7
2012-06-26 21:03:40 -05:00
Vishvananda Ishaya
7546198cb0 Turn multiple hints with the same key into a list
* Related to bug 1017988

Change-Id: I331191042d81fe857f0dac5421bf40b634cc23d5
2012-06-26 09:41:15 -07:00
Monty Taylor
24ad114d3b Cleanup of setup.py usage of openstack-common.
Change-Id: Id74cd3aec982b84851ce84bbb5207d86da04bc63
2012-06-26 11:04:48 -05:00
Monty Taylor
65529cd929 Implement post-tag versioning numbering.
Change-Id: If886d1ee70420fe52776663ec9cf75bf31d54012
2012-06-26 11:03:44 -05:00
annegentle
2a97d614b4 Small doc cleanup round.
- Changes theme to default instead of nature.
 - Explains in terms of Compute API instead of Rackspace
 - Remove outdated reference to nova-manage command
 - Remove unnecessary whitespace

Change-Id: I43d16cd053af0b4be48450fd638f9d17f9e5c4e7
2012-06-26 09:29:38 -05:00
Clark Boylan
bb117a2d45 Update Contributing blurb in the docs.
Contributing blurb previously mentioned using Github pull requests.
Contributions should go to Gerrit instead.

Change-Id: Id7b7f968fa5a3785c19704b4c1c2408f48b335ca
2012-06-22 10:16:49 -07:00
Joe Gordon
cd1e7b9d90 Update for blueprint general-host-aggregates
* Remove Operation state from aggregate results

Change-Id: I884b7f4c527debadb3a22b574b5d2879d28dd0f9
2012-06-20 21:35:41 +00:00
Kevin L. Mitchell
3dd0d3be63 Admin action to reset states.
Adds support for the new Nova Admin API action which resets the state
of an instance.  This will at least allow easy clean-up from bugs
which corrupt the state of an instance and inhibit the owner of the
instance from deleting it.

Change-Id: I47d1d75e3bd2a07b3b75302b512122b27d5d79d9
2.6.1
2012-06-20 15:22:17 -05:00
Ziad Sawalha
ac43f6389f Filter out v1.0 endpoints
- Addresses bug 1014860
- v1.0 endpoints should not be considered valid endpoints
  by python-novaclient
- also ignores other unkown versions (for when 3 comes out)
- includes updated catalog tests

Change-Id: I73bd9b0dbede74ee0d975caa86145219e30262fc
2012-06-18 17:08:34 -05:00
Sandy Walsh
a2a62a5f71 option to bypass managment endpoint and timings support
--timings = show timings for each call made to nova (including auth)
--bypass_url = api node endpoint to use instead of one from service catalog

For example:
nova --timings --bypass_url=http://10.24.31.37:8774/v1.1/nova-staging boot --image f304d266-0a49-4877-b34c-63aea8360297 --flavor 3 delete_me_2

Change-Id: Ib2a258b7e969ad56ce4ee2bd64c61310278cb856
2012-06-18 13:03:58 -03:00
Jenkins
d94edf1469 Merge "Fix spelling errors in aggregates section" 2012-06-15 15:30:20 +00:00
Jenkins
032d02b189 Merge "Move docs to doc." 2012-06-14 21:00:51 +00:00
Josh Kearney
8dce04a1cf Removes NOVACLIENT_DEBUG from client code.
It's OK to do this because only the shell uses the --debug arg. The code that
uses the client code will set the log level appropriately.

Fixes bug 922742.

Change-Id: I9e925f53c17c73f4442121e52811d52603afab29
2012-06-13 10:32:30 -05:00
Joe Gordon
983b28d051 Fix spelling errors in aggregates section
Change-Id: I7bd0533861168eef31dcd055ae79746f1a1a6dc7
2012-06-11 17:50:41 -07:00
Clark Boylan
ebceca9414 Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc/source and build results go in project/doc/build.

Change-Id: I868df12e3c15cc30043e782ce0a609b9574295cd
2012-06-11 14:18:48 -07:00
Jenkins
d263f1f7b8 Merge "Lock prettytable dep at v0.6" 2012-06-11 18:00:11 +00:00