Deploy fails when overriding the Nova release file

Bug #2070500 reported by Arnoud de Jonge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

I'm adding a release file for nova by setting /etc/kolla/config/nova/release. When I deploy, I get the error:

TASK [nova-cell : Copying 'release' file for nova_compute] *********************
skipping: [noud-controller1] => (item=/etc/kolla/config/nova/release)
skipping: [noud-controller2] => (item=/etc/kolla/config/nova/release)
skipping: [noud-controller3] => (item=/etc/kolla/config/nova/release)
fatal: [noud-compute1]: FAILED! => {"msg": "Failed to get information on remote file (/etc/kolla/nova-compute/release): Permission denied"}
fatal: [noud-compute2]: FAILED! => {"msg": "Failed to get information on remote file (/etc/kolla/nova-compute/release): Permission denied"}

When I check the code I see that for this task, the `become: true` line is not set. When I manually add the deploy is successful.

https://github.com/openstack/kolla-ansible/blob/9a45b3db514ac2e2c3b3cb054b975eab6d158fe3/ansible/roles/nova-cell/tasks/config.yml#L184

We are on OpenStack Yoga on Ubuntu 22.04. But the become is also missing in the master branch.

The workaround is to set a become in the Ansible inventory and run everything as root.

Regards,
Arnoud.

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.