nova/nova
Victor Stinner 0e5cefcf1d Fix Python 3 issues in nova.utils and nova.tests
* Fix sort(): dictionaries are no more comparable on Python 3, use a key
  function building a sorted list of the dictionary items
* Replace __builtin__ with six.moves.builtins
* get_hash_str() now accepts Unicode: Unicode is encoded to UTF-8
  before hashing the string. Mention also the hash method (MD5) in the
  docstring.
* LastBytesTestCase: use binary files instead of text files. Use also a
  context manager on the TemporaryFile to ensure that the temporary file
  is closed (even on error).
* Functions: use the __code__ attribute instead of func_code, and
  __closure__ instead of func_closure. These attributes are also
  available on Python 2.6.
* Replace unichr() with six.unichr()
* SafeTruncateTestCase(): write directly the chinese Unicode character
  instead of using safe_decode() (which is not reliable, it depends on
  the locale encoding!)
* sanitize_hostname(): On Python 3, decode the hostname from Latin1 to
  get back Unicode. Add also a comment explaining the purpose of the
  conversion to Latin1.
* last_bytes(): replace the hardcoded constant 22 with errno.EINVAL and
  add a comment explaining how the function works.
* tox.ini: add nova.tests.unit.test_utils to Python 3.4

Blueprint nova-python3
Change-Id: I96d9b0581ceaeccf9c35e0c9bada369e9d19fd15
2015-07-16 10:17:42 +02:00
..
CA Make tests use sha256 as openssl default digest algorithm 2015-02-09 10:06:04 -05:00
api Merge "Remove db layer hard-code permission checks for quota_class_create/update" 2015-07-15 05:22:29 +00:00
cells Merge "Cells: fix indentation for configuration variable declaration" 2015-07-15 21:08:02 +00:00
cert Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
cloudpipe Move policy enforcement into REST API layer for v2.1 cloudpipe 2015-02-26 21:33:47 +08:00
cmd Remove flavor migration from db_api and nova-manage 2015-07-06 06:58:33 -07:00
compute Merge "Use stevedore for loading monitor extensions" 2015-07-14 22:20:52 +00:00
conductor Merge "Make NoValidHost exceptions clearer" 2015-07-14 17:41:46 +00:00
console Fix noVNC console access for an IPv6 setup 2015-06-15 09:23:25 +00:00
consoleauth Update rpc version aliases for kilo 2015-04-21 13:57:56 +08:00
db Merge "Remove db layer hard-code permission checks for quota_class_create/update" 2015-07-15 05:22:29 +00:00
hacking Merge "virt: convert VFS API to use nova.virt.image.model" 2015-06-11 13:49:32 +00:00
image Merge "log meaningful error message on download exception" 2015-07-09 22:26:52 +00:00
ipv6 Replace usage of LazyPluggable by stevedore driver 2015-02-17 14:49:48 +00:00
keymgr Switch to uuidutils from oslo_utils library 2015-02-25 20:05:49 -05:00
locale Imported Translations from Transifex 2015-06-22 06:10:05 +00:00
network Ignore bridge already exists error when creating bridge 2015-07-06 17:56:52 +00:00
objects Merge "Introducing new forced_down field for a Service object" 2015-07-14 13:54:15 +00:00
objectstore Remove openstack/common/versionutils module 2015-06-15 20:40:16 +00:00
openstack Use oslo-config-generator instead of generate_sample.sh 2015-06-18 22:00:18 +00:00
pci Merge "Cleanups for pci stats in preparation for RT using ComputeNode" 2015-06-03 03:02:57 +00:00
rdp Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
scheduler Merge "Make NoValidHost exceptions clearer" 2015-07-14 17:41:46 +00:00
servicegroup fix "down" nova-compute service spuriously marked as "up" 2015-06-10 13:18:06 -06:00
spice Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
storage Fix multipath device discovery when UFN is enabled. 2015-04-02 13:23:49 +01:00
tests Fix Python 3 issues in nova.utils and nova.tests 2015-07-16 10:17:42 +02:00
virt Merge "libvirt: use correct translation format" 2015-07-14 22:23:19 +00:00
vnc Register the vnc config options under group 'vnc' 2015-06-22 13:39:00 -04:00
volume volume: log which encryptor class is being used 2015-06-09 11:50:13 -07:00
wsgi Helper scripts for running under Apache2 2015-05-08 09:59:58 -04:00
__init__.py
availability_zones.py Enable python34 tests for nova/tests/unit/objects/test*.py 2015-07-01 20:29:42 +00:00
baserpc.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
block_device.py snapshot: Add device_name to the snapshot bdms 2015-07-02 13:45:36 +01:00
config.py Remove references to suds 2015-06-15 16:32:23 +03:00
context.py Stop spamming logs when creating context 2015-03-13 17:59:47 -04:00
crypto.py Port crypto to Python 3 2015-07-10 10:42:32 +02:00
debugger.py Use oslo.log 2015-02-22 07:56:40 -05:00
exception.py Merge "Revert "Implement compare-and-swap for instance update"" 2015-07-15 01:18:08 +00:00
filters.py Remove use of builtin name 2015-05-28 16:23:49 -05:00
hooks.py Use oslo.log 2015-02-22 07:56:40 -05:00
i18n.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
loadables.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
manager.py Use oslo.log 2015-02-22 07:56:40 -05:00
netconf.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
notifications.py Handle InstanceNotFound when sending instance update notification 2015-06-11 12:26:00 -07:00
opts.py Use oslo-config-generator instead of generate_sample.sh 2015-06-18 22:00:18 +00:00
paths.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
policy.py Add useful debug logging when policy checks fail 2015-02-23 16:44:04 -05:00
quota.py Fix Python 3 issues in nova.db.sqlalchemy 2015-06-30 07:06:54 -07:00
rpc.py Merge "Ensure publisher_id is set correctly in notifications" 2015-02-10 04:50:54 +00:00
safe_utils.py Avoid indexing into an empty list in getcallargs 2015-04-10 13:10:16 -04:00
service.py Fix the little spelling mistake of the comment. 2015-07-08 04:11:28 +00:00
test.py Fix Python 3 issues in nova.utils and nova.tests 2015-07-16 10:17:42 +02:00
utils.py Fix Python 3 issues in nova.utils and nova.tests 2015-07-16 10:17:42 +02:00
version.py Fix version unit test on Python 3 2015-05-25 13:33:59 +02:00
weights.py Skip only one host weight calculation 2015-05-05 11:40:09 +08:00
wsgi.py Remove usage of WritableLogger from oslo_log 2015-06-18 18:47:42 +00:00