1152 Commits

Author SHA1 Message Date
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
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
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
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
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
Jenkins
4ab2b60850 Merge "Fixing host-action on V2" 2013-07-31 05:32:45 +00:00
Jenkins
7d1eeb6e43 Merge "Fix net-id metavar for interface-attach" 2013-07-31 00:55:41 +00:00
Jenkins
caf884dd3a Merge "Fix the help text process and the generated wrong help" 2013-07-31 00:47:14 +00:00
Jenkins
95e7d70266 Merge "Merge v1_1's base module into main base module" 2013-07-30 17:55:26 +00:00
Sumanth Nagadavalli
7fdb52ac74 Fixing host-action on V2
Changed host-actions to GET from POST for reboot, startup
and shutdown, as per nova-api reference documentation.

Change-Id: I863b75960b2e427fd9384a336727132ca3c130c6
Fixes: bug #1206425
2013-07-30 15:09:09 +05:30
liyingjun
8b5dcee15e Add user quota client API support
Implements blueprint user-quota-related-client-api

    This patch adds user arguments to the following subcommands:
        * quota-show
        * quota-update
        * quota-delete

Change-Id: I6556de366a758f7550e9b26357f231666caae419
2013-07-30 10:59:25 +08:00
David Wittman
ddda3f31d8 Fix net-id metavar for interface-attach
The metavariable for net-id was incorrectly set to `fixed_ip`.
This commit correctly sets the metavar to `net_id`.

Change-Id: I9bfb442af99848cf43d1f3b78967b785506ac54f
2013-07-29 17:24:32 -05:00
Christian Berendt
5fe9408d2e make findall in novaclient/base.py more efficient
Use /resources instead of /resources/detail to resolve
the resource ID by the name and load the details of the
resource in a separate step. This reduces the overhead
to resolve the resource ID and results in a better runtime
performance.

This patch does not solve the issue that the name resolving
takes place on the client side. For solving this issue new
Nova API methods are necessary.

fixes bug #1202179

Change-Id: Ib753b1d090cb74b2d137c68f6899dad4ae2ec1ca
2013-07-29 10:52:22 +02:00
Masayuki Igawa
83118620d2 Fix the help text process and the generated wrong help
The wrong help text of bash-completion is generated by the process of
choosing first line from the source code comment. We should get the all
help text from the source code comment, and use it.

So this commit removes this unnecessary process, and also fix the
README.rst for proper help text.

Fixes bug 1206005

Change-Id: Id4f5b6a7722197f09eb366ba8f3e643e1af91805
2013-07-29 15:38:05 +09:00
Jenkins
2a45c7570f Merge "Enable force_delete and restore instance via novaclient." 2013-07-27 14:57:30 +00:00
Xavier Queralt
0d061f0aeb Merge v1_1's base module into main base module
This class was forked from novaclient.base when adding v1.1 support and
and because v1.0 is no longer supported it can be merged again.

blueprint: improve-block-device-handling

Change-Id: I3113eff522a9dc280f48053001afa9e1a0cad3e3
2013-07-26 16:39:46 +02:00