UnicodeDecodeError on openstack secret get
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
The secret being retrieved here is a Cinder volume encryption key.
$ openstack secret list
+------
| Secret href | Name | Created | Status | Content types | Algorithm | Bit length | Secret type | Mode | Expiration |
+------
| http://
| 6.148.204:9 | | 13:46:34+00 | | u'application | | | | | |
| 311/v1/secr | | :00 | | /octet- | | | | | |
| ets | | | | stream'} | | | | | |
| /9e9323df- | | | | | | | | | |
| ef5a-414a-9 | | | | | | | | | |
| 074-101eb78 | | | | | | | | | |
| 20ae3 | | | | | | | | | |
+------
$ openstack secret get http://
load --payload_
<...snip...>
GET call to key-manager for http://
req-16bc8bb8-
Response status 200
'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
self.
File "/usr/lib/
parsed_args)
File "/usr/lib/
stdout, x, int(parsed_
File "/usr/lib/
first_line = x.get_string(
File "/usr/lib/
formatted_rows = self._format_
File "/usr/lib/
return [self._
File "/usr/lib/
return [self._
File "/usr/lib/
return self._unicode(
File "/usr/lib/
value = unicode(value, self.encoding, "strict")
File "/usr/lib64/
return codecs.
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
clean_up GetSecret: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
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/
self.
File "/usr/lib/
parsed_args)
File "/usr/lib/
stdout, x, int(parsed_
File "/usr/lib/
first_line = x.get_string(
File "/usr/lib/
formatted_rows = self._format_
File "/usr/lib/
return [self._
File "/usr/lib/
return [self._
File "/usr/lib/
return self._unicode(
File "/usr/lib/
value = unicode(value, self.encoding, "strict")
File "/usr/lib64/
return codecs.
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
END return value: 1