1569 Commits

Author SHA1 Message Date
Morgan Fainberg
8e49df6243 Add mailmap entry
Add mailmap entry for my email address

Change-Id: Ia46c28c86ef3f440556b1b027d2bf0a7f3e721c5
2014-05-07 12:16:41 -07:00
liyingjun
b23c97d634 Print message if instance is successfully deleted
Change-Id: I0057a1c906083e1a379a0d15a3c783823f49bf4c
Closes-bug: 1312087
2014-04-25 23:04:31 +08:00
Jenkins
9752eeedad Merge "Fix documentation for config_drive boot parameter" 2014-05-02 19:37:41 +00:00
Jenkins
3065815693 Merge "Fix for "nova help list" command" 2014-05-02 10:05:51 +00:00
Jenkins
983e11f601 Merge "Synced jsonutils from oslo-incubator" 2014-05-01 17:22:15 +00:00
OpenStack Proposal Bot
0ca568242c Updated from global requirements
Change-Id: I2f3f0b9f09e458eec4eb1e7a3b83e49043a8cb11
2014-04-30 02:46:46 +00:00
Jason Dunsmore
adf6c351a0 Fix documentation for config_drive boot parameter
The "config_drive" boot parameter only accepts a Boolean parameter, but
the documentation says otherwise.

Change-Id: I7cbf5aefbd006d8b5425cd8592bacb5d8435b3c9
Closes-Bug: #1314395
2014-04-29 15:41:02 -05:00
Ihar Hrachyshka
8e0e25f6ce Synced jsonutils from oslo-incubator
The sync includes change that drastically enhances performance on Python
2.6 with fresh simplejson library installed.

The latest commit in oslo-incubator:
- 732bdb6297eb9de81667f7713ebcb1ccc2ee45a7

Change-Id: Ib3dc0b713ed90396919feba018772243b3b9c90f
Closes-Bug: 1314129
2014-04-29 17:28:35 +02:00
Veronica Musso
0a1f9c168f Fix for "nova help list" command
The output of "nova help list" shows several argument as "Admin Only",
when they are not.
This patch modifies help notes for --ip, --ip6 and --instance-name,
which can be used by regular users.

DocImpact

Change-Id: Iac541ac8e698a27348b437ad53910bd09ea7f257
Closes-Bug: #1295126
2014-04-28 11:36:43 -03:00
Alex Gaynor
4c5f545871 Fixed a typo in a comment
Found using: https://github.com/intgr/topy

Change-Id: I1fba0b8c8e978f286905eeb96ae0a2e47762f413
2014-04-25 21:25:27 -07:00
Zhengguang
02ee4fc79e Add unit test for keypair's api
Add unit test for keypair's api in test_shell.py, just for v1.1,
not for v3, because of v3 inherits from v1.1.

Change-Id: Ibbad199449431b328091ef4b5e4b955ffcddc303
Closes-Bug: #1309986
2014-04-18 16:29:57 +08:00
Jenkins
25987144ac Merge "Fix mac address and task_state in baremetal-node-list" 2014-04-22 05:10:43 +00:00
Jenkins
bc7d0c58df Merge "Fix wrong fake return values for Nova V3 client tests" 2014-04-22 05:07:11 +00:00
Jenkins
38f60fe21a Merge "Updated from global requirements" 2014-04-22 04:18:25 +00:00
Jenkins
4f10b51627 Merge "Fix the unlimited length of console-log" 2014-04-22 03:54:21 +00:00
OpenStack Proposal Bot
d5e61bd0f7 Updated from global requirements
Change-Id: I1f5be823bd33ff05b055c58eac5a1f7706429453
2014-04-22 01:55:55 +00:00
Zhengguang
fdd59e142a Fix the incorrect return messages in keypair show and delete
When we delete or show a keypair, if the keypair doesn't exist,
we'll get "The resource could not be found.(HTTP 404)", this
patch will change it to "ERROR: No keypair with a name or ID of
'keypair_name' exists."

Change-Id: Ifebd8d2213c327f3d3fdd672207170aebbe1bb40
Closes-Bug: #1307338
2014-04-20 10:59:22 -04:00
Ala Rezmerita
d0dfafea57 Fix wrong fake return values for Nova V3 client tests
The response format for the hypervisor servers list action in
Nova API V3 has changed. This patch corrects the fake return
values used for client testing.

