1388 Commits

Author SHA1 Message Date
Masayuki Igawa
8e9c038f15 Remove the coverage extension code
The coverage extension has been removed from Nova V2 API by the
        I07d798129ee277a6f7691c25f88c07a5204c0943
This commit remove the code.

Change-Id: I430a8b17be11bb961dc5b89b2d098f373e0a27fa
2014-01-14 09:14:11 +09:00
Jenkins
1a20d2964d Merge "Ensure that the diagnostics are user friendly" 2014-01-13 14:40:11 +00:00
Jenkins
b07f02dd61 Merge "Added v3 interfaces in reference doc" 2014-01-13 04:21:38 +00:00
Jenkins
9b20773b66 Merge "Enable pep8 check for config.py in doc" 2014-01-13 04:20:29 +00:00
Jenkins
0379ae813f Merge "Generate interfaces reference doc" 2014-01-13 04:19:10 +00:00
Jenkins
77bde21154 Merge "Adds quota usage support for the V3 API" 2014-01-13 01:15:46 +00:00
Jenkins
51a37b157a Merge "Fix tab-completion of --flags under OS X" 2014-01-12 06:11:22 +00:00
Jenkins
16c5337e79 Merge "Ensure that nova client prints dictionaries and arrays correctly" 2014-01-11 15:47:54 +00:00
Jenkins
220c10d75b Merge "Support list deleted servers for admin" 2014-01-11 13:16:21 +00:00
Jenkins
5a65f40d1f Merge "Removes vim configuration headers" 2014-01-10 06:12:49 +00:00
gtt116
0d00603f12 Support list deleted servers for admin
Nova api supported a parameter named 'deleted' which allow Admin to list
deleted servers. This patch make novaclient support this.

Change-Id: Ifc492fd0ba9d885e37c04c165d6397832ae6ebe0
Closes-Bug: #1266631
2014-01-08 09:40:21 +00:00
Sahid Orentino Ferdjaoui
4f92f7ba02 Using floating-ip-{associate|disassociate}
This patch implements a blueprint to add more consistency into
nova command, especially for the subcommand "floating-ip-*"

Currently when we want to associate or disassociate an ip with
nova we have to use add-floating-ip and remove-floating-ip. This
is not consitent with the actual scheme of the subcommands:

example:
  nova image-*
  nova flavor-*
  nova floating-ip-*

 + In the client v1.1 this patch displays a deprecated message when printing
   the help message for add-floating-ip and remove-floating-ip.
 + In the client v3 this patch do nothing because all floating ip commands are being
   removed.

$:~/python-novaclient$ nova help | grep floating
    add-floating-ip     DEPRECATED, use floating-ip-associate instead.
    floating-ip-associate
                        Associate a floating IP address to a server.
    floating-ip-bulk-create
                        Bulk create floating ips by range.
    floating-ip-bulk-delete
                        Bulk delete floating ips by range.
    floating-ip-bulk-list
                        List all floating ips.
    floating-ip-create  Allocate a floating IP for the current tenant.
    floating-ip-delete  De-allocate a floating IP.
    floating-ip-disassociate
                        Remove a floating IP address from a server.
    floating-ip-list    List floating ips for this tenant.
    floating-ip-pool-list
                        List all floating ip pools.
    remove-floating-ip  DEPRECATED, use floating-ip-disassociate instead.

