nova/nova
Qin Zhao 1e4088f46a Truncate encoded instance message to 255 or fewer
In nova/compute/utils.py function exception_to_dict truncates unicode
message to 255. However, in non-English locales, instance message may
be longer than 255 after encoding the unicode message to byte message.
Need to truncate the encoded byte message to 255 or fewer, in order to
ensure db insert operation succeed.

Closes-Bug: 1389102
(cherry picked from commit 4e95505843)

Conflicts:
	nova/tests/unit/compute/test_compute_utils.py

Change-Id: I62fa2830b22e367eb9486d09d3c8818a18ebd20d
2015-01-20 16:49:42 +00:00
..
CA
api Make ec2 auth support v4 signature format 2015-01-12 09:51:13 -08:00
cells Update rpc version aliases for juno 2014-10-08 11:47:01 +00:00
cert Update rpc version aliases for juno 2014-10-08 11:47:01 +00:00
cloudpipe Use oslo.i18n 2014-07-18 14:28:09 -04:00
cmd cmd: update the default behavior of serial console 2014-09-29 10:24:57 -04:00
compute Truncate encoded instance message to 255 or fewer 2015-01-20 16:49:42 +00:00
conductor Merge "Fix live migration api stuck when migrate to old nova node" into stable/juno 2014-12-11 01:57:33 +00:00
console Update rpc version aliases for juno 2014-10-08 11:47:01 +00:00
consoleauth Update rpc version aliases for juno 2014-10-08 11:47:01 +00:00
db Add @_retry_on_deadlock to _instance_update() 2014-10-21 17:18:47 -04:00
hacking mock.assert_called_once() is not a valid method 2014-09-16 16:38:49 -04:00
image Merge "Pass certificate, key and cacert to glanceclient" 2014-09-17 20:08:58 +00:00
ipv6 Use oslo.i18n 2014-07-18 14:28:09 -04:00
keymgr docs - Fix errors,warnings from document generation 2014-08-08 22:07:31 +00:00
locale Updated translations 2014-10-09 12:22:36 +02:00
network Return floating_ip['fixed_ip']['instance_uuid'] from neutronv2 API 2015-01-06 14:34:18 -08:00
objects Make Instance.save() update numa_topology 2014-11-27 18:20:25 +01:00
objectstore
openstack Sync strutils from oslo-incubator for mask_password fix 2014-10-23 14:53:06 -07:00
pci Mitigating performance impact with getting pci requests from DB 2014-09-18 12:41:24 -04:00
rdp
scheduler Merge "Instances with NUMA will be packed onto hosts" into stable/juno 2014-12-04 14:02:47 +00:00
servicegroup Merge "Fix service groups with zookeeper" 2014-09-12 05:26:22 +00:00
spice
storage Fix live-migration failure in FC multipath case 2014-08-09 00:02:06 +08:00
tests Truncate encoded instance message to 255 or fewer 2015-01-20 16:49:42 +00:00
virt Merge "Fix disconnecting necessary iSCSI sessions issue" into stable/juno 2015-01-19 10:37:09 +00:00
vnc Use oslo.i18n 2014-07-18 14:28:09 -04:00
volume Retry on closing of luks encrypted volume in case device is busy 2014-09-26 07:31:49 -07:00
__init__.py
availability_zones.py object-ify availability_zones 2014-07-09 17:52:06 +00:00
baserpc.py
block_device.py Allow empty volumes to be created 2014-08-08 19:30:17 -04:00
config.py Move to oslo.db 2014-09-05 14:18:36 +02:00
context.py Code change for nova support cinder client v2 2014-08-05 22:57:07 -07:00
crypto.py Fix broken cert revocation 2014-10-09 08:59:06 +02:00
debugger.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
exception.py VMware: Remove tests for None in fake._db_content['files'] 2014-09-29 14:43:59 +01:00
filters.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
hooks.py docs - Fix errors,warnings from document generation 2014-08-08 22:07:31 +00:00
i18n.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
loadables.py
manager.py
netconf.py
notifications.py Be less confusing about notification states 2014-09-22 11:20:58 -04:00
paths.py
policy.py
quota.py Merge "Fix NoopQuotasDriver.get_settable_quotas()" 2014-09-25 06:05:46 +00:00
rpc.py
safe_utils.py Fix and Gate on E265 2014-07-24 08:11:00 -04:00
service.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
test.py only emit deprecation warnings once 2015-01-15 07:37:32 -05:00
utils.py Remove use of str on exceptions 2014-08-27 13:55:34 +01:00
version.py Use oslo.i18n 2014-07-18 14:28:09 -04:00
weights.py
wsgi.py Remove usage of self.__dict__ for message var replacement 2014-09-25 07:40:27 -07:00