Change-Id: I645607b5adcfe3fa1c1d1efc071c87d2bb2b37b5
Closes-Bug: #1309542
2014-04-18 15:59:52 +02:00
Ken'ichi Ohmichi
7acbc5f1f8 Fix the unlimited length of console-log
Since the commit Idf88a238d1b0e545ebab5be872269b1b1030cc56 of Nova,
the unlimited length has been changed to -1 for API consistency.

This patch applies it to novaclient.

Change-Id: I581609a55f081184ad9d791ba38d78fa30d298a6
Closes-Bug: #1295426
2014-04-16 11:25:44 +09:00
Phil Day
a4db0feab4 Fix mac address and task_state in baremetal-node-list
Currently nova baremetal-node-list doesn't display the
list of MAC addresses for each node because this is part
of the interfaces object, and not a top level field.

It also doesn't display the task state, which is very useful
when trying to find which nodes have failed to build.

This change fixes both issues

Change-Id: If7a3bcab1220be400519ac811bd727ca8ff85827
Closes-Bug: #1308147
2014-04-15 17:48:26 +00:00
OpenStack Jenkins
5ff5e05fac Updated from global requirements
Change-Id: I85276146bd621f905cf57388147d410bd3c56986
2014-04-11 04:17:06 +00:00
Jenkins
c9f4e085e2 Merge "Sync with Oslo-Incubator" 2014-04-09 08:49:18 +00:00
Jenkins
b3c57729c5 Merge "Support IPv6 when booting instances" 2014-04-09 08:46:55 +00:00
Jenkins
5864e52d37 Merge "Add service-delete subcommand to delete a service" 2014-04-09 07:29:42 +00:00
Jenkins
5a1df33b75 Merge "Fix name arg help for volume-type-create" 2014-04-09 07:26:55 +00:00
Jenkins
ee80b107d7 Merge "Allow admin user to get all tenant's floating IPs" 2014-04-09 07:21:47 +00:00
OpenStack Jenkins
375166cb59 Merge "Updated from global requirements" 2014-04-08 21:08:25 +00:00
Matt Riedemann
7df6579f7a Fix name arg help for volume-type-create
Similar to change I10b1bd6d but for help on an argument rather than the
command itself.

Closes-Bug: #1304570

Change-Id: I4f08ffb6af248ccd7446012765d17c41567f4b38
2014-04-08 12:52:17 -07:00
gtt116
91caad97d3 Add service-delete subcommand to delete a service
In nova https://review.openstack.org/#/c/39998/ expose an API to delete
a service. Both in V1.1 and V3.

This patch make novaclient support it.

Change-Id: I4aaabc866b464c046b46eda68734f37223c6d6a0
Implements: blueprint support-delete-service
2014-04-08 20:04:54 +08:00
Jenkins
465919953d Merge "Fix session handling in novaclient" 2014-04-08 01:54:52 +00:00
OpenStack Jenkins
f6cda643fe Updated from global requirements
Change-Id: I123a065193ea330d71afe2fd2ee3fdcbcbd4a88b
2014-04-07 21:27:22 +00:00
Jenkins
37df0510ef Merge "Print adminPass when rebuilding from shell" 2014-04-07 18:51:30 +00:00
Jenkins
055a18fcd8 Merge "Remove py3kcompat" 2014-04-07 18:18:21 +00:00
Boris Pavlovic
98934d7bf1 Fix session handling in novaclient
Prior to this patch, novaclient was handling sessions in an inconsistent
manner.

Every time we created a client instance, it would use a global
connection pool, which made it difficult to use in a process that is
meant to be forked.

Obviously sessions like the ones provided by the requests library that
will automatically cause connections to be kept alive should not be
implicit. This patch moves the novaclient back to the age of a single
session-less request call by default, but also adds two more
resource-reuse friendly options that a user needs to be explicit about.

The first one is that both v1_1 and v3 clients can now be used as
context managers,. where the session will be kept open (and thus the
connection kept-alive) for the duration of the with block. This is far
more ideal for a web worker use-case as the session can be made
request-long.

The second one is the per-instance session. This is very similar to what
we had up until now, except it is not a global object so forking is
possible as long as each child instantiates it's own client. The session
once created will be kept open for the duration of the client object
lifetime.