Implements: blueprint commands-floating-ip
Change-Id: I5337d0f1ce5ec4826da6ecd2b6ae4ae7b97801e0
2014-01-08 08:14:06 +00:00
Sahid Orentino Ferdjaoui
0ddcf11732 Removes vim configuration headers
- Removes vim headers: It's not needed to set tabstop tons of times,
   this can be done by setting vimrc.
 - I did not update files in common/* and install_venv_common.py because
   these files are sync with oslo.

Note:
  http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Closes-Bug: #1265474
Change-Id: Ia09dc2c908187a756bf55eaba74655484304517d
2014-01-08 08:13:46 +00:00
Chris Yeoh
db6c58b009 Adds quota usage support for the V3 API
Adds the ability to do a detailed query from the
os-quota-sets V3 API extension. This was an interface
added in V3 to allow for the querying of current quota
usage. Adds a shell command quota-usage which
uses this interface to show current quota usage as well
as the limit.

The absolute limits response was removed from
the limits extension in a9e29b7e9fbe14ab42f24802a6d2a457a6317ba3
and so the corresponding novaclient command is also removed.
The "quota-show-usage" command now shows the same information.

Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v3-api

Change-Id: I5db72d42120f4ad7a86fbfce20382988f6bbf5d3
2014-01-08 12:00:53 +08:00
Jenkins
77a9574238 Merge "Code cleanup: use oslo's to_slug() instead of slugify()" 2014-01-07 23:50:50 +00:00
Rick Harris
f196ed0176 Fix tab-completion of --flags under OS X
--flags were not tab-completing under OS X. This was due to the whitespace
collapsing regular expression using the '+' token (meaning one-or-more), which
isn't supported in OS X's version of sed.

Using the more portable '  *' instead of '[  ]+' fixes this.

Additional cleanups

* Remove unecessary embedding of tabs in the file (nova bash-complete doesn't
  emit tabs, so the regular expressions don't have to handle them)

* Restore logic to exclude -h from tab-completion (was lost in last
  tab-completion cleanup)

* Add similar exclude logic for -i

Fixes bug 1266667

Change-Id: I7e1fe8382d9b5295d0bbc1cde2b89550d5a4e21c
2014-01-07 01:51:58 -06:00
Ken'ichi Ohmichi
d664f0f672 Remove class_name parameter from quota_class
class_name parameter is not used in both Nova v1.1/v3 API.
Nova considers the part of url as class_name.
For example, bar is considered as class_name in the following case:
 curl -i 'http://localhost:8774/v3/os-quota-class-sets/bar' -X PUT ..

This patch removes this unused paramter from quota_class.

Change-Id: Id4eba5b2a17506bc04ea23ef1097ef9cdb9caf8a
2014-01-07 03:52:42 +09:00
Gary Kotton
875cf42fff Ensure that the diagnostics are user friendly
In the case when the value is a dictionary or array or longer than
the line then the diagnostics output will automatically wrap around
to ensure that the output is user friendly.

Part of the blueprint v3-diagnostics

Change-Id: Ia158fd99aeb0e6296fb232e881d0f01a13407dfc
Closes-bug: #1266402
2014-01-06 08:09:46 -08:00
Jenkins
2a7caa8bdb Merge "Adds simple tenant usage support for the Nova V3 API" 2014-01-06 07:40:30 +00:00
Jenkins
81e630cbcc Merge "Allow empty response in service-list" 2014-01-05 21:26:17 +00:00
Chris Buccella
3dbab161be Code cleanup: use oslo's to_slug() instead of slugify()
The bash completion code is the sole user of the slugify() function
in utils, which is substantially similar to to_slug() provided in
strutils from oslo.

Change-Id: Ib4eb7e4c0fa0e9bc5c4a0856f6391911d8f8fd3b
Closes-bug: #1266118
2014-01-04 22:56:09 +00:00
Jenkins
ab32e406c8 Merge "Replace some utils.bool_from_str with strutils" 2014-01-03 11:47:28 +00:00
JUN JIE NAN
77fe828870 Added v3 interfaces in reference doc
Added hosts, agents, flavors and so on into reference doc

Change-Id: I32198a0e65551f6ea3c67b72a8d7c6dff7da9f91
2014-01-03 13:57:56 +08:00
JUN JIE NAN
25041fe6fa Enable pep8 check for config.py in doc
Directory doc is excluded from pep8 check in tox.ini, since we
modified file doc/source/config.py, we should enable the check.

Change-Id: I057f1e6cb1c5f9a6a07043056078e4475f66f288
2014-01-03 13:53:53 +08:00
JUN JIE NAN
3582d6f1be Generate interfaces reference doc
Add gen_ref in conf.py to generate reference doc to avoid maintaining
these boilerplates.

Change-Id: I6683c41d39685dcb7f7a619a36210a987c9e9825
2014-01-03 13:51:08 +08:00
Jenkins
49be47367f Merge "Nova aggregate-details should be more human friendly" 2014-01-02 21:23:06 +00:00
Jenkins
9521c63646 Merge "Expose the rebuild preserve-ephemeral extension" 2014-01-02 21:22:55 +00:00
Gary Kotton
5c62630a9d Ensure that nova client prints dictionaries and arrays correctly
Print the dictionaries and arrays without the unicode tags.

The patch also updated tests that did not return valid data.

Change-Id: Ia787f98a9510b68beb3ceaf00c285ca5c934f5c0
Closes-bug: #1265002
2013-12-31 05:17:00 -08:00
Matthew Farrellee
669cdc4ffd Replace some utils.bool_from_str with strutils
Instead of using novaclient.utils' bool_from_str, use bool_from_string
from the oslo incubating strutils

Notes:
 0. utils.bool_from_str was strict, only accepted a small set of
    values, while strutils.bool_from_string is not strict by default,
    anything not true is false
 1. bool_from_string accepts on/off, which bool_from_str did not

Change-Id: I04744844b55697819289def081d3c9117ed0713f
2013-12-25 07:22:24 -05:00
Jenkins
708af32f03 Merge "Fix "device" as the optional para on volume-attach" 2013-12-25 01:59:24 +00:00
Clint Byrum
7dc2ff4a49 Allow empty response in service-list
If a user runs 'nova service-list --binary something-weird', where
something-weird is a binary that is not listed the result is a confusing
IndexError. That is because the result is expected to always have at
least one result.

Part of the reason for that is that the fake client does not make it
easy to simulate an empty response in tests. That is why there is no
regression test associated with this bug-fix. That is also why I am
marking thas as Partial-Bug, as this corrects the symptom, but it does
not prevent it from regressing.

Change-Id: I3e6798d63a662c245196b3bf95bb7e1b0ea9c3a4
Partial-Bug: #1260504
2013-12-24 11:38:28 -08:00
Sahid Orentino Ferdjaoui
2c54f5a037 Nova aggregate-details should be more human friendly
'nova aggregate-details' shows Hosts, Availability Zone
and Metadata in the python unicode notation.

+ Adds some tests about aggregates ported from v1 to the
  v3 shell

Change-Id: I69d80b2e76833d78248dee782ae5e53f42a4f4a9
Closes-Bug: #1132961
2013-12-24 12:07:57 +00:00
Jenkins
242ab3ca95 Merge "Removed duplicated import" 2013-12-23 21:14:53 +00:00
Jenkins
13e37ede5b Merge "Adds keypairs support for the Nova V3 API" 2013-12-23 14:16:25 +00:00
Jenkins
287bb0cfcc Merge "Adds certificates support for Nova V3 API" 2013-12-23 14:16:23 +00:00
JUN JIE NAN
7bd5b78b22 Removed duplicated import
sys is imported twice so removed the second import.

Change-Id: I50531edf856d42ec9b10732eff18a97d0cb3e9cc
2013-12-23 10:36:35 +08:00
Jenkins
72f6258556 Merge "Adds aggregates support for Nova V3 API" 2013-12-21 22:58:19 +00:00
Jenkins
865399f72f Merge "Adds hypervisor support for Nova V3 API" 2013-12-21 03:53:20 +00:00
Jenkins
4cff481baa Merge "Adds services support for Nova V3 API" 2013-12-21 03:53:19 +00:00
Jenkins
5b7c7ac046 Merge "Adds second part of quotas support for Nova V3 API" 2013-12-21 03:53:18 +00:00
Jenkins
15e2bca055 Merge "Adding additional tests for novaclient ssh" 2013-12-20 18:58:11 +00:00
Jenkins
9c8fc1a1ad Merge "Adds first part of quotas support for Nova V3 API" 2013-12-20 14:37:21 +00:00
Jenkins
ef364b35bf Merge "Adds availability zone support for Nova V3 API" 2013-12-20 14:35:54 +00:00
Michael Davies
6f7ac333de Adding additional tests for novaclient ssh
There's a few gaps in the testing regime for do_ssh, specifically
around IPv6, specifying identity files, and additional args. This
patch attempts to address these.

Change-Id: I590fd7ffe1e3470c8507d7f7fb2abcfdb6162561
2013-12-20 19:47:59 +10:30
Jenkins
6ba47b96a7 Merge "Adds basic servers support for the Nova V3 API" 2013-12-20 05:07:37 +00:00
huangtianhua
5b773adada Fix "device" as the optional para on volume-attach
Attach a volume to a server without device name, the client returned the
error msg: "error: too few arguments". But for server, we can attach a
volume to a server without the device name.

Change-Id: Ia2743c6e3956cae6591ecd414baf89b0dbcf532b
Closes-Bug: #1257137
2013-12-20 11:34:02 +08:00
Jenkins
606f9ff1c7 Merge "Adds images support for Nova V3 API" 2013-12-19 17:02:25 +00:00
Chris Yeoh
3b5b7b9da3 Adds simple tenant usage support for the Nova V3 API
Adds support and tests for the os-simple-tenant-usage
extension for the Nova V3 API. There are no
differences between the V2 and V3 API and this change
adds the client code to enable the usage command. Note
that with nomenclature change from tenant to project
occuring in Nova there will be a difference between
the V2 and V3 API in the future.

Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v3-api

Change-Id: Iddf6211c9c87cbb191d9a5d5a65710b343c30e67
2013-12-19 23:40:40 +10:30
Chris Yeoh
a29b7c7cc7 Adds keypairs support for the Nova V3 API
Adds support and tests for the keypairs extension for
the Nova V3 API. The V3 version of the keypair extension
has been made part of the core V3 API and as a result no longer
has the "os-" prefix in the url.

Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v3-api

Change-Id: Id4a77e1e4565f63ecdf7753d3c224975519fc07c
2013-12-19 23:40:00 +10:30
Chris Yeoh
e0d7c49043 Adds certificates support for Nova V3 API
Adds support and tests for the os-certificates extension
for the Nova V3 API

Partially implements blueprint v3-api

Change-Id: I9a75bf04a7047af6c501af2df72de4b8ce3462b0
2013-12-19 23:39:28 +10:30