Directory /var/lib/glance not owned by "glance" user

Bug #1307346 reported by Thiago Martins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned
glance (Ubuntu)
New
Undecided
Unassigned

Bug Description

Gusy,

Glance packages from Ubuntu 14.04 have wrong permissions on /var/lib/glance, look:

---
root@controller:~# ll /var/lib/glance/
total 60
drwxr-xr-x 4 glance glance 4096 Apr 14 01:06 ./
drwxr-xr-x 40 root root 4096 Apr 14 04:47 ../
-rw-r--r-- 1 glance glance 37888 Apr 14 01:06 glance.sqlite
drwxr-xr-x 5 root root 4096 Apr 14 01:05 image-cache/
drwxr-xr-x 2 root root 4096 Apr 2 10:40 images/
---

This triggers an error:

---
2014-04-14 04:52:59.475 973 WARNING glance.store.base [4f6aa565-e15e-4201-bb24-417add066796 - - - - -] 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.
---

To fix it, I just did:

---
root@controller:~# chown glance: /var/lib/glance -R
---

Cheers!
Thiago

Revision history for this message
James Page (james-page) wrote :

Hi Thiago

I think this was fixed in:

glance (1:2014.1~rc2-0ubuntu1) trusty; urgency=medium

   [ Chuck Short ]
   * New upstream release candidate (LP: #1299055).
   * debian/patches/sql_conn.patch: Refreshed.
   * debian/glance-api.install: Install missing schema.json file.
     (LP: #1307518)

  [ Thomas Bechtold ]
  * debian/glance-common.postinst: Set correct owner/group for /var/lib/glance
    and subdirs only on local filesystems (LP: #1302044).

So this is a dupe of bug 1302044

Changed in glance:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.