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>
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
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>
Update gettext, striutils, timeutils and install_venv_common
from oslo.
Change-Id: Ibd9067e3e2be335ef75f0e4a5e4000d143030ab7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
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
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>
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
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
This change removes the max version specified for requests since the
requirements project no longer limits it to 1.2.2.
Change-Id: I96d14b4a84d975e8b08e9271db8d5e13d78019ae
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
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
Changed host-actions to GET from POST for reboot, startup
and shutdown, as per nova-api reference documentation.
Change-Id: I863b75960b2e427fd9384a336727132ca3c130c6
Fixes: bug #1206425
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
The metavariable for net-id was incorrectly set to `fixed_ip`.
This commit correctly sets the metavar to `net_id`.
Change-Id: I9bfb442af99848cf43d1f3b78967b785506ac54f
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
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
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