Requirements containing non-ascii characters causes internal error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Confirmed
|
Medium
|
Pierre Riteau |
Bug Description
Updating a lease with requirements including non-ascii characters caused the following trace:
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.827 184217 ERROR oslo_messaging.
2018-11-12 13:38:25.834 184189 ERROR blazar.api.v1.utils [-] Request aborted with status code 500 and message 'Internal Server Error'
2018-11-12 13:38:25.858 184189 ERROR blazar.api.v1.utils [-] Traceback (most recent call last):
File "/usr/lib/
return func(**kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return api_utils.
File "/usr/lib/
return getattr(
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
return self.manager_
File "/usr/lib/
return self.call(
File "/usr/lib/
return self._client.
File "/usr/lib/
return self.prepare(
File "/usr/lib/
retry=
File "/usr/lib/
timeout=
File "/usr/lib/
retry=retry)
File "/usr/lib/
raise result
RemoteError: Remote error: UnicodeEncodeError 'ascii' codec can't encode character u'\u201c' in position 50: ordinal not in range(128)
Lease stayed in UPDATING status.
This happened on a customized code base: first verify if this is repeatable with upstream code.
Changed in blazar: | |
assignee: | nobody → Asmita Singh (asmita2018) |
This was incorrectly marked as duplicate of https:/ /bugs.launchpad .net/blazar/ +bug/1804156.
It is a different bug, not related to Nova hypervisor hostnames.
Step to reproduce:
blazar lease-update foo --reservation id=<uuid> ,resource_ properties= '[">=", "$Noël", "2"]'
ERROR: BlazarDBNotFound: A database error occurred