yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #40045
[Bug 1505356] Re: Can't upload images in Python 3.4
You can close this bug as it's not related to py34 (99% sure).
The invalid literal and the decoding errors usually happen during
hickups in the connection while trying to upload data.
Here's the conversation I had with Hemanth who sees them a lot in his
cloud.
---
10:44:48 nikhil
rosmaita: hemanthm: stevemar_ pointed out the error we observe in the upload process -- ValueError: invalid literal for int() with base 16: '' . http://logs.openstack.org/33/188033/7/check/gate-heat-dsvm-functional-orig-mysql/9eaf0e2/logs/screen-g-api.txt.gz?level=ERROR . I remember it to be an issue with corruption of local data. Can any of you confirm? (The error happens at the wsgi level that's being used by swift store.)
10:45:47 hemanthm
nikhil: from what I've seen it's dom0 timing out
10:46:13 hemanthm
not saying there can't be other reaons for it
10:46:19 nikhil
hemanthm: in this case, it's doing a straight upload from data local node
10:46:40 nikhil
hemanthm: so, guess it's the local node getting intermittent hickups?
10:46:59 hemanthm
nikhil: possible
10:47:33 hemanthm
essentially, from a glance perspective the upload hasn't finished yet and it tries to read data from the input stream
10:48:17 hemanthm
and when it can't read further data, it throws that and barfs
---
The error is being raised when eventlet.wsgi ((under glance_store's
swift store drivers' (py-swiftclient's) import modules)) tried to decode
the stream being sent and find inconsistency in the data stream.
I looked at some of the links shared on IRC and could not find evidence
of this being related to py34. Though, if this happens more often and
people are not able to get their patches in, I am definitely willing to
take a much more closer look.
** Changed in: glance
Status: New => Opinion
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1505356
Title:
Can't upload images in Python 3.4
Status in Glance:
Opinion
Status in python-openstackclient:
New
Bug description:
Trying to upload images via the OSC fails with: 'ascii' codec can't
decode byte 0xea in position 0: ordinal not in range(128)
2015-10-09 16:37:17.960 | ++ openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-kernel --public --container-format aki --disk-format aki
2015-10-09 16:37:17.960 | ++ grep ' id '
2015-10-09 16:37:17.960 | ++ get_field 2
2015-10-09 16:37:17.961 | ++ local data field
2015-10-09 16:37:17.961 | ++ read data
2015-10-09 16:37:20.712 | 'ascii' codec can't decode byte 0xea in position 0: ordinal not in range(128)
2015-10-09 16:37:20.848 | + kernel_id=
2015-10-09 16:37:20.848 | + '[' -n /opt/stack/new/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-initrd ']'
2015-10-09 16:37:20.849 | ++ openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
2015-10-09 16:37:20.850 | ++ grep ' id '
2015-10-09 16:37:20.850 | ++ get_field 2
2015-10-09 16:37:20.851 | ++ local data field
2015-10-09 16:37:20.851 | ++ read data
2015-10-09 16:37:22.459 | 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)
2015-10-09 16:37:22.555 | + ramdisk_id=
2015-10-09 16:37:22.555 | + openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec --public --container-format ami --disk-format ami
2015-10-09 16:37:24.055 | 'ascii' codec can't decode byte 0xcc in position 1032: ordinal not in range(128)
http://logs.openstack.org/33/188033/7/check/gate-heat-dsvm-functional-orig-mysql/9eaf0e2/logs/devstacklog.txt.gz#_2015-10-09_16_37_17_960 > FWIW, the gate job installs the python 3 version of all the clients when building devstack.
Also, noticed some failures in glance trying to upload an image:
http://logs.openstack.org/33/188033/7/check/gate-heat-dsvm-functional-
orig-mysql/9eaf0e2/logs/screen-g-api.txt.gz?level=ERROR
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1505356/+subscriptions
References