Reconfiguration fails as non-root user with ceph enabled due to missing 'become'

Bug #1795569 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard
Queens
Fix Released
Undecided
Unassigned
Rocky
Fix Released
Undecided
Unassigned

Bug Description

Kolla ansible is now supposed to support remote execution as a non-root user [1]. While trying to modify the CI tests to use a non-root user, it was found that configuration of ceph integration for glance fails with the following error:

TASK [glance : Copying over ceph.conf(s)] **************************************
fatal: [primary]: FAILED! => {
    "msg": "Failed to get information on remote file (/etc/kolla//glance-api/ceph.conf): Permission denied"

This is because some tasks in ceph.yml for glance are missing the 'become' attribute. This issue applies also to other similar ceph.yml and external_ceph.yml files for nova, cinder, gnocchi and manila.

I suspect this didn't fail on the initial deploy due to the recursive owership & permissions change at the end of these files.

[1] https://blueprints.launchpad.net/kolla-ansible/+spec/ansible-specific-task-become

Mark Goddard (mgoddard)
description: updated
Mark Goddard (mgoddard)
summary: - Reconfiguration fails with ceph enabled due to missing 'become'
+ Reconfiguration fails as non-root user with ceph enabled due to missing
+ 'become'
Revision history for this message
Mark Goddard (mgoddard) wrote :
Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
status: New → In Progress
importance: Undecided → Medium
Mark Goddard (mgoddard)
Changed in kolla-ansible:
status: In Progress → Fix Released
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.