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

FS API errors on missing volume #96

Open
zebulasampedro opened this issue Jun 27, 2017 · 0 comments
Open

FS API errors on missing volume #96

zebulasampedro opened this issue Jun 27, 2017 · 0 comments

Comments

@zebulasampedro
Copy link
Member

zebulasampedro commented Jun 27, 2017

When retrieving details for a missing volume, the FS API produces the following 500 error:

Traceback (most recent call last):
  File "/opt/sandstone-project/venv-sandstone/lib/python2.7/site-packages/tornado/web.py", line 1443, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/opt/sandstone-project/venv-sandstone/lib/python2.7/site-packages/sandstone/lib/decorators.py", line 21, in wrapper
    return method(self, *args, **kwargs)
  File "/opt/sandstone-project/venv-sandstone/lib/python2.7/site-packages/sandstone/lib/filesystem/handlers.py", line 72, in get
    res = self.fs.get_filesystem_details()
  File "/opt/sandstone-project/venv-sandstone/lib/python2.7/site-packages/sandstone/lib/filesystem/interfaces.py", line 42, in get_filesystem_details
    size, used, avail, used_pct = out.split()[-5:-1]
ValueError: need more than 0 values to unpack
ERROR:tornado.access:500 GET /user/vagrant/a/filesystem/ (127.0.0.1) 14.50ms

A dismissable warning should instead be rendered, indicating that the specified volume cannot be found.

@zebulasampedro zebulasampedro added this to the Summer Tutorials milestone Jun 27, 2017
@zebulasampedro zebulasampedro changed the title FS API errors on empty volume FS API errors on missing volume Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant