Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test mode: fail to list vm #42

Closed
lvroyce opened this issue Jul 10, 2013 · 3 comments
Closed

test mode: fail to list vm #42

lvroyce opened this issue Jul 10, 2013 · 3 comments
Assignees
Labels
Milestone

Comments

@lvroyce
Copy link
Contributor

lvroyce commented Jul 10, 2013

start kimchi with test mode, when listing vms from design-ui,
it raises error and fail to list vms, error mesg list bellow

@lvroyce
Copy link
Contributor Author

lvroyce commented Jul 10, 2013

ERROR:cherrypy.error.41581200:[10/Jul/2013:10:49:09] HTTP Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
response.body = self.handler()
File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 188, in call
self.body = self.oldhandler(_args, *_kwargs)
File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 34, in call
return self.callable(_self.args, *_self.kwargs)
File "/home/lvroyce/kimchi/kimchi/src/burnet/controller.py", line 229, in index
return self.get()
File "/home/lvroyce/kimchi/kimchi/src/burnet/controller.py", line 219, in get
resources = self._get_resources()
File "/home/lvroyce/kimchi/kimchi/src/burnet/controller.py", line 201, in _get_resources
idents = get_list(*self.model_args)
File "/home/lvroyce/kimchi/kimchi/src/burnet/mockmodel.py", line 127, in vms_get_list
return sorted(self._mock_vms.keys(), key=unicode.lower)
TypeError: descriptor 'lower' requires a 'unicode' object but received a 'str'

127.0.0.1 - - [10/Jul/2013:10:49:09] "GET /vms HTTP/1.1" 500 1821 "http://localhost:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"
INFO:cherrypy.access.41581200:127.0.0.1 - - [10/Jul/2013:10:49:09] "GET /vms HTTP/1.1" 500 1821 "http://localhost:8000/" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"

@lvroyce
Copy link
Contributor Author

lvroyce commented Jul 10, 2013

I will look into this.

@ghost ghost assigned lvroyce Jul 10, 2013
@lvroyce
Copy link
Contributor Author

lvroyce commented Jul 19, 2013

this is already upstream, pls close

@aglitke aglitke closed this as completed Jul 29, 2013
gouzongmei pushed a commit to gouzongmei/t1 that referenced this issue Dec 11, 2014
mockmodel vm names have not converted in unicode, fix it.
Issue:kimchi-project/kimchi#42

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Reviewed-by: Aline Manera <alinefm@br.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants