Can not upload image to glance
Bug #1519965 reported by
Hui Kang
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Critical
|
Michal Rostecki |
Bug Description
Hi,
uploading image to glance failed due to incorrect permission of /var/lib/glance of the glance-data
410 Gone: Error in store configuration. Adding images to store is disabled. (HTTP N/A)
Permission of /var/lib/glance of the glance-api container shows
drwxr-xr-x 2 root root 4096 Nov 25 20:57 glance
which should be "drwxr-xr-x 3 glance nobody 4096 Nov 6 15:35 glance"
The cause could be the glance-api bootstrap container changes the permission, but the volume is not from glance-data. So when the real glance-api container started and have "volume from", it has a wrong permission.
A temporary workaround is to remove the
volumes_from:
- glance_data in glance/
- Hui
description: | updated |
Changed in kolla: | |
assignee: | nobody → Paul Bourke (pauldbourke) |
description: | updated |
Changed in kolla: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → mitaka-1 |
Changed in kolla: | |
milestone: | mitaka-1 → mitaka-2 |
Changed in kolla: | |
assignee: | Paul Bourke (pauldbourke) → Hui Kang (huikang27) |
To post a comment you must log in.
I also met this problem with the latest change: https:/ /review. openstack. org/#/c/ 261843/
When glance-api container starts, it failed to create /var/lib/ glance/ images/ directory due to "no permission": ======= ======= = store.backend [-] Attempting to import store file _load_store /var/lib/ kolla/venv/ local/lib/ python2. packages/ glance_ store/backend. py:149 store._ drivers. filesystem [-] Directory to write image files does not exist (/var/lib/ glance/ images/ ) store._ drivers. filesystem [-] Unable to create datadir: /var/lib/ glance/ images/ glance/ images/ Disabling add method. store.capabilit ies [-] Store glance_ store._ drivers. filesystem. Store doesn't support updating dynamic capabilities' method of the store to implement updating logics if needed. update_capabiliti kolla/venv/ local/lib/ python2. 7/site- packages/ glance_ store/capabilit ies.py: 98
=======
2016-01-06 07:47:57.610 1 DEBUG glance_
7/site-
2016-01-06 07:47:57.611 1 INFO glance_
. Creating.
2016-01-06 07:47:57.612 1 ERROR glance_
2016-01-06 07:47:57.613 1 WARNING glance_store.driver [-] Failed to configure store correctly: Store filesystem could not be configured cor
rectly. Reason: Unable to create datadir: /var/lib/
2016-01-06 07:47:57.613 1 DEBUG glance_
storage capabilities. Please overwrite 'update_
es /var/lib/