1985 Commits

Author SHA1 Message Date
Jenkins
b41d319308 Merge "Add missing servers.create parameter documentation" 2015-03-12 22:33:53 +00:00
Jenkins
49d6d9278c Merge "Add Client object to documentation" 2015-03-12 18:32:48 +00:00
Jenkins
5e0e430d00 Merge "Add a test for the TCPKeepAliveAdapter" 2015-03-12 18:32:40 +00:00
Jenkins
b4fc9e0d2c Merge "nova client cinder query param changed to display_name" 2015-03-12 18:32:26 +00:00
melanie witt
7b1734d44e Add missing servers.create parameter documentation
The min_count, max_count, and security_groups parameters for
servers.create are missing documentation. The security_groups
parameter was documented in the servers._boot function but that
private function isn't published to the docs.

This change adds the missing documentation for the aforementioned
parameters and removes the duplicate docs in the servers._boot
function.

Change-Id: Ib0dcc7e8f7f4d0b83b6caeddd1ace66add4e0003
2015-03-12 18:16:58 +00:00
Jenkins
1940093621 Merge "Fix client usage in api example" 2015-03-12 15:17:55 +00:00
Ian Wienand
e9c70598f3 Add Client object to documentation
After wanting to do a rather simple thing -- figure out of the
"timeout" argument to nodepool was a int or a float, it lead me down
the rabbit-hole to python-novaclient.

It turns out the timeout does get passed through to requests as a
float so that mystery was solved.

But the "Client" class seems to be missing from the documentation as
it's not included in the class list.  So add that and also at least
document the types of the arguments.

However, then I noticd that this wasn't showing up; turns out sphinx
requires "autoclass_content = both" if you want it to document
__init__() functions.  Several other classes had their init args
documented but they weren't showing up because of this.

Change-Id: I8f44e92f2a0f25a75926b1813a8b374e79b4f5db
2015-03-12 11:49:04 +11:00
Jenkins
819e94bc5e Merge "Update help message for nova boot --file" 2015-03-12 00:13:03 +00:00
Jenkins
1ce4e5a687 Merge "Fix typo in socket attribute name" 2015-03-11 21:39:52 +00:00
melanie witt
8c0baaea57 Add a test for the TCPKeepAliveAdapter
Related-Bug: #1430935

Change-Id: Idfea26c8eb6448a4c6adc0f3a916515bd4655c1a
2015-03-11 21:03:25 +00:00
Joe Gordon
1b512da159 Update help message for nova boot --file
Stop hard coding the default value for the injected_files quota and just
point to the quota instead.

Change-Id: Ia2abc7e4c3d0e5f954a5c09ff76f11a794e89695
2015-03-11 14:01:26 -07:00
Jenkins
3db98546cf Merge "nova flavor-show command is inconsistent" 2015-03-11 20:14:17 +00:00
David Moreau Simard
689a884e18 Fix typo in socket attribute name
The proper attribute name is 'IPPROTO_TCP', not 'IPROTO_TCP'.
This would lead to an AttributeError since socket does
not have an attribute named 'IPROTO_TCP'.

Change-Id: Ibd3c1e8d48ae57994d023bf18dd53a298466f6cb
Closes-Bug: 1430935
2015-03-11 13:53:24 -04:00
Anand Shanmugam
41ef74971e nova client cinder query param changed to display_name
nova client is not able to show the list of volumes when
querying by name.This is because cinder api accepts only
display_name as query parameter and when qeried with 'name'
parameter returns a empty list

Change-Id: Ie4ffc275d1754052d9e239d8457baf6f7fd53b83
Closes-Bug: #1430415
2015-03-11 20:48:46 +05:30
Abhishek Talwar
4e79285b45 nova flavor-show command is inconsistent
The nova flavor-show command accepts a flavor
name as its parameter. The command show inconsistency
as it works with the exact flavor name and flavor name
in all lowercase but fails for any other case pattern.

So, updated the code so that if we run the command
with flavor-name case patern it runs fine.

Closes-Bug: #1423885
Change-Id: I713bf2b5aca977df40dc745e29d4fe98a950c991
2015-03-11 09:52:44 +05:30
Chris St. Pierre
b7972478ff Update help messages for default security group commands
The secgroup-{add,delete,list}-default-rules? family of commands has
confusing help text that makes it sounds like they actually operate on
the default security group (that is, the security group named
'default' which is the default for the current tenant). Instead, the
operate on a sort of meta-security-group object which is only used to
populate the 'default' security group in newly-created tenants. This
is crazy confusing. These commands get fancy new help strings that
should hopefully make it a little more clear.

