1909 Commits

Author SHA1 Message Date
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
Jenkins
a9223d314e Merge "Adds separate class for Hypervisor Stats" 2015-01-27 02:20:41 +00:00
OpenStack Proposal Bot
a3d09fe095 Updated from global requirements
Change-Id: Ic1f8bde779fe269c0671c0d637bdf9a2d8866557
2015-01-26 10:34:21 +00:00
Jenkins
0ae527665a Merge "Use TCP Keep-Alive on the socket level" 2015-01-23 23:05:53 +00:00
Ian Cordasco
7713fa0b18 Use TCP Keep-Alive on the socket level
There is not a way to pass the socket options to the HTTPAdapter upon
creation so we have to sub-class it and override the init_poolmanager
method.  This also requires at least python-requests 2.4.0 but that
has 2 severe bugs that were fixed in 2.4.1. If we try to fix this
without a hard lower limit, we will not be able to properly set these
options on the socket at creation time.

Change-Id: I06e0d2c67d3197607e5f23f623c8fca69e1b23d7
Closes-bug: 1323862
2015-01-23 15:38:39 -06:00
OpenStack Proposal Bot
fbad274c9d Updated from global requirements
Change-Id: I07688edd374ac6588fc6d120d612dea71cfa9b8c
2015-01-23 04:38:21 +00:00
Jenkins
664608200d Merge "In strings/comments change Ip/ip to IP" 2015-01-22 19:10:41 +00:00
Christian Berendt
c58bc211f7 In strings/comments change Ip/ip to IP
The correct short form of "Internet Protocol" is IP.

Change-Id: Ie5412fafbb093e0948970f030e443bed360c71ea
2015-01-17 08:53:26 +01:00
Pedro Navarro
9ee6d696e2 Improving the help of the lock command
The lock command allows you to block the actions
on the server for the non-admin users. Improving
the help so that api users understands better
what locking a server implies.

Change-Id: Ibccdd672587c4dc9570b86f0132a64204fe9b5c2
Closes-Bug: #1366279
2015-01-16 09:55:17 +01:00
Jenkins
0f7bf49388 Merge "Directly using base64 encoding for injected files" 2015-01-13 23:30:46 +00:00
Jenkins
141f2ab462 Merge "Move to hacking 0.10" 2015-01-13 17:07:05 +00:00
OpenStack Proposal Bot
1736700260 Updated from global requirements
Change-Id: I1ae9906842bc1b4f91de0cb3b047f2c57d751fd7
2015-01-13 00:15:51 +00:00
Joe Gordon
0eb2e72d38 Move to hacking 0.10
Release notes: http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html

Explicitly move everything to new style classes (H238).
http://python3porting.com/preparing.html#use-new-style-classes

Remove deleted hacking rules from tox.ini

Change-Id: If65b0060e6f64a456b4869ef4129ad15aef107fb
2015-01-12 09:40:49 +13:00
OpenStack Proposal Bot
71fe9cb82e Updated from global requirements
Change-Id: Icc68b5f77c03a693316ce9dd828733f81ac2f965
2015-01-09 18:35:52 +00:00
Matthew Gilliard
b5e36ced8f Adds separate class for Hypervisor Stats
Hypervisor stats was being called from the Hypervisors class, which means that
the statistics were being modeled as if they were a single Hypervisor. This
mostly worked, except that the stats didn't have an id field so a call to
__repr__() (implicitly called by print, or in the REPL) would throw an
AttributeError.

This patch creates a new class HypervisorStats which models a collection of
statistics about hypervisors. So you can now call:

  nc.hypervisor_stats.statistics()

The old call of

  nc.hypervisors.statistics()

is left for backward compatibility but just calls into the new method.

Change-Id: Ia31aacb95b1d517dab3ad38763d6448715bab68e
Closes-bug: 1370415
2015-01-09 08:45:17 +00:00
Liang Chen
f75ea86a2a Directly using base64 encoding for injected files
Binary files cannot be treated as utf-8 byte streams and converted
to plain. Change this back to just using base64 encoding as it was
before commit 8b264fc61d21fe4d0c7405914fb084f898956888.

Change-Id: I4ef6142676022b2e2f3178e7bfa24ed985fcae2c
Closes-Bug: #1408088
2015-01-07 15:27:53 -05:00
David Kranz
7bced6673c Document unexpected need for --all-tenants when using --tenant
This behavior was changed in v3 but that is now obsolete.

