Activity log for bug #933993

Date Who What changed Old value New value Message
2012-02-17 06:14:19 Chris Hoge bug added bug
2012-02-17 07:39:54 Chris Hoge summary glance add can fail for images larger than 2 GB on some Python installations (RHEL 6.1) glance add can fail for images larger than 2 GB on some Python installations (RHEL 6.2)
2012-02-17 07:40:31 Chris Hoge description Some Python installations, in particular for RHEL 6.1 Python 2.6, that are not 64 bit clean "glance add" will fail. For example, where testimage.img is larger than 2GB glance --debug add name="testimage" disk_format=raw is_public=true < testimage.img python: Objects/fileobject.c:2117: readahead_get_line_skip: Assertion `skip+len < 2147483647' failed. The underlying problem is a INT_MAX macro in the fileobject.c method 'readahead_get_line_skip' uses a 32 bit value instead of a 64 bit value. The Python file iterator eventually calls down to this method, which causes a crash for large file sizes. A workaround for RHEL users is to comment out the "elif self._iterable(body):" section for the image_iterator method in glance/common/client.py and fall back to the ImageBodyIterator. While not directly a bug with Glance, it does impact a subset of users not running Ubuntu systems. Some Python installations, in particular for RHEL 6.2 Python 2.6, are not 64 bit clean, and "glance add" will fail. For example, where testimage.img is larger than 2GB glance --debug add name="testimage" disk_format=raw is_public=true < testimage.img python: Objects/fileobject.c:2117: readahead_get_line_skip: Assertion `skip+len < 2147483647' failed. The underlying problem is an INT_MAX macro in the fileobject.c method 'readahead_get_line_skip' uses a 32 bit value instead of a 64 bit value. The Python file iterator eventually calls down to this method, which causes a crash for large file sizes. A workaround for RHEL users is to comment out the "elif self._iterable(body):" section for the image_iterator method in glance/common/client.py and fall back to the ImageBodyIterator. While not directly a bug with Glance, it does impact a subset of users not running Ubuntu systems.
2012-02-17 14:39:04 Jay Pipes glance: status New Confirmed
2012-02-17 14:39:09 Jay Pipes glance: importance Undecided Critical
2012-02-17 14:39:13 Jay Pipes glance: milestone essex-4
2012-02-17 14:39:20 Jay Pipes glance: assignee Eoghan Glynn (eglynn)
2012-02-17 15:54:55 Eoghan Glynn glance: status Confirmed In Progress
2012-02-21 18:03:16 Eoghan Glynn glance: status In Progress Fix Committed
2012-02-29 10:17:12 Thierry Carrez glance: status Fix Committed Fix Released
2012-04-05 07:53:49 Thierry Carrez glance: milestone essex-4 2012.1