[Yahoo-eng-team] [Bug 940430] Re: nova-api should check UTF8 char in parameters

2014-09-28 Thread Christopher Yeoh
This doesn't appear to be reproducible anymore and we now handle utf8
host names correctly


** Changed in: nova
   Status: Confirmed = Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/940430

Title:
  nova-api should check UTF8 char in parameters

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I got following error.

  root@localhost:~# nova --debug list
  connect: (keystone.thefreecloud.org, 5000)
  send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 
keystone.thefreecloud.org:5000\r\nContent-Length: 108\r\ncontent-type: 
application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: 
python-novaclient\r\n\r\n{auth: {tenantName: admin, 
passwordCredentials: {username: admin, password: X}}}'
  reply: 'HTTP/1.1 200 OK\r\n'
  header: Content-Type: application/json; charset=UTF-8
  header: Content-Length: 1148
  header: Date: Fri, 24 Feb 2012 16:13:00 GMT
  connect: (nova-api.thefreecloud.org, 8774)
  send: u'GET /v1.1/1/servers/detail HTTP/1.1\r\nHost: 
nova-api.thefreecloud.org:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 
XX g\r\naccept-encoding: gzip, deflate\r\nuser-agent: 
python-novaclient\r\n\r\n'
  reply: 'HTTP/1.1 500 Internal Server Error\r\n'
  header: Content-Length: 133
  header: Content-Type: application/json; charset=UTF-8
  header: Date: Fri, 24 Feb 2012 16:13:00 GMT
  Traceback (most recent call last):
File /usr/local/bin/nova, line 9, in module
  load_entry_point('python-novaclient==2012.1', 'console_scripts', 'nova')()
File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 338, in 
main
  OpenStackComputeShell().main(sys.argv[1:])
File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 289, in 
main
  args.func(self.cs, args)
File /usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py, line 480, 
in do_list
  utils.print_list(cs.servers.list(search_opts=search_opts), columns,
File /usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py, line 
247, in list
  return self._list(/servers%s%s % (detail, query_string), servers)
File /usr/lib/python2.7/dist-packages/novaclient/base.py, line 69, in 
_list
  resp, body = self.api.client.get(url)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 130, in 
get
  return self._cs_request(url, 'GET', **kwargs)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 118, in 
_cs_request
  **kwargs)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 101, in 
request
  raise exceptions.from_response(resp, body)
  novaclient.exceptions.ClientException: The server has either erred or is 
incapable of performing the requested operation. (HTTP 500)

  I got error

   byte 0xe7 in position 8: unexpected end of data
  (nova.api.openstack): TRACE: Traceback (most recent call last):
  (nova.api.openstack): TRACE:   File 
/opt/stack/nova/nova/api/openstack/__init__.py, line 64, in __call__
  (nova.api.openstack): TRACE: return req.get_response(self.application)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/request.py, line 1053, in get_response
  (nova.api.openstack): TRACE: application, catch_exc_info=False)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/request.py, line 1022, in call_application
  (nova.api.openstack): TRACE: app_iter = application(self.environ, 
start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py, line 212, 
in __call__
  (nova.api.openstack): TRACE: return self._forward_request(env, 
start_response, proxy_headers)
  (nova.api.openstack): TRACE:   File 
/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py, line 344, 
in _forward_request
  (nova.api.openstack): TRACE: return self.app(env, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/routes/middleware.py, line 131, in __call__
  (nova.api.openstack): TRACE: response = self.app(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in 

[Yahoo-eng-team] [Bug 940430] Re: nova-api should check UTF8 char in parameters

2014-06-06 Thread Joe Gordon
** Changed in: nova
   Status: In Progress = Invalid

** Changed in: nova
   Status: Invalid = Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/940430

Title:
  nova-api should check UTF8 char in parameters

Status in OpenStack Compute (Nova):
  Confirmed

Bug description:
  I got following error.

  root@localhost:~# nova --debug list
  connect: (keystone.thefreecloud.org, 5000)
  send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 
keystone.thefreecloud.org:5000\r\nContent-Length: 108\r\ncontent-type: 
application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: 
python-novaclient\r\n\r\n{auth: {tenantName: admin, 
passwordCredentials: {username: admin, password: X}}}'
  reply: 'HTTP/1.1 200 OK\r\n'
  header: Content-Type: application/json; charset=UTF-8
  header: Content-Length: 1148
  header: Date: Fri, 24 Feb 2012 16:13:00 GMT
  connect: (nova-api.thefreecloud.org, 8774)
  send: u'GET /v1.1/1/servers/detail HTTP/1.1\r\nHost: 
nova-api.thefreecloud.org:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 
XX g\r\naccept-encoding: gzip, deflate\r\nuser-agent: 
python-novaclient\r\n\r\n'
  reply: 'HTTP/1.1 500 Internal Server Error\r\n'
  header: Content-Length: 133
  header: Content-Type: application/json; charset=UTF-8
  header: Date: Fri, 24 Feb 2012 16:13:00 GMT
  Traceback (most recent call last):
File /usr/local/bin/nova, line 9, in module
  load_entry_point('python-novaclient==2012.1', 'console_scripts', 'nova')()
File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 338, in 
main
  OpenStackComputeShell().main(sys.argv[1:])
File /usr/lib/python2.7/dist-packages/novaclient/shell.py, line 289, in 
main
  args.func(self.cs, args)
File /usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py, line 480, 
in do_list
  utils.print_list(cs.servers.list(search_opts=search_opts), columns,
File /usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py, line 
247, in list
  return self._list(/servers%s%s % (detail, query_string), servers)
File /usr/lib/python2.7/dist-packages/novaclient/base.py, line 69, in 
_list
  resp, body = self.api.client.get(url)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 130, in 
get
  return self._cs_request(url, 'GET', **kwargs)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 118, in 
_cs_request
  **kwargs)
File /usr/lib/python2.7/dist-packages/novaclient/client.py, line 101, in 
request
  raise exceptions.from_response(resp, body)
  novaclient.exceptions.ClientException: The server has either erred or is 
incapable of performing the requested operation. (HTTP 500)

  I got error

   byte 0xe7 in position 8: unexpected end of data
  (nova.api.openstack): TRACE: Traceback (most recent call last):
  (nova.api.openstack): TRACE:   File 
/opt/stack/nova/nova/api/openstack/__init__.py, line 64, in __call__
  (nova.api.openstack): TRACE: return req.get_response(self.application)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/request.py, line 1053, in get_response
  (nova.api.openstack): TRACE: application, catch_exc_info=False)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/request.py, line 1022, in call_application
  (nova.api.openstack): TRACE: app_iter = application(self.environ, 
start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py, line 212, 
in __call__
  (nova.api.openstack): TRACE: return self._forward_request(env, 
start_response, proxy_headers)
  (nova.api.openstack): TRACE:   File 
/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py, line 344, 
in _forward_request
  (nova.api.openstack): TRACE: return self.app(env, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/routes/middleware.py, line 131, in __call__
  (nova.api.openstack): TRACE: response = self.app(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: return resp(environ, start_response)
  (nova.api.openstack): TRACE:   File 
/usr/lib/pymodules/python2.7/webob/dec.py, line 159, in __call__
  (nova.api.openstack): TRACE: