Pike: 16.0.9 fresh install builds a non-functional Glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Currently (as of 16.0.9), a default install that uses a the Glance file store with a local (i.e. non-NFS) /var/lib/
$ openstack image create --disk-format=qcow2 --container-
Error finding address for http://
The reason is that /var/lib/images in the Glance container is owned by root:root immediately post-install, rather than glance:glance. As far as i can tell, the reason for this is as follows:
https:/
- name: Stat the images directory
stat:
path: "{{ glance_
changed_when: false
register: images_stat
- name: Create glance images dir
file:
path: "{{ glance_
state: directory
owner: "{{ glance_
group: "{{ glance_
mode: "0755"
when:
- not images_
However, in a default (non-NFS) install, that directory isn't created from within the container, it is bind-mounted into it from /openstack/
Note that this will only affect fresh installs. Anything that was set up with Pike before that change was introduced will work just fine, because there the images directory does already exist, and it has the correct ownership.
I don't know what's the best way to fix this. Though I have no way to test with NFS, I am assuming that just removing the when check (or, for that matter, the preceding stat task altogether, images_
Changed in openstack-ansible: | |
status: | New → Fix Committed |
Changed in openstack-ansible: | |
status: | Fix Committed → Fix Released |
I should probably add: deploying with 16.0.8 should be fine too; the problematic change was cherry-picked into stable/pike 4 commits after the 16.0.8 release was cut:
$ git describe 8885125fb65da72 a2f4daf4a9a7426 70810ba8ed
16.0.8-4-g8885125
So, for anyone making a fresh install with 16.0.8 and then doing an in-place upgrade to 16.0.9, this problem should not affect them.