Change-Id: I5e1ce2ab3ac60dc637c4416cbe1be088230c07b6
Related-Bug: #1185290
2015-01-06 09:36:37 -05:00
Jenkins
0dcdfa4222 Merge "Display tenant id with nova list --all-tenants" 2015-01-06 06:04:22 +00:00
Jenkins
2494e0fc6f Merge "Pass kwargs through to the adapter" 2015-01-05 01:28:02 +00:00
Haiwei Xu
c8ac6883c3 Add 'Id' column to floating-ip-list
Currently nova floating-ip-list doesn't show the ip's id,
though the id is return from the server.
This patch adds the 'Id' column.

Change-Id: I8680fb6344bf8f6862a476cdb95c936a5fbab965
Closes-bug: #1404091
2014-12-19 11:49:33 +09:00
Jamie Lennox
003f1ed048 Pass kwargs through to the adapter
A major point of the adapter is that we should be able to add new
arguments to the adapter that are supported automatically by the clients
that support it. This means we have to pass all additional arguments
through to adapter.

Regardless of whether the arguments are passed to the adapter or to the
traditional client the kwargs are explicitly provided so we won't end up
with missing arguments.

Closes-Bug: #1403329
Change-Id: I7303b184875dc296ca855ad89496173c42070879
2014-12-19 11:15:32 +10:00
yamini sardana
5f154636c2 Display tenant id with nova list --all-tenants
For each server, nova list --all-tenants will now display
its corresponding tenant ID as well.

Change-Id: I586d6c5bbb15ebb5df25dc4fa849ac4d5af149e9
Closes-bug: #1403431
2014-12-18 16:13:49 +05:30
Jenkins
e422109eb3 Merge "novaclient sort parameters support" 2014-12-16 22:27:36 +00:00
Steven Kaufer
4b530bf9d6 novaclient sort parameters support
Adds sorting support to the 'nova list' command.

--sort <key>[:<direction>]

The --sort parameter is comma-separated and is used to specify
one or more sort keys and directions. The direction defaults to
'desc' for each sort key and the user can supply 'asc' to
override.

Partially implements: blueprint nova-pagination

Change-Id: I635e017c7f9ab61812333983bfecccd6fce8d394
2014-12-16 18:38:24 +00:00
Jenkins
26246e7474 Merge "pass id to ServerGroupsManager in ServerGroup.delete()" 2014-12-15 16:35:05 +00:00
Jenkins
5f2ad683ce Merge "Reject non existent mock assert calls" 2014-12-13 01:55:24 +00:00
Balazs Gibizer
ab2f1a742d Reject non existent mock assert calls
assert_called and assert_not_called are not asserting the state
of the mock object but considered as mocked calls so mock
will never raise exception but always executed successfully

This change patches the Mock class during unit test
to raise an exception if a function called on a mock object
that's name starts with 'assert' and does not one
of the supported Mock assert calls.

This change also fix the unit test to call only the supported
assert function on mock object.

Change-Id: I036587f355e42e362ac2b70fb6755cca81d30b75
2014-12-12 15:10:29 +01:00
Jenkins
d439dc039c Merge "Updated from global requirements" 2014-12-11 18:51:32 +00:00
Jenkins
e25bd57555 Merge "Avoid "ambiguous option" when only current/deprecated forms match" 2014-12-11 17:51:55 +00:00
OpenStack Proposal Bot
60d7baf2af Updated from global requirements
Change-Id: I7ef8410576abe82bb1b5a0dda983ad103c688509
2014-12-11 07:20:11 +00:00
melanie witt
85e15fe885 pass id to ServerGroupsManager in ServerGroup.delete()
ServerGroup object delete currently fails because the manager object
requires the server group id and is instead passed the server group
object itself (copy-paste error). This patch changes it to pass the
id.

Change-Id: Ic6a4a38157f52343fbb3e75a02d1f7c6bef28d99
Closes-Bug: #1400494
2014-12-10 20:41:16 +00:00
Jenkins
e13df65e35 Merge "Workflow documentation is now in infra-manual" 2014-12-05 16:44:31 +00:00
Jeremy Stanley
c4233cfd2a Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I75618aaf9e07324985a83ca74d35bcab59e186c1
2014-12-05 03:30:40 +00:00
OpenStack Proposal Bot
912506b3d5 Updated from global requirements
Change-Id: I31700b01e5b56221059b64ca66ec2e7d374d5c84
2014-12-04 21:34:17 +00:00
Andrey Kurilin
96a124fae6 Remove aliases for args and env in utils
To remove aliases for `arg` and `env` functions in novaclient.utils,
we should use `arg` and `env` directly from cliutils in novaclients modules.

