Test on the xattr image cache fails because of noatime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Confirmed
|
Medium
|
Unassigned |
Bug Description
The check job gate-glance-
I added debug traces and it looks like the OpenStack infra uses a ext4 partition mounted with noatime, whereas the xattr image cache driver explicitly requires atime.
Debug trace: http://
glance.
Traceback (most recent call last):
File "glance/
self.
File "/home/
raise self.failureExc
AssertionError: True is not false : /tmp/tmp.
Content of the image cache:
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
Filesystem of the image cache (/tmp):
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 41147472 11923388 27320644 31% /
Filesystem mounted with:
/dev/xvda1 on / type ext4 (rw,noatime,
Notice "noatime" in the mount options of /dev/xvda1.
The test glance.
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
> whereas the xattr image cache driver explicitly requires atime.
See the first assumption of the driver: /github. com/openstack/ glance/ blob/c41216d3fc c74a978246ff768 0155077d04998c5 /glance/ image_cache/ drivers/ xattr.py# L23
https:/
Assumptions
===========
1. Cache data directory exists on a filesytem that updates atime on reads ('noatime' should NOT be set)