1811 Commits

Author SHA1 Message Date
Jenkins
87a1ebcd14 Merge "Corrects typos "coearse," "proejct," and "unecrypts"" 2014-09-19 06:19:01 +00:00
Jenkins
3877f871a5 Merge "Add retry_after only to exceptions supporting it" 2014-09-19 02:16:51 +00:00
Rafael Rivero
98acb7fb7d Corrects typos "coearse," "proejct," and "unecrypts"
Misspelling of "coerce" found in the docstring body
of method _boot from class ServerManager. Misspellings
of "project" and "unencrypts" found in docstrings
of client.py and crypto.py.

Change-Id: I052c321f3ad5e13aa57a559e2f28ec5eec32a9b4
2014-09-18 15:24:54 -07:00
Michal Dulko
310b87ecbb Add retry_after only to exceptions supporting it
Having retry_after in HTTP response header for 403 status code caused
client to fail with TypeError exception about unexpected keyword
argument. This is related to bug in nova-api. To prevent this kind of
client problems in the future patch adds check to from_response
function to pass retry-after header only to classes that inherit
from RetryAfterException and regression unit tests.

Change-Id: I6bfc8b33eb591d30b3c647397b11100094718e13
Closes-Bug: 1365251
2014-09-18 13:07:17 +02:00
Jenkins
3e5dae84a8 Merge "secgroup-create description is not optional" 2014-09-17 22:34:24 +00:00
Jenkins
a6dc7fc43e Merge "Add support for the server group quotas" 2014-09-17 17:05:08 +00:00
Jenkins
b8ad231654 Merge "add new command get-serial-console" 2014-09-17 15:09:22 +00:00
Jenkins
9312e25c4b Merge "Make findall support server side filtering" 2014-09-17 02:52:23 +00:00
Jenkins
c5a3aefbd0 Merge "Fix order of arguments in assertEquals" 2014-09-17 01:55:30 +00:00
Jenkins
84ccbf3681 Merge "novaclient: Convert v3 boot command with v2.1 spec (bdm)" 2014-09-17 01:24:54 +00:00
Jenkins
3cdfc609e5 Merge "novaclient: Convert v3 boot command with v2.1 spec (security-groups)" 2014-09-17 01:24:38 +00:00
Jenkins
0636d003c1 Merge "novaclient: Convert v3 boot command with v2.1 spec (user-data)" 2014-09-17 01:24:26 +00:00
Jenkins
ce115063bb Merge "Don't display duplicated security groups" 2014-09-16 03:44:24 +00:00
Chris Yeoh
bd65fde64c secgroup-create description is not optional
The description field to the Nova API for secgroup
create is not optional. This enforces the supplying
of the description field in novaclient as the Nova
call will fail if it is not supplied.

v3 version does not need to be updated as it was never
changed.

Change-Id: I6fc823990190b935a8e1214efc8c3ac3a0941abf
Closes-Bug: 1367121
2014-09-16 11:25:18 +09:30
Jenkins
915e9161a6 Merge "Stop using intersphinx" 2014-09-15 21:53:50 +00:00
Jenkins
19e75646fe Merge "quota delete tenant_id parameter should be required" 2014-09-15 21:43:30 +00:00
Jenkins
46e48aefef Merge "delete python bytecode before every test run" 2014-09-15 16:41:12 +00:00
Phil Day
0763480048 novaclient: Convert v3 boot command with v2.1 spec (bdm)
The v3 client was written assuming that some arguments
would be renamed for better consistency.   V2.1 will follow
the v2 syntax,  so we need to convert the client back to
that.

This change fixes the block-device-mapping element.

Change-Id: Id91ad05aa86b32755e0b06be5f0e50cc1e83cb15
2014-09-13 08:51:52 +00:00
Andreas Jaeger
cd56622300 Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This can cause docs jobs to fail if the project errors out on
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-13 09:44:39 +02:00
Phil Day
688b1add60 novaclient: Convert v3 boot command with v2.1 spec (user-data)
The v3 client was written assuming that some arguments
would be renamed for better consistency.   V2.1 will follow
the v2 syntax,  so we need to convert the client back to
that.

This change strips the “os-user-data:” prefix from the user-data
field in the server element