Closes-Bug: 1430354
Change-Id: I4d9569ba7ea9ad7a20e984df7a137c99240a9748
2015-03-10 21:33:56 -05:00
Jenkins
876a3bd80a Merge "Add functional testing README" 2015-03-10 01:34:05 +00:00
Joe Gordon
cf03aeb436 Add functional testing README
Outline the background and goal of the functional testing.  Want to make
sure there is consensus on how this should look. Next step is to
reorganize the functional tests to follow the plan outlined here.

Change-Id: I1d6889682f50f78b0681c99b77475adba95ef807
2015-03-09 14:41:02 -07:00
Thomas Bechtold
dc2d210f75 Fix client usage in api example
The used class to create an instance was not available. Use the correct
class.

Change-Id: Ie07504bff47e2c3e7120750cd2064cb97ad863a6
2015-03-07 01:07:56 +00:00
OpenStack Proposal Bot
8f39d9c9bd Updated from global requirements
Change-Id: Ibd49980b4f03724a2b5208c348198c30766f7c9d
2015-03-07 00:23:02 +00:00
Jenkins
6c59d708ce Merge "Cleanup in asserts in python-novaclient" 2015-03-03 22:50:56 +00:00
Jenkins
400127ffb4 Merge "Update version of novaclient in the docs" 2015-03-03 19:18:31 +00:00
Jenkins
9c719d17d4 Merge "Moved set of asserts from post_servers_1234_action methods." 2015-03-03 17:59:08 +00:00
Pavel Kholkin
560eeafb6d Cleanup in asserts in python-novaclient
The following replacements were done:

1) assertEqual(True, *) -> assertTrue(*)
2) assertEqual(False, *) -> assertFalse(*)
3) assertTrue(a in b) -> assertIn(a, b)
4) assertTrue(* is not None) -> assertIsNotNone(*)

TrivialFix

Change-Id: I8d8a2d7b5d3505e07728544b683b301d1a8850cf
2015-03-03 15:36:49 +03:00
Andrey Kurilin
574016a9ad Update version of novaclient in the docs
docs config contains variables 'version' and 'release', which is a little bit
outdated. Since these variables are not used, let's comment them(they can be
helpful in future).

Change-Id: I39f41002f69efc48841e7703b0c767bda0448c09
2015-03-03 11:59:15 +02:00
Pavel Kholkin
9f4d64a1bf Cleanup in test_images and image_fakes
Unused code was removed in fixture_data/images.py
for unknown image requests that relate to
v2/images.py and test_images for them.

Change-Id: I7e31a572116b1e5cf0df9f431f8e53470d27d066
2015-03-02 19:07:46 +03:00
Jenkins
7e7764ced5 Merge "Enable check for E124 rule" 2.22.0 2015-02-28 01:05:05 +00:00
Jenkins
a787261466 Merge "Fix description of parameters in nova-client functions" 2015-02-28 00:11:17 +00:00
Jenkins
763e30666d Merge "Updated from global requirements" 2015-02-27 16:31:27 +00:00
Pavel Kholkin
5f3f52e7db Fix description of parameters in nova-client functions
Resolved issues in python-novaclient code like
Function 'func_name' does not have a parameter 'param_name'

TrivialFix

Change-Id: I87cfd346ed8d7dd45bc4dc96bc89c576b5145711
2015-02-27 16:56:28 +03:00
Sergey Nikitin
53f0c5428f Enable check for E124 rule
Fix E124 failures and enable check for E124

E124 closing bracket does not match visual indentation

Change-Id: Iec6af44362dcf613cfaccbccbe53de82aba51a6a
2015-02-27 16:30:03 +03:00
Jenkins
7a1066fb79 Merge "allow --endpoint-type internal|admin|public" 2015-02-26 01:21:18 +00:00
Jenkins
ff2b679457 Merge "Fixed redeclared test_names" 2015-02-26 01:21:11 +00:00
Jenkins
1fc8bdc314 Merge "add pretty_tox to nova functional tests" 2015-02-25 21:55:51 +00:00
Sergey Nikitin
4f9797a659 Removed unused 'e' from 'try except' statements
Change-Id: I57dee43ffcd42fe17914ae01078ae06baf3b4315
2015-02-25 14:05:09 +03:00
yatin karel
e6883d24d0 allow --endpoint-type internal|admin|public
other openstack clients like glance, cinder  use --endpoint-type
(internal|admin|public). This allows users to use the same arguments
with the nova cli.

Partial-bug: #1367389

Change-Id: Ia55cad797ac0dca7fa60f55c1f2dfba0b64d0fd3
2015-02-25 10:02:41 +00:00
Pavel Kholkin
f2a581ee28 Fixed redeclared test_names
Fixed redeclared test_names for two test functions that pass now:
 1) 'test_list_security_groups_all_tenants_on'
 2) 'test_find_by_str_name'

