Permission denied: '/usr/share/ansible/kolla_keystone_service.py'

Bug #1797089 reported by Grzegorz Bialas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Unassigned

Bug Description

When deployiing ceph I came across this error:

msg": "Can not parse the inner module output: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: IOError: [Errno 13] Permission denied: '/usr/share/ansible/kolla_keystone_service.py'\nloc
alhost | FAILED! => {\n \"failed\": true, \n \"msg\": \"Unexpected failure during module execution.\", \n \"stdout\": \"\"\n}\n"

Problem is that scripts in kolla-toolbox has permisions:

[DEV]root@ucsubu3000:/etc/kolla$ docker exec -it -u root kolla_toolbox bash

(kolla-toolbox)[root@ucsubu3000 /]# cd /usr/share/ansible/
(kolla-toolbox)[root@ucsubu3000 ansible]# ls -l
total 28
-rw------- 1 root root 13368 Jan 1 1970 find_disks.py
-rw------- 1 root root 3811 Jan 1 1970 kolla_keystone_service.py
-rw------- 1 root root 2634 Jan 1 1970 kolla_keystone_user.py
-rw------- 1 root root 2161 Jan 1 1970 kolla_sanity.py

Temporary solution was:

(kolla-toolbox)[root@ucsubu3000 ansible]# chmod 755 *
(kolla-toolbox)[root@ucsubu3000 ansible]# ls -l
total 28
-rwxr-xr-x 1 root root 13368 Jan 1 1970 find_disks.py
-rwxr-xr-x 1 root root 3811 Jan 1 1970 kolla_keystone_service.py
-rwxr-xr-x 1 root root 2634 Jan 1 1970 kolla_keystone_user.py
-rwxr-xr-x 1 root root 2161 Jan 1 1970 kolla_sanity.py

Version is Rocky, containers are build from source.

Changed in kolla:
status: New → 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.