encoding error when doing console log show
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Testing Pike in Sid outputs the below result when doing "openstack --debug console log show 92847293-
POST call to compute for http://
'ascii' codec can't encode characters in position 22096-22098: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
return_code = self.take_
File "/usr/lib/
sys.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 22096-22098: ordinal not in range(128)
clean_up ShowConsoleLog: 'ascii' codec can't encode characters in position 22096-22098: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/
ret_val = super(OpenStack
File "/usr/lib/
result = self.run_
File "/usr/lib/
ret_value = super(OpenStack
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
return_code = self.take_
File "/usr/lib/
sys.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 22096-22098: ordinal not in range(128)
IMO, the issue is that we should be setting the console to output utf8 with something like this:
sys.stdout = codecs.
which is what I'm going to do as a patch proposal right away...
nova-console has the same type of problem which I reported separately:
https:/ /bugs.launchpad .net/python- novaclient/ +bug/1746534