[Bug 1302044] [NEW] permissions on /var/lib/glance/image* are wrong

Chris Ricker chricker at cisco.com
Thu Apr 3 16:01:14 UTC 2014


Public bug reported:

/var/lib/glance/images and /var/lib/glance/image-cache need to be owned
glance:glance

The current packaging leaves them as this after the postinst:

ls -l /var/lib/glance/
total 52
-rw-r--r-- 1 glance glance 37888 Apr  3 14:30 glance.sqlite
drwxr-xr-x 5 root   root    4096 Apr  3 14:30 image-cache
drwxr-xr-x 2 root   root    4096 Apr  3 14:06 images

which causes the glance service to fail when using local filestores:

image-cache error:

2014-04-03 15:30:02.108 27128 ERROR glance.image_cache.drivers.sqlite [-] Failed to initialize the image cache database. Got error: unable to open database file
2014-04-03 15:30:02.109 27128 WARNING glance.image_cache [-] Image cache driver 'glance.image_cache.drivers.sqlite' failed to configure. Got error: 'Driver sqlite could not be configured correctly. Reason: Failed to initialize the image cache database. Got error: unable to open database file
2014-04-03 15:30:02.110 27128 ERROR glance.image_cache.drivers.sqlite [-] Failed to initialize the image cache database. Got error: unable to open database file
2014-04-03 15:30:02.110 27128 CRITICAL glance [-] BadDriverConfiguration: Driver sqlite could not be configured correctly. Reason: Failed to initialize the image cache database. Got error: unable to open database file

api error:

2014-04-03 15:52:07.522 32673 TRACE glance.store.filesystem None
2014-04-03 15:52:07.522 32673 TRACE glance.store.filesystem
2014-04-03 15:52:07.522 32673 WARNING glance.store.base [576d9069-7724-49cf-bb64-c48840a2a6f9 - - - - -] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Permission to write in /var/lib/glance/images/ denied Disabling add method.


See also Bug #1214947 -- which introduced this bug by removing recursive chown instead of just restricting the chown to applicable directories

** Affects: glance (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to glance in Ubuntu.
https://bugs.launchpad.net/bugs/1302044

Title:
  permissions on /var/lib/glance/image* are wrong

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glance/+bug/1302044/+subscriptions



More information about the Ubuntu-server-bugs mailing list