1754 Commits

Author SHA1 Message Date
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
OpenStack Proposal Bot
9758ffc85d Updated from global requirements
Change-Id: I1155f67196b5a8393ff53361ac9c63f3f7c23ad0
2014-08-13 23:24:28 +00:00
Jenkins
f13a246b71 Merge "Fix listing of flavor-list (V1_1) to display swap value" 2014-08-13 21:02:57 +00:00
Jenkins
47fe2d1c8d Merge "Use adapter from keystoneclient" 2014-08-12 21:20:39 +00:00
Takashi Sogabe
53be1f4e2a Fix listing of flavor-list (V1_1) to display swap value
Current version of flavor-list(v1_1 API) does not show
swap value because of selecting wrong field name. This
change displays swap value in the same way to v3 API

Closes-Bug: 1354546
Change-Id: I5c8fca8207032814b96b8410213bf58209d9b526
2014-08-10 06:24:13 +00:00
Jenkins
559dc603ec Merge "Convert to requests-mock" 2014-08-08 00:09:55 +00:00
Jamie Lennox
db6d6780d5 Use adapter from keystoneclient
SessionClient is mostly common code that wasn't yet released in
keystoneclient. Now that 0.10 is released we should use the adapter from
there as much as possible.

Change-Id: Ief6cd7e752fd8c9e9157364f99e270da7faff074
2014-08-08 07:34:32 +10:00
Zhengguang
3955440ef2 Fix the return code of the command "delete"
Currently, the command delete return a zero if it failed for any
of servers, the return code should be a nonzero.

Change-Id: If7009fdeb5a60fe2e357bcc447313cbdb7b2ff39
Closes-Bug: #1339647
2014-08-07 02:27:23 -04:00
Jamie Lennox
caf9f799ef Convert to requests-mock
We've had some trouble with httpretty in the past and so are moving to
requests-mock. There should be no functionality change in this patch,
simply a transition to a newer library.

Examples: 
 - Python 2/3 inconsistencies
 - Breaking compatibility between releases
 - Incorrect package dependency specifications
 - Problems with distro packaging around tests 
 - *can* introduce a maintained state between tests.

Change-Id: I666a5c7e6747f0c5c2dc96336774fd0fcd3f5907
2014-08-06 22:46:55 +00:00
Jenkins
77991e571b Merge "Enable check for E131" 2014-08-05 19:26:27 +00:00
OpenStack Proposal Bot
abae04a9c8 Updated from global requirements
Change-Id: Ia1c665bc9cf86003e72984564c6b954115ae13f0
2014-08-04 03:28:14 +00:00
Christian Berendt
68f357d963 Enable check for E131
* E131 continuation line unaligned for hanging indent

Change-Id: I719d5bcd1b51896c947e637f6dfce2e1f1a6bd2b
2014-08-01 22:39:14 +02:00
Jenkins
aae7ca2f9b Merge "Fix rxtx_factor name for creating a flavor" 2014-07-31 10:51:35 +00:00
Jenkins
efeeb79bc5 Merge "fix host resource repr to use 'host' attribute" 2014-07-31 07:09:45 +00:00
Jenkins
43754f519a Merge "Filter endpoints by region whenever possible" 2014-07-30 17:02:04 +00:00
Ken'ichi Ohmichi
ad9a14ae2b Fix rxtx_factor name for creating a flavor
On v3 API, rxtx_factor parameters has been renamed to
'os-flavor-rxtx:rxtx_factor' for consistent interfaces.
This patch applies it to 'nova flavor-create' command.

Closes-Bug: #1350022
Change-Id: I49e24f0220f87616f346f36973312b2f29333841
2014-07-29 20:17:05 +00:00
melanie witt
9ce03a98eb fix host resource repr to use 'host' attribute
This change fixes an AttributeError raised when attempting to
represent a host resource as a string.

Change-Id: I33369b20ed7f5219c3b507107b8f3a37b46eacee
Closes-Bug: #1327005
2014-07-28 18:54:01 +00:00
Jenkins
50b1068ba6 Merge "Don't log sensitive auth data" 2014-07-28 05:43:11 +00:00
Jenkins
873c55470e Merge "Edits on help strings" 2014-07-27 10:40:17 +00:00
Jenkins
547af1c481 Merge "Add support for new fields in network create" 2014-07-25 20:20:30 +00:00
Joe Gordon
4d2586716a Enable H233
H233 (and H402) were temporarily disabled as part of the migration to
hacking 0.9. This patch fixes all H233 issues and re-enables
gating on them.

H402 has been removed in hacking
(I9426644fa708e9d5563abe04dc4ad656dbeb3656) so leave this one off as its
going away anyway.

Change-Id: Iae8f132c66c5e345dc2e9c2464f67609887c1475
2014-07-25 19:20:38 +02:00
Jenkins
5095d276ef Merge "Sync apiclient from oslo-incubator" 2014-07-25 12:57:04 +00:00
Jenkins
8f53274ac6 Merge "Fix booting from volume when using api v3" 2014-07-25 12:57:02 +00:00
Jenkins
8d979cfa4b Merge "Description is mandatory parameter when creating Security Group" 2014-07-25 12:55:28 +00:00
Jenkins
d97fe1c01b Merge "Add "version-list" for listing REST API versions" 2014-07-25 12:55:25 +00:00
Jenkins
e06e0d24e9 Merge "Enabled hacking checks H305 and H307" 2014-07-25 12:55:23 +00:00
Qin Zhao
60d1283968 Don't log sensitive auth data
This code change redacts the password in keystone request, and
also redact the token text in keystone response. The code still
makes REST call by itelf, instead of calling keystone client.

Closes-Bug: 1327019

Change-Id: Ib9c0610c1ef351a127364478721cf961c2a30125
2014-07-21 01:45:36 +08:00
Christian Berendt
d51b546774 Enabled hacking checks H305 and H307
* H305  imports not grouped correctly
* H307  like imports should be grouped together

Change-Id: I23fdad285508707a2c1d7c832ff8b1a6a10e8f88
2014-07-17 15:31:08 +02:00
Andreas Jaeger
8ec2a29d30 Edits on help strings
Improve help strings for consistency. Fix wording, typos,
capitalization and add "." as appropriate.

Change-Id: I376f6d0269aee8dd0e67ffab6386eac2139844ab
2014-07-16 18:33:25 +02:00
Vishvananda Ishaya
c59a0c8748 Add support for new fields in network create
Also adds missing network-delete shell command. Additionally changes
the type of vlan and vlan_start to int to match the api samples.

Partially-implements blueprint better-support-for-multiple-networks

Change-Id: I233614431db4737284cceaf8e6b947f50dd84602
2014-07-15 15:01:44 -07:00
Jenkins
e551cb0a34 Merge "Convert server tests to httpretty" 2014-07-15 21:03:49 +00:00
Jenkins
ecb3320df1 Merge "Revert "Reuse exceptions from Oslo"" 2.18.1 2014-07-15 15:23:35 +00:00
Ken'ichi Ohmichi
67585ab36e Add "version-list" for listing REST API versions
Nova provides REST API versions.
This patch adds a subcommand "version-list" for outputting the versions.

Change-Id: I1b40ad57912aa740c0b1d9221018aba9b13a5436
2014-07-15 06:50:50 +00:00
Sanjay Kumar Singh
0ff4afc8e9 Description is mandatory parameter when creating Security Group
As per the bug, description should not be a mandatory parameter
as it creates inconsistency with other opestack items which has
description as an optional parameter.

So in the fix, the description argument has been made optional.
The old command was:
nova secgroup-create <name> <description>
Now new command will be:
nova secgroup-create <name> [<description>]

Patch updated based on the comments received

Updated commit message for gerrit autolink

Closes-Bug: #1332133
Change-Id: I2ded915be4a57f3c46e6cf5d1bf00e8c917cd0b9
2014-07-15 09:58:43 +05:30
Russell Bryant
d678dd2955 Revert "Reuse exceptions from Oslo"
This reverts commit 3bde9c3f427110dae3480644752f49b79ac66ec5.

This change is a part of a series that is not backwards compatible.
It broke applications using the client library.

Change-Id: Id01a0a0feb601539d3855f445ebaf6a3cc000610
Partial-Bug: #1340596
2014-07-14 09:43:44 -04:00
Jenkins
deef71af93 Merge "Convert Server Group Tests to httpretty" 2014-07-13 01:15:59 +00:00
OpenStack Proposal Bot
2ebed395c9 Updated from global requirements
Change-Id: Ice5da31fbd5b5689ced6326f195a2241c6220083
2014-07-11 21:55:36 +00:00
Russell Bryant
e14f9741a6 Revert "Set default http-based exception as HttpError"
This reverts commit 4e1ee661083bd672a884fd13fdb1ffaadea5252a.

This change is a part of a series that is not backwards compatible,
and caused breakage in applications that use the client library.

Change-Id: If614826fb0832602110c1ac8be2c0e6324a5a248
Partial-Bug: #1340596
2014-07-11 13:30:25 -04:00
Jenkins
f1db442bec Merge "Convert security group tests to httpretty" 2014-07-11 05:03:57 +00:00
Jenkins
711326a834 Merge "Fix the wrong dest of 'vlan' option and add new 'vlan_start' option" 2014-07-11 01:30:14 +00:00
Jenkins
580c0aa611 Merge "Adding multiple server support to nova reset-state" 2.18.0 2014-07-10 23:07:02 +00:00
ozg
3b8f009700 Adding multiple server support to nova reset-state
Adding support specifying multiple servers to nova reset-state in
a single invocation.

Change-Id: I7add0c26b0e59b31751de7a60ebdde3f568b3354
Closes-Bug: #1314217
2014-07-10 10:16:57 -04:00
Pawel Koniszewski
a06a6abca7 Update nova boot help
Actual help string for --block-device flag is not clear.
User doesn't know which parameters are required and which are not.
Change improves description of each parameter, so that user can
understand how the --block-device works.

Change-Id: If23cb2d64adb51dfb45e48511ca25988bc43b739
Implements: nova boot --block-device usage unclear
Partial-Bug: #1323775
2014-07-10 15:43:24 +02:00
Jenkins
39d1d0156b Merge "Fixing flavor access __repr__ method" 2014-07-09 23:41:56 +00:00
Jenkins
aca16d2baf Merge "Convert security group rules tests to httpretty" 2014-07-08 23:35:19 +00:00
Jenkins
7d9d15ee55 Merge "Convert Quota tests to httpretty" 2014-07-07 01:02:24 +00:00
Jenkins
ddb9749599 Merge "Fix listing of Server in floating-ip-list" 2014-07-04 19:47:29 +00:00
Jamie Lennox
aec5b59e79 Convert Server Group Tests to httpretty
Change-Id: Ia67fe5f27fa9b7490e72e0e0c6e44b9c83d611c8
blueprint: httpretty-testing
2014-07-04 17:10:51 +10:00
Jamie Lennox
0170e78454 Convert security group tests to httpretty
Change-Id: Icdc2c2c6f66a014c29241e262d21d50e39128105
blueprint: httpretty-testing
2014-07-04 17:10:51 +10:00
Jamie Lennox
d6f59a3016 Convert security group rules tests to httpretty
Change-Id: I7b68712b05764661d3e7c3dcac7fce041e88e293
blueprint: httpretty-testing
2014-07-04 17:10:51 +10:00