Please note: client instances are not thread safe. As can be seen from
above forking example - if you wish to use threading/multiprocessing,
you *must not* share client instances.

DocImpact

Related-bug: #1247056
Closes-Bug: #1297796
Co-authored-by: Nikola Dipanov <ndipanov@redhat.com>
Change-Id: Id59e48f61bb3f3c6223302355c849e1e99673410
2014-04-07 19:38:51 +02:00
Johannes Erdfelt
496e39a260 Print adminPass when rebuilding from shell
The 'nova rebuild' command did not print the adminPass returned by the
server. This is because it discards the instance information returned
by the rebuild action and fetchs the information again. This would lose
the adminPass and it would not be printed for the user.

This patch reuses the instance information returned by the rebuild action
which ensures that the adminPass is printed by the shell.

Change-Id: I144bfa298bef529c78ca04042cd37a763537f09e
Closes-bug: 1302696
2014-04-04 13:21:54 -07:00
Johannes Erdfelt
04fdf97b35 Remove py3kcompat
It's not used by novaclient anymore and isn't used by any other
openstack common code either.

Change-Id: I96ebf030d0a96436a8a75c6937c354003ee32c58
Closes-bug: 1280033
2014-04-04 12:34:15 -07:00
Johannes Erdfelt
9162a5fe8f Split test_rebuild() into two tests
The method tests rebuilds with and without passwords, but the tests are
independent and should be in two seperate tests.

Also, remove duplication of the rebuild with password test from
test_rebuild_preserve_ephemeral

Change-Id: I40d0376fabf319dbe703d593de8fb4cdcf0aeab1
2014-04-04 10:57:40 -07:00
Jenkins
2005e17bed Merge "Raise exception when poll returns error state" 2014-04-02 20:10:36 +00:00
Jenkins
f70d7b8916 Merge "Fix for invalid literal ValueError parsing ipv6 url(s)" 2014-04-02 14:40:00 +00:00
Jenkins
297ebde1d3 Merge "Explain how to delete a metadata in aggregate-set-metadata" 2014-04-02 04:55:51 +00:00
liu-sheng
02328d3337 Allow admin user to get all tenant's floating IPs
When getting floatingips with Nova API, the results will be filtered
with the 'tenant_id'.
So, we can only get the floatingips belonging to the tenant of the current
context.
When ceilometer invokes novaclient to list floatingips, it will get an
empty list because the tenant is 'service'.
we should allow an admin user to index all tenants's floatingip by adding a
parameter 'all_tenants'.
This patch provides CLI support

Change-Id: I35a2155401247d49017bf3c03341b082cb87750d
Closes-bug: #1262124
2014-04-02 09:31:04 +08:00
Jenkins
a002abc060 Merge "Remove quota-class subcommand" 2014-04-01 23:09:17 +00:00
Jenkins
b5f800fd54 Merge "Add service-list show id column" 2014-04-01 17:49:54 +00:00
Jenkins
0586260407 Merge "Avoid AttributeError in servers.Server.__repr__" 2014-03-31 22:05:20 +00:00
Jenkins
ec7e95d65e Merge "Remove unused arguments to _boot()" 2014-03-31 18:00:30 +00:00
Davanum Srinivas
9344f02649 Fix for invalid literal ValueError parsing ipv6 url(s)
Switch to using network_utils for splitting the URL. The code
in oslo-incubator supports ipv6 urls

HEAD of oslo-incubator is bb52a3fc49f033b9f36238231ca56e754a78cf4b

Updated openstack-common.conf to pick up the new dependency from
oslo-incubator

Change-Id: Ifa3dec384e85942a191260d17e8141030d31ff84
Closes-Bug: #1298137
2014-03-29 14:16:02 -04:00
Jenkins
d85c24ff5a Merge "Fix error when run with no arguments on Python 3" 2014-03-28 20:31:50 +00:00
Jenkins
fce239650f Merge "typo in novaclient" 2014-03-28 19:07:00 +00:00
Jenkins
6cbf00db25 Merge "Support building wheels (PEP-427)" 2014-03-28 18:56:47 +00:00
Johannes Erdfelt
17a8b78eec Remove unused arguments to _boot()
reservation_id, min_count, max_count are never specified by any callers.
Remove the arguments and the code that checks the values.

Change-Id: I3794fd1eabbfb999c422c701af1ff64cd667313f
2014-03-27 19:15:14 -07:00