This patch removes aliases in `novaclient.utils` and starts using
`args` and `env` from novaclient.openstack.common.cliutils directly.

Change-Id: I4585adae62bc66ad6bc9d19be10d4679bb3dc5a1
2014-12-04 17:22:12 +02:00
Andrey Kurilin
821643e126 Use arg and env from cliutils: v1_1/shell
To remove aliases for `arg` and `env` functions in novaclient.utils,
we should use `arg` and `env` directly from cliutils in novaclients modules.
This is the first stage: change usage in novaclient.v1_1.shell

Change-Id: I237f0473844de49db8a4b141a9a71603c9ac76a7
2014-12-04 17:21:32 +02:00
Andrey Kurilin
cc62efef41 Remove code related to V3
Since V3 API is not supported, code related to it should be removed.

Discussion in mailing:
http://lists.openstack.org/pipermail/openstack-dev/2014-December/052095.html

Change-Id: Iac5c5e6d81479cbeb8bf10cfcda1cc5617680de8
2014-12-03 14:11:39 +02:00
Eugeniya Kudryashova
1aa020989e Enable check for E128 rule
Fix E128 failures in novaclient/client and
novaclient/shell and enable check for E128

E128 continuation line under-indented for visual indent

Change-Id: Id3ac46ccdbb8a9f97e54b4643240d93b06fac6ea
2014-11-27 14:19:55 +02:00
Jenkins
ae0890ad69 Merge "Fix E128 failures in novaclient/tests" 2014-11-20 00:07:44 +00:00
Jenkins
e138750beb Merge "Fix E128 failures in novaclient/v3" 2014-11-20 00:07:37 +00:00
Jenkins
5ba18ec830 Merge "Fix E128 failures in novaclient/v1_1/" 2014-11-20 00:07:30 +00:00
Jenkins
42fc3c3313 Merge "Fix E128 failures in novaclient/v1_1/shell" 2014-11-20 00:07:14 +00:00
Eugeniya Kudryashova
2126b93e68 Fix E128 failures in novaclient/tests
E128 continuation line under-indented for visual indent

Change-Id: Ie751df84ad289e025bd8ccd4e294228bed803aa5
2014-11-18 17:21:30 +02:00
Eugeniya Kudryashova
545d60402f Fix E128 failures in novaclient/v3
E128 continuation line under-indented for visual indent

Change-Id: Id2b8bcc44e6835ac17d989928a4c54979637cd75
2014-11-18 17:21:30 +02:00
Eugeniya Kudryashova
75727c2d37 Fix E128 failures in novaclient/v1_1/
E128 continuation line under-indented for visual indent

Change-Id: I93660ef15df87993738c98f8bb1a88cc65f99870
2014-11-18 17:21:30 +02:00
Eugeniya Kudryashova
d06a8dbb93 Fix E128 failures in novaclient/v1_1/shell
E128 continuation line under-indented for visual indent

Change-Id: Ibc2e42e4d2070ae666ceef9598269fef576af46b
2014-11-18 17:21:30 +02:00
OpenStack Proposal Bot
bb0d0b5655 Updated from global requirements
Change-Id: I364ac4f5d90a2826523d629cc0bfe37ed1e8e17f
2014-11-18 11:37:01 +00:00
Jenkins
7120fe4dee Merge "Curl statements to include globoff for IPv6 URLs" 2014-11-18 06:05:08 +00:00
Jenkins
99a4439947 Merge "Support using the Keystone V3 API from the Nova CLI" 2014-11-18 01:52:42 +00:00
sridhargaddam
e91d469704 Curl statements to include globoff for IPv6 URLs
Novaclient displays curl statements for debugging/troubleshooting
purposes. For IPv6 URLs, curl requires --globoff to be passed in
the arguments. Since novaclient does not use curl directly, this
patch displays the curl commands with globoff option which works
for both IPv4 and IPv6 URLs.

Closes-Bug: #1228744
Change-Id: Ib7099e8e3bbc15f29bbaa1db37ef21e78a74e7bc
2014-11-14 14:27:03 +00:00