yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19884
[Bug 1365499] [NEW] Error on df execution
Public bug reported:
Some time may happen that the df executed by _get_capacity_info in
/usr/lib/python2.6/site-packages/glance/store/filesystem.py has a
multiple line output:
Filesystem 1B-blocks Used Available Use% Mounted on
xxxx:/storesimple-L02
1082256261120 209715200 1027071803392 1% /var/lib/glance/images1
In this situation i recive this stacktrace:
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 99, in upload_data_to_store
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils store)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 380, in store_add_to_backend
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 422, in add
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils datadir = self._find_best_datadir(image_size)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 384, in _find_best_datadir
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils free_space = self._get_capacity_info(datadir)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 361, in _get_capacity_info
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils total_available_space = int(df.split('\n')[1].split()[3])
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils IndexError: list index out of range
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils
To solve this i sugest to exexute a df with -P option
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1365499
Title:
Error on df execution
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Bug description:
Some time may happen that the df executed by _get_capacity_info in
/usr/lib/python2.6/site-packages/glance/store/filesystem.py has a
multiple line output:
Filesystem 1B-blocks Used Available Use% Mounted on
xxxx:/storesimple-L02
1082256261120 209715200 1027071803392 1% /var/lib/glance/images1
In this situation i recive this stacktrace:
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 99, in upload_data_to_store
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils store)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 380, in store_add_to_backend
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 422, in add
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils datadir = self._find_best_datadir(image_size)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 384, in _find_best_datadir
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils free_space = self._get_capacity_info(datadir)
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/filesystem.py", line 361, in _get_capacity_info
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils total_available_space = int(df.split('\n')[1].split()[3])
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils IndexError: list index out of range
2014-09-04 14:52:49.263 14267 TRACE glance.api.v1.upload_utils
To solve this i sugest to exexute a df with -P option
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1365499/+subscriptions
Follow ups
References