1768 Commits

Author SHA1 Message Date
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
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
Michal Dulko
3fa04e6d2d Add filtering by service to hosts list command
This commit adds --service-name option to host-list command allowing
user to filter hosts by service.

DocImpact
Closes-Bug: 1224763
Change-Id: Ic67deb3af7ddbe23c14fa38ae180d43ab484b78f
2014-08-19 13:21:00 +02:00
igormilovanovic
c204613ee4 Quickstart (README) doc should refer to nova
Closes Bug: #1358385

Change-Id: I0d9592d3221f3a4295bce7e5da8472ea73e0bcc7
2014-08-18 20:29:53 +01: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
liyingjun
c55383f734 Fix variable error for nova --service-type
When running 'nova' with '--service-type' option, it raises an variable
error.

$ nova --service-type compute list
ERROR: local variable 'os_compute_api_version' referenced before
assignment

When '--service-type' option is given, the default value of
'os_compute_api_version' does not apply.

Change-Id: I19554756e8eb56e3a5984ed3078137af9687f986
Closes-bug: 1315368
2014-08-07 08:11:29 +08: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
Christian Berendt
33058cbe8e Enable several checks and do not check docs/source/conf.py
* E265 block comment should start with '# '
* H302 import only modules

Do not check docs/source/conf.py. The file is imported from the
cookiecutter template.

Documented why checks are ignored and if they should be enabled
in the future.

Change-Id: I367064ecaa6d1fd9d918f7ce003303e2db660647
2014-08-05 22:18:14 +02: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
Jaroslav Henner
ff4af92b6d Allow selecting the network for doing the ssh with
Previously, nova ssh was searching for network types: public and
private, which seems to be incorrect (fixed and floating seems to be
correct), causing that this command has probably never worked.

This commit fixes the above and adds an option for selecting the network
to use, which is helpful when there are more networks for the VM.

Change-Id: I01ea6cee725c0feaacab60975c3792b0ac1305e9
Closes-Bug: #1227694
Closes-Bug: #1343991
2014-07-29 13:20:52 +02: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