2004 Commits

Author SHA1 Message Date
Sean Dague
31f97a011b fix FloatingIP repr
The FloatingIP repr added in d614dbcab9cc8c5732ce28c655738218e147aad7
is incorrect, and can cause fails when you attempt to do bulk creation
activities with logging turned on.

This removes the __repr__ for FloatingIP so that it fails back to the
Resource defaults which are safe.

Partial Revert of d614dbcab9cc8c5732ce28c655738218e147aad7

Closes-Bug: #1437244

Change-Id: I8cedf418917157ce632606bef640049140134372
2.24.1
2015-04-22 06:56:38 -04:00
Jenkins
5eab1430f2 Merge "Remove all imports from oslo namespace" 2.24.0 2015-04-20 22:42:54 +00:00
Jenkins
2b1f70c4ff Merge "Fix typo on class Client sample" 2015-04-20 19:56:35 +00:00
Andrey Kurilin
ccff3d3c94 Remove all imports from oslo namespace
oslo namespace is deprecated

Change-Id: I345eb210222d8e973b99f27821099f52883ab27d
2015-04-20 13:52:38 +03:00
Ken'ichi Ohmichi
c4d2f92116 Fix typo on class Client sample
Current Client sample doesn't work because the imported class is not
used in the sample. This patch fixes it.

Change-Id: I01d4ec277a8858a14f4e3a50b8de130aa5a4f0b5
2015-04-17 05:36:27 +00:00
Doug Hellmann
9799353781 Uncap library requirements for liberty
Change-Id: Ia92f6e83fa2f5229606095ca41bc638cdab99fee
Depends-On: Ib948b756b8e6ca47a4c9c44c48031e54b7386a06
2015-04-16 18:13:32 +00:00
Jenkins
3681c186f7 Merge "Combine test cases for checking nova limits response" 2015-04-01 22:26:41 +00:00
Rajiv Kumar
88beed19db Combine test cases for checking nova limits response
nova rate-limit returns absolute limits too, but novaclient does
not show absolute limit,a bug
(https://bugs.launchpad.net/python-novaclient/+bug/1172254) has
been filed for this one. There is no test which assert on both
absolute and rate limit. This patch assert on both the rate and
absolute limit returned

Change-Id: Ia635f32eefc46e22e3f4e45a7885f492bb967a99
Closes-Bug: #1436653
2015-04-01 08:35:39 +05:30
Jenkins
493a33a024 Merge "Fix repr of FloatingIPBulk" 2015-03-31 21:34:37 +00:00
Eugeniya Kudryashova
d614dbcab9 Fix repr of FloatingIPBulk
While creating floting ip range returned by API object doesn't contains
attribute 'address', but repr tries to get it. So change list to return
objects of FloatingIP and add repr to FloatingIP,
also changed repr of FloatingIpRange to return actual range of addresses

Closes-bug: #1437244
Change-Id: Ia9e30a3f3d82fa8dde113b40d2da372bf1e7a086
2015-03-31 20:16:14 +03:00
Jenkins
33c70dbe20 Merge "Don't record time when self.timing is False" 2015-03-28 01:10:37 +00:00
Jenkins
5a6f8717f7 Merge "Corrected help for nova boot when attaching block device" 2015-03-26 18:46:30 +00:00
tengqm
038c0dc624 Fix comments on metadata number limitation
The comment says that at most five key/value pairs are allowed but it is
not true, at least not true any more, based on some experiments. This
patch fixes the comment to avoid confusion.

Change-Id: I098ded910a6c7c2a7f967e6afe14e93d231d7ace
2015-03-26 16:36:12 +08:00
yatinkarel
4cef067d41 Corrected help for nova boot when attaching block device
When adding block device with swap format, size is in MB and for
other formats it is in GB, so help is modified to show correct
description

Change-Id: I0472f2a86ed2a2a651d7bbb08976e8813fb72041
Closes-Bug: #1407383
2015-03-26 12:09:27 +05:30
Chris Yeoh
0343dff973 Removes reference to v3 nova api from novaclient docs
The Nova V3 API no longer exists. Although a version of the framework
exists in Nova as part of the new V2.1 API which is equivalent to
the V2 API there is no need to make mention of V3 in the novaclient
documentation.

In future we will be distinguish between legacy Nova API support (one
implementation of V2) and microversions Nova API support (the
new one) to reduce confusion around version numbers which will change quite
a bit without the framework changing.

Co-Authored-By: Andrey Kurilin <akurilin@mirantis.com>

Change-Id: Id0ff51e1165cb267045d7a63aff13c0e41336738
2015-03-25 12:15:40 +10:30
ZhiQiang Fan
1c39f8fabf Don't record time when self.timing is False
The expected behavior is when timing is True, then we record each
request's time, then we should call reset_timings() to release memory.

However, the shell, client.{HTTPClient,SessionClient} will record each
request's time no matter what timing is set, then after long running
time in service like ceilometer-agent-compute, the memory keeps increasing.

We'd better not record request's time when timing is set to False.
Users are not responiable to call reset_timings() when they don't want
timing functionality.

Change-Id: I3e7d2fadf9a21be018781d528a1b6562228da6dd
Closes-Bug: #1433491
2015-03-21 19:27:36 +08:00
OpenStack Proposal Bot
025bcfb1e3 Updated from global requirements
Change-Id: I88ec1f9d3356c8d384b56abc06696755ee3fa2a5
2015-03-21 00:17:56 +00:00
jichenjc
8679eedb83 Revert 'Remove image to local block device mapping'
https://review.openstack.org/#/c/153203/3 added check
for novaclient, removed the logic for both
--image and --block-device are added.

But actually the following valid boot command failed
due to the change here, so this patch reverted original
one and add some descriptions to avoid further removal.

nova boot test-vm --flavor m1.medium --image centos-vm-32
--nic net-id=c3f40e33-d535-4217-916b-1450b8cd3987
--block-device id=26b7b917-2794-452a-95e5-2efb2ca6e32d,bus=sata,
source=volume,bootindex=1

Change-Id: Ia29e63c72b34d3038aa591c466425e65edf5755b
Partial-Bug: #1433609
2015-03-19 22:58:17 +08:00
melanie witt
e0f5072907 Ensure the use of volume endpoint in volumes apis
Currently, several of the volumes apis depend on callers to pass
service_type='volume' as a parameter when creating a client object,
to route correctly. The problem is, it makes it impossible for
callers to work with both the compute and volume endpoints at the
same time. They can either work with compute and have volumes.* calls
return 404, or they can work with volume and have servers.* images.*
flavors.* calls return 404.

The CLI sets service_type='volume' for client objects for the
following commands via a decorator:

volume-list
volume-show
volume-create
volume-delete
volume-snapshot-list
volume-snapshot-show
volume-snapshot-create
volume-snapshot-delete
volume-type-list
volume-type-create
volume-type-delete

With this change, the service_type 'volume' is set in the api,
so the decorators on the shell commands are no longer needed.

Closes-Bug: #1431154

Change-Id: I11b48ac14fa4c64d8aae528552ec5b363be384c5
2.23.0
2015-03-17 01:19:11 +00:00
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