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

Must deal with unset image names #84

Open
bhagemeier opened this issue Nov 10, 2014 · 1 comment
Open

Must deal with unset image names #84

bhagemeier opened this issue Nov 10, 2014 · 1 comment

Comments

@bhagemeier
Copy link
Contributor

When having an empty image name which can be created by running 'glance image-create' w/o further arguments the OCCI interface fails. This probably does not happen very often, but the code should be able to deal with it gracefully.

2014-11-10 09:12:35.271 INFO nova.occiapi.wsgi.server [req-4459bf8a-5142-4e0d-8314-71975959ed6e demo demo] Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 384, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 206, in call
return app(environ, start_response)
File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 663, in call
return self.app(env, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in call
return resp(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/openstackocci_icehouse-1.0-py2.7.egg/occi_os_api/wsgi.py", line 152, in call
self._refresh_os_mixins(extras)
File "/usr/local/lib/python2.7/dist-packages/openstackocci_icehouse-1.0-py2.7.egg/occi_os_api/wsgi.py", line 170, in refresh_os_mixins
os_lst = [occify_terms(item['name']) for item in images]
File "/usr/local/lib/python2.7/dist-packages/openstackocci_icehouse-1.0-py2.7.egg/occi_os_api/wsgi.py", line 273, in occify_terms
term = term_name.strip().replace(' ', '
').replace('.', '-').lower()
AttributeError: 'NoneType' object has no attribute 'strip'

@tmetsch
Copy link
Owner

tmetsch commented Nov 10, 2014

Sure we can add this feature - which branch do you need it fastest?

sandlbn added a commit to sandlbn/occi-os that referenced this issue Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants