1163 Commits

Author SHA1 Message Date
Jenkins
d770bb3aab Merge "Add interface for listing security groups of an instance" 2013-09-01 14:06:10 +00:00
Yufang Zhang
756a4333e6 Suport instance list pagination in novaclient, Part I
Bug 1209242

nova-api has supported pagination for long. A marker and limit
option could be passed to nova-api to get a slice of instances.
It makes sense to enable this feature in novaclient, so that
horizon could use it for pagination supporting. Modification to
shell.py would be submitted in a separate patch.

Further change will also pass 'sort_key' and 'sort_dir' to
nova-api, as long as nova supports this.

This is part of blueprint support-pagination-for-instance-list

Change-Id: Ieb5f2c1eb31b9f7e95b62b51ea7dc338e3970d04
2013-08-30 14:10:46 +08:00
Jenkins
72c0a13b0a Merge "Added 'nova migration-list' command" 2013-08-29 14:26:17 +00:00
Jenkins
9ce24f214b Merge "change 'Host' object's 'host' attribute to 'host_name'" 2013-08-29 12:04:52 +00:00
Jenkins
d6139aabda Merge "Added support for running the tests under PyPy with tox" 2013-08-29 12:03:49 +00:00
Jenkins
3851245ec4 Merge "Fix the help messages to specify image/flavor name" 2013-08-29 04:17:22 +00:00
Noorul Islam K M
12d5b9578b Add interface for listing security groups of an instance
This is already available in nova but not exposed via client.

* novaclient/v1_1/servers.py:
   New interface to list security groups of an instance.

* novaclient/v1_1/shell.py:
   New sub command list-secgroup.

* novaclient/tests/v1_1/fakes.py,
  novaclient/tests/v1_1/test_servers.py,
  novaclient/tests/v1_1/test_shell.py:
   Add corresponding tests.

Implements: blueprint servers-list-secgroup

Change-Id: I505bcffdbb15b84bfd73cae5ef5a8fb9c69bd7b9
2013-08-29 09:40:35 +05:30
Jenkins
c970dc3dd4 Merge "python3: Fix imports for py2/py3" 2013-08-29 01:17:12 +00:00
Jenkins
dc1b1cda06 Merge "Fix and gate on H501, no locals for string formatting" 2013-08-28 19:18:43 +00:00
Alex Gaynor
d9782457fc Added support for running the tests under PyPy with tox
This is a precursor to having them run under check and gate.

Change-Id: I105404d45cd4be93909ea5a272fc7e7c0c6d78cb
2013-08-28 09:35:28 -07:00
Jenkins
2e97eb7e53 Merge "Upgrade to Hacking 0.7" 2013-08-28 14:15:47 +00:00
Chuck Short
c450b39828 python3: Fix imports for py2/py3
Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.

However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so we do it via
py3kcompat.

Modules such as StringIO and CStringIO have been removed
completely so we use the io module.

Change-Id: I53adac11b634de2c710fc39def36bcec96366710
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-27 14:50:34 -04:00
Joe Gordon
fe5f07e891 Upgrade to Hacking 0.7
There was a bug in hacking 0.6 that broke H202, assertRaises Exception
too broad, so switch to Hacking 0.7 and fix the one H202 bug.

Change-Id: I0ec9532ffbb6b3c8dbd775e6da7bc879b0a6737a
2013-08-23 16:51:46 -04:00
Chuck Short
61a8063954 Sync py3kcompat from oslo
Python3 reorganized the standard library and moved several
functions to different modules and combined modules. Six
provides a consistent interface to the module through
six.moves

However urllib/urlparse is not covered by six.moves so
py3kcompat adds python2/python3 compatibility layer for
urllib/urlparse.

Change-Id: If1436d2260f1c8b6df8c514c8730e7bcf0e648b8
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-23 14:39:23 -04:00
Jenkins
27700f9b36 Merge "Allow name argument to flavor-access-add" 2013-08-23 01:33:06 +00:00
Jenkins
5e8957a2b7 Merge "Update mailmap" 2013-08-23 01:29:37 +00:00
Jenkins
dd55f7e91a Merge "Update mailmap" 2013-08-23 01:29:36 +00:00
Jenkins
de5a24683b Merge "Update oslo" 2013-08-23 01:29:35 +00:00
Jenkins
6d73abaf8a Merge "Add support for swap_volume" 2013-08-22 05:21:33 +00:00
hwbi
fa2867f1bd Update mailmap
Change-Id: I0f1f8b65db311fee9303dcf1a68c8057d9d778ab
2013-08-20 22:03:17 -07:00
guoqingzhang
d0619bc645 Update mailmap
Change-Id: Ic3050ae029b367f099346dc99e76e33bd47bdc33
2013-08-20 21:57:12 -07:00
Mahesh Panchaksharaiah
3c2a817efc Added 'nova migration-list' command
This command lets Admin's list migrations by applying filters

Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
2013-08-20 16:38:57 -05:00
Joe Gordon
e0e5c2dfe5 Fix and gate on H501, no locals for string formatting
Change-Id: I07e4a1a733639a343d4b3ee20927d50ba04bd7a3
2013-08-15 19:11:28 -04:00
Chuck Short
626c480559 Update oslo
Update gettext, striutils, timeutils and install_venv_common
from oslo.

Change-Id: Ibd9067e3e2be335ef75f0e4a5e4000d143030ab7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-15 09:17:08 -04:00
Yuuichi Fujioka
476e50f4d7 Allow name argument to flavor-access-add
Administrator cannot use the flavor name in arguments of
"nova flavor-access-add" and "nova flavor-access-remove"
in following conditions.

1. The flavor is non-public.
2. The falvor doesn't belong administrator's tenant.

This patch fixes this problem.

Change-Id: Ic5e3222d0ff62667e003a61e6a94e85833da5d11
Fixes: bug #1205298
2013-08-15 03:06:51 +09:00
Chuck Short
8dbd684a5c python3: Fix traceback while running tests
Fix:

TypeError: Unicode-objects must be encoded before hashing

while running tests. This is due to the fact in python3 hashlib.md5
works with bytes and we are passing unicode strings.

Change-Id: I27a57d6afb2412e11bc2802e4559d56c5b5592a9
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-08-13 18:57:51 +00:00
Jenkins
23ac42a43f Merge "Updated from global requirements" 2013-08-13 10:18:31 +00:00
Jenkins
54cac5f340 Merge "Remove old references" 2013-08-13 01:15:42 +00:00
Jenkins
9e67f280a2 Merge "Enable v3 api code" 2013-08-13 01:14:04 +00:00
Jenkins
b7d71f9e83 Merge "Begin adding v3 api support" 2013-08-13 01:14:03 +00:00
Jenkins
01635a2add Merge "FakeClient: fix the arguments of a string format." 2013-08-12 22:16:47 +00:00
Jenkins
545806cd15 Merge "Clean up inaccurate docstrings of server list() method" 2013-08-12 18:14:21 +00:00
Ken'ichi Ohmichi
d925f55d0c Fix the help messages to specify image/flavor name
User can specify flavor/image name as the arguments of "nova boot"
command instead of their ids, but the help messages does not explain
that. This fixes the help messages.

Fixes: bug #1211156

Change-Id: I47813c8ebbe5fc83d627f016e3751918b3ab11cb
2013-08-12 14:21:52 +09:00
Yufang Zhang
0331a01cfc Clean up inaccurate docstrings of server list() method
Clean up the inaccurate docstrings of server list() method and
refactor them to standerd format.

Change-Id: I4c17aba7ce5eb430ddd10305135e11e3ce5dc446
2013-08-10 23:10:29 +08:00
Jenkins
10f500de83 Merge "Fix typo and grammar in docstring only" 2013-08-09 19:18:41 +00:00
Ben Nemec
99d978409f Remove old references
The v3 code references v1_1 code because it's a straight-across
copy.  Remove those in preparation for adding the actual v3
versions.

bp v3-api

Change-Id: I359c6c5fc70dd91fa418802cc8048e186f5d09a4
2013-08-09 10:47:52 -05:00
Ben Nemec
211dfe6ea7 Enable v3 api code
Add mappings to enable v3 code

bp v3-api

Change-Id: I035e5b9d65c06ce5691573832bb9b6c4c705b121
2013-08-09 10:47:51 -05:00
Ben Nemec
c0e6d24819 Begin adding v3 api support
Create the v3 directory and populate it with some of the basic
files from v2 that will be needed.  These files are straight
copies so that v3-specific changes will be easier to see in
subsequent changes.

Extensions will be added individually in future changes.

bp v3-api

Change-Id: I9538c70ccc6fb001ce2fd43ccfd41870f247c67e
2013-08-09 10:47:50 -05:00
liuan
73a0e7298a change 'Host' object's 'host' attribute to 'host_name'
The function __repr__ of Host class which is located in hosts.py try to
access 'host' attribute, source code is "self.host",But in fact, Host object
don't has this attribute, it should be 'host_name'! We can find this attribute
from nova/api/openstack/compute/contrib/hosts.py file.

So I simply change 'self.host' to 'self.host_name'.

Change-Id: Ie76ba04da7592a596ab728fec981e9a1dbcc6a5f
Fixes: bug 1210043
2013-08-09 13:13:25 +08:00
Monty Taylor
ce08598a69 Updated from global requirements
Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6
2013-08-08 13:41:06 -03:00
Jenkins
9114cbfb8e Merge "Do not restrict flavor to only ID and integers" 2013-08-08 01:46:00 +00:00
Chmouel Boudjnah
f7d3948b23 Do not restrict flavor to only ID and integers
- Flavors with strings and not just ID/UUID strings are valid.
- Closes-Bug: 1209060

Change-Id: Idee389fce40f8982b263e1a4349a8565140b6584
2013-08-07 19:02:00 +02:00
Noorul Islam K M
aee0a29733 Fix typo and grammar in docstring only
Change-Id: I1e34ada679c56b996c6aa4652b43d1652f3c375f
2013-08-07 04:52:11 +05:30
Mark McClain
fe31607d1b remove requests version max
This change removes the max version specified for requests since the
requirements project no longer limits it to 1.2.2.

Change-Id: I96d14b4a84d975e8b08e9271db8d5e13d78019ae
2.14.1
2013-08-06 15:26:50 -04:00
Monty Taylor
ec5861644c Sync with global requirements
Change-Id: I8333e17d8edaa5853ac47f9d53de8c44d1c5d5cb
2.14.0
2013-08-05 17:50:29 -03:00
Avishay Traeger
930a10abf9 Add support for swap_volume
Add client support for swap_volume, which allows swapping a volume
currently attached to an instance with a different volume which is not
attached. The contents of the old volume will be copied onto the new
volume. This was added in nova commit
8f51b120b430c7c21399256f37e1d8f75d030484.

Change-Id: I98323d594617c1c435e403d9f3ddc4ff4fa74da6
2013-08-05 12:30:33 +03:00
Jenkins
0c0f093744 Merge "Check whether the security group id is integer" 2013-08-04 13:31:50 +00:00
Cyril Roelandt
1f85f57faf FakeClient: fix the arguments of a string format.
Fix the number of arguments in the string format in
FakeClient.assert_called_anytime().

Change-Id: I9d415d6d216a6e301254ba21b63109182d71e8bd
2013-08-02 15:34:37 +00:00
Brian Elliott
0d454089c9 Support programmatic use of disk config extension
Allow servers to be created, resized, and rebuilt with the disk_config
option:

http://api.openstack.org/api-ref.html#ext-os-disk-config

There is a separate extension that exists for disk config already, but
it only works via the novaclient CLI interface, not via programmatic use
of python-novaclient as a library.

assert changes in tests/v1_1/fakes allow for other data in rebuild
and resize requests.

Change-Id: I8051ffb8747cf5c67b0199d22fbbe80306b01499
2013-08-01 13:54:56 -05:00
Vincent Hou
852e2e5f31 Check whether the security group id is integer
Fixed Bug 1206847.

Change-Id: I2194d6538a5c5475b876ee026b5d625be2df076f
2013-08-01 09:59:29 -04:00