Small spelling corrections

TrivialFix

Change-Id: Iacb0ce5697779f9342c22a22cb2f29a8e063b459
2015-02-24 19:29:23 +03:00
OpenStack Proposal Bot
b00f6756c0 Updated from global requirements
Change-Id: I94de0a33e1b5a2d9df134c58d45546612cf6ace9
2015-02-24 15:21:55 +00:00
Sean Dague
9a06348f47 add pretty_tox to nova functional tests
debugging tests is a lot easier when you can actually inject stderr
directly through even on successes. Add the pretty tox facility from
nova / tempest-lib into python-nova client as well for functional
tests.

Change-Id: I5c1f8244a5c743b590b74a8eb3eaf4a699555644
2015-02-23 17:22:10 -05:00
Sean Dague
be41ae238d add functional test for nova volume-attach bug
This is a functional test that boots a server via the cli, creates a
volume, and tries to attach it via the cli (which causes a failure due
to completion cache code). Note: the failure actually happens *after*
the attach command is dispatched, so the volume attach will still
work, the user is presented an error though.

Many TODOs remain for future patches. The test also tries to document
what was learned about the CLI redirection to cinder API, which was
introduced when Cinder was split out, but was tribal knowledge that
was lost in the mists of time.

Related-Bug: #1423695

Change-Id: Iaf474298be135843bff0114cf211bee19762f3ad
2015-02-23 17:21:52 -05:00
Andrew Laski
ac6636a54d Revert "Overhaul bash-completion to support non-UUID based IDs"
This reverts commit 4c8cefb98a425382204df2f38f24e6b5b71520dd.

The cache completion was causing a bug where 'nova volume-attach' would
then try to query Nova for volume information using a URL that was not
valid.  This caused it to appear that the attach had failed.

Additionally the idea of making extra API queries for a bash completion
cache should be thought through more.

Conflicts:

	novaclient/client.py
	novaclient/shell.py
	novaclient/v2/client.py
	novaclient/v3/client.py

Closes-Bug: #1423695
Change-Id: I6676a11f9b5318a1cda2d03a5d4550bda549d5c2
2015-02-20 01:35:57 +00:00
Jenkins
bfd029c8ef Merge "Updated from global requirements" 2.21.0 2015-02-13 19:44:24 +00:00
Haiwei Xu
dfc752d725 Change commands name from net-* to tenant-network-*
Currently the commands of os-tenant-network API use net-*
which may confuse users sometime. This patch changes commands
to tenant-network-*, and marks net-* commands as DEPRECATED.

Closes-Bug: #1152862
Change-Id: I8c3a0be08763a6f626d7fc7cf84811ac61ccc526
2015-02-13 17:47:18 +09:00
OpenStack Proposal Bot
92a72a0e63 Updated from global requirements
Change-Id: Ica3a241ba6fea3bf2fbf1c6e7cd069d13dc7d84c
2015-02-13 02:00:26 +00:00
Jenkins
b53a5e5ab1 Merge "Copy functional tests from tempest cli read only" 2015-02-12 00:39:26 +00:00
Joe Gordon
27cd393028 Copy functional tests from tempest cli read only
Copy tests in from tempest/cli/simple_read_only/compute/test_nova.py in
preparation for removing that file.

Change-Id: I5a34cf1a39d4f73f94a27cce365434bd4a0eea0b
2015-02-11 14:55:26 -08:00
Jenkins
3870216567 Merge "Add all tenants search opt to del instnce by name" 2015-02-10 17:29:27 +00:00
Jenkins
78fd2ed0de Merge "Add support for keypair-add command reading public key from stdin" 2015-02-10 17:25:59 +00:00
Jenkins
65bd6245d1 Merge "Check 'auth_url' is presented while authentication" 2015-02-10 17:25:43 +00:00
Ritesh Paiboina
a0481e1c80 Add all tenants search opt to del instnce by name
Nova delete command deletes an instance by name
or ID. Nova delete command is able to delete an
instance within the same the tenant by name or
ID. When admin credentials are sourced and try
to delete a non admin tenant instances, nova
delete command is able to delete an instance by
ID only, it is not able to delete an instance by
name.

Nova delete command deletes an instances by id
using following api call
/v2/{tenant_id}/servers/{server_id}
But to delete an instance by name, nova delete
command first find the resources by name using
following api call
/servers?name={server_name}
This api call is not able to retrive the list
of other tenant instances.
Adding all tenants parameter to this api call
will retrive the list of other tenant
instances. The following will be new api
call
/servers?all_tenants=1&name={server_name}

Closes-Bug: #1247030

Change-Id: I03e578d58214c835d9a411752bd618d77ced37ff
2015-02-10 06:03:09 +01:00