When creating an env with a unicode name via client murano returns a 400 error, but the message is misleading
$ murano environment-create энвайронмент
{"code": 400, "explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "error": {"traceback": "Traceback (most recent call last):\n File \"/Users/teferi/murano/murano/murano/api/middleware/fault.py\", line 129, in process_request\n return req.get_response(self.application)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 634, in __call__\n return self._call_app(env, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 554, in _call_app\n return self._app(env, _fake_start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/Users/teferi/murano/murano/murano/common/wsgi.py\", line 191, in __call__\n response = req.get_response(self.application)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/paste/urlmap.py\", line 203, in __call__\n return app(environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 144, in __call__\n return resp(environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/routes/middleware.py\", line 136, in __call__\n response = self.app(environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 144, in __call__\n return resp(environ, start_response)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/Users/teferi/murano/murano/.tox/venv/lib/python2.7/site-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/Users/teferi/murano/murano/murano/common/wsgi.py\", line 370, in __call__\n action_result = self.execute_action(action, request, **action_args)\n File \"/Users/teferi/murano/murano/murano/common/wsgi.py\", line 384, in execute_action\n return self.dispatch(self.controller, action, request, **action_args)\n File \"/Users/teferi/murano/murano/murano/common/wsgi.py\", line 393, in dispatch\n return method(*args, **kwargs)\n File \"/Users/teferi/murano/murano/murano/api/v1/request_statistics.py\", line 56, in wrap\n result = func(*args, **kwargs)\n File \"/Users/teferi/murano/murano/murano/api/v1/environments.py\", line 57, in create\n LOG.debug('ENV NAME: {0}>'.format(body['name']))\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-11: ordinal not in range(128)\n", "message": "'ascii' codec can't encode characters in position 0-11: ordinal not in range(128)", "type": "UnicodeEncodeError"}, "title": "Bad Request"} (HTTP 400)
Fix proposed to branch: master /review. openstack. org/181703
Review: https:/