Change-Id: I8f0e579b30547ce3fe778116745b4107d88c9be0
2014-09-12 23:10:05 +00:00
Phil Day
ca3621e218 novaclient: Convert v3 boot command with v2.1 spec (security-groups)
The v3 client was written assuming that some arguments
would be renamed for better consistency.   V2.1 will follow
the v2 syntax,  so we need to convert the client back to
that.

This change converts os-security-groups:security-groups to
security-groups in the server element

Change-Id: I50a5b180b7edd645e610ff2d77b6d485924c82a1
2014-09-12 23:02:58 +00:00
Sean Dague
d96f13d2e2 delete python bytecode before every test run
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Related-Bug: #1368661

Change-Id: I00ee418eea2d82031bb510b09e63e2ec87fb1b09
2014-09-12 17:37:15 -04:00
Cyril Roelandt
730fa4d0b2 Add support for the server group quotas
Implements: blueprint server-group-quotas
Change-Id: I440d460d227f4447c2b960b6343b8fe1f6cbd3fb
2014-09-12 18:25:24 +00:00
Chris Yeoh
4bd0c389c0 quota delete tenant_id parameter should be required
Makes the quota-delete tenant_id parameter required rather than
optional. Currently if not supplied it will pass 'None' as the tenant id
to the Nova API. It will be silently ignored (at least until
https://review.openstack.org/120971 has merged after which it will fail)
and no quota will be deleted.

Change-Id: I3ad8f36e92ed9ac54bf892f329ce3feb56f01be5
Closes-Bug: 1367127
2014-09-12 21:07:39 +09:30
Sean Dague
3d68063809 Don't display duplicated security groups
As reported by users, we end up displaying duplicate security groups
on multi nic vms using neutron. Let's not do that.

Also add security group listing to the v3 client to make it
consistent.

Change-Id: I0a983aac08aaeacf3c2aef5aae49f64265fe78c5
Closes-Bug: #1331307
2014-09-12 06:47:03 -04:00
OpenStack Proposal Bot
2a1c07e790 Updated from global requirements
Change-Id: I76f8003d3e387bd67a017435d21dc340c7ff0124
2014-09-11 00:31:16 +00:00
Jenkins
4dbf1323cc Merge "Enhance network-list to allow --fields" 2014-09-10 12:09:06 +00:00
Sahid Orentino Ferdjaoui
e7f880532d add new command get-serial-console
Adds v1.1 command get-serial-console

Change-Id: Id6b1e470088a72409f5609538be72c3cf2288a86
Parial-Implements: blueprint serial-ports
2014-09-10 08:37:04 +00:00
Jenkins
523e5bc8a9 Merge "Use Token fixtures from keystoneclient" 2014-09-09 08:10:34 +00:00
Joe Gordon
07260236ab Make findall support server side filtering
Instead of listing all servers and doing clientside filtering, use the servers
filtering on name.the server's list already supports filtering
so just pass a search_opts dictionary into list().

This should speed up nova commands when a user has large numbers of servers.

Change-Id: I6deea8523754ff213f43bd059fb00f34fc0e1a12
Closes-Bug: #1202179
2014-09-08 18:10:25 -07:00
Jenkins
7377b42482 Merge "Use oslo.utils" 2014-09-08 17:39:25 +00:00
Jamie Lennox
319b61aa2f Fix test mistake with requests-mock
body= parameters are supposed to be io objects. This is obviously during
the conversion from HTTPretty.

Change-Id: I2f2077fbe219805c4aaf9db19bc53ad7e4dde4dd
Closes-Bug: #1363632
2014-08-31 22:06:39 +10:00
Jenkins
3fa05957da Merge "Add support for security-group-default-rules" 2014-08-29 11:20:19 +00:00
Jenkins
146fe804a8 Merge "Adding cornercases for set_metadata" 2014-08-28 11:11:49 +00:00
Andrey Kurilin
392148c7ef Use oslo.utils
Modules `strutils`, `timeutils` and `network_utils` from common code are
graduated in `oslo.utils`, so we can:
 1. remove `novaclient.openstack.common.network_utils` and use
    `oslo.utils.netutils` instead.
 2. use `oslo.utils.encodeutils` and `oslo.utils.strutils` instead of
    `novaclient.openstack.common.strutils`.
 3. use `oslo.utils.timeutils` instead of
    `novaclient.openstack.common.timeutils`.

Additional information:
 - modules `importutils`, `strutils` and `timeutils` from
   `novaclient.openstack.common` cannot be removed, because:
   - importutils is used by apiclient and jsonutils;
   - strutils is used by apiclient, cliutils and jsonutils;
   - timeutils is used by jsonutils
 - additional check for `safe_encode` in Py3 is required, since
   If91a866d864a22d28a352152beff4c7406a27b7b was merged.

Change-Id: Ib8d79d9c85af4916e87a76a1a67a13488ddaa111
2014-08-28 12:17:22 +03:00
Jenkins
bd709d78ab Merge "Updated from global requirements" 2014-08-27 16:01:25 +00:00
Jamie Lennox
e871bd2f7e Use Token fixtures from keystoneclient
Keystoneclient provides a way of generating correctly formed tokens. We
should test using those rather than things we copy and paste ourselves.

Change-Id: I163940c3cd92060f68e9b1149865feeef0480e6e
2014-08-27 10:19:18 +10:00
Tom Cammann
aa30c13fc5 Update requirements.txt to include keystoneclient
Keystone client is required by nova client and needs to be in
requirements.txt. It is currently in test-requirements.txt but also
needs to be in install requirements.

Change Ief6cd7e752fd8c9e9157364f99e270da7faff074 introduced the
requirement for keystone client.

Change-Id: I91f58810e0511d0d4acc5bba0c0e946edf247896
Closes-Bug: 1358675
2014-08-26 11:05:16 +01:00
OpenStack Proposal Bot
bcc009aac9 Updated from global requirements
Change-Id: I6c2fb676276746719e982d42857e1d03a502d886
2014-08-26 02:59:51 +00:00
Jenkins
25d3d66cc1 Merge "Add filtering by service to hosts list command" 2014-08-25 22:02:27 +00:00
Jenkins
a1e88c805c Merge "Updated from global requirements" 2014-08-23 20:57:32 +00:00
Jenkins
b6246ea844 Merge "Fix variable error for nova --service-type" 2014-08-23 01:50:50 +00:00
OpenStack Proposal Bot
f0beb29156 Updated from global requirements
Change-Id: I6ccf81a6c605b21946cfcebf817fc1b25f23cae6
2014-08-22 12:34:19 +00:00
Jenkins
74bb2ce0be Merge "Adding Nova Client support for auto find host APIv3" 2014-08-21 23:24:57 +00:00
Jenkins
e0ed6a1e76 Merge "Adding Nova Client support for auto find host APIv2" 2014-08-21 23:24:49 +00:00
Jenkins
b6b21ac61d Merge "Enable several checks and do not check docs/source/conf.py" 2014-08-21 16:14:51 +00:00
Jenkins
cd4428885b Merge "Allow selecting the network for doing the ssh with" 2014-08-21 16:08:41 +00:00
Rafi Khardalian
cc4f3dfc9c Enhance network-list to allow --fields
Add the ability to specify --fields, using any valid vields, when
doing a network-list. This code was shamelessly borrowed from
do_list(). This will allow crafting network-list queries which
mirror the functionality of 'nova-manage network list', which this
query was intended to replace.

Change-Id: I7ec7066350cdb979a64d20d14362b12e3ec76496
2014-08-20 18:47:47 -07:00
Juan Manuel Olle
fe95fe48fc Adding Nova Client support for auto find host APIv2
Adding nova client functionality to use the auto find
destination host for evacuate.
This change makes the target host optional
on evacuate command.

Partial Implements: blueprint find-host-and-evacuate-instance

Co-Authored-By: Leandro Costantino <leandro.i.costantino@intel.com>
Change-Id: I4e6b52df9c55b223c8693058d73125962cff4d16
2014-08-19 15:38:31 +00:00
Leandro I. Costantino
b3da3ebf97 Adding Nova Client support for auto find host APIv3
Adding nova client functionality to use the auto find
destination host for evacuate.
This change makes the target host optional
on evacuate command.

Partial Implements: blueprint find-host-and-evacuate-instance

Change-Id: I40619b8d1eea6ae44ed5e43fb50ce2c1862686d6
Co-Authored-By: Juan M. Olle <juan.m.olle@intel.com>
2014-08-19 15:33:57 +00:00