sudo kolla-ansible genconfig copies wrong directory permission
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I executed kolla-ansible genconfig in AIO node in Ubuntu16.04, each directory permissions were different. For kolla-kubernetes deployment-
[1]https:/
[2]https:/
$ ll /etc/kolla
total 56
drwxrwxr-x 2 root root 4096 12月 12 21:42 ./
drwxr-xr-x 141 root root 12288 12月 12 21:41 ../
-rwxrwxr-x 1 root root 14857 12月 11 23:52 globals.yml*
-rwxrwxr-x 1 root root 24364 12月 11 23:51 passwords.yml*
$ sudo kolla-ansible genconfig
..(snip)..
$ ll /etc/kolla
total 192
drwxrwxr-x 36 root root 4096 12月 12 21:45 ./
drwxr-xr-x 141 root root 12288 12月 12 21:41 ../
drwxr-xr-x 2 root root 4096 12月 12 21:44 cinder-api/
drwxr-xr-x 2 root root 4096 12月 12 21:44 cinder-backup/
drwxr-xr-x 2 root root 4096 12月 12 21:44 cinder-scheduler/
drwxr-xr-x 2 root root 4096 12月 12 21:44 cinder-volume/
drwxrwx--- 3 root root 4096 12月 12 21:43 cron/
drwxrwx--- 6 root root 4096 12月 12 21:43 fluentd/
drwxrwx--- 2 root root 4096 12月 12 21:44 glance-api/
drwxrwx--- 2 root root 4096 12月 12 21:44 glance-registry/
-rwxrwxr-x 1 root root 14857 12月 11 23:52 globals.yml*
drwxrwx--- 2 root root 4096 12月 12 21:44 haproxy/
drwxrwx--- 2 root root 4096 12月 12 21:45 horizon/
drwxr-xr-x 2 root root 4096 12月 12 21:44 iscsid/
drwxrwx--- 2 root root 4096 12月 12 21:44 keepalived/
drwxrwx--- 3 root root 4096 12月 12 21:44 keystone/
drwxr-xr-x 2 root root 4096 12月 12 21:43 kolla-toolbox/
drwxrwx--- 2 root root 4096 12月 12 21:44 mariadb/
drwxrwx--- 2 root root 4096 12月 12 21:44 memcached/
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-dhcp-agent/
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-l3-agent/
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-server/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-api/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-compute/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-conductor/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-consoleauth/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-libvirt/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-novncproxy/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-scheduler/
drwxrwx--- 2 root root 4096 12月 12 21:44 nova-ssh/
drwxrwx--- 2 root root 4096 12月 12 21:44 openvswitch-
drwxrwx--- 2 root root 4096 12月 12 21:44 openvswitch-
-rwxrwxr-x 1 root root 24364 12月 11 23:51 passwords.yml*
drwxrwx--- 2 root root 4096 12月 12 21:44 placement-api/
drwxrwx--- 2 root root 4096 12月 12 21:44 rabbitmq/
drwxr-xr-x 2 root root 4096 12月 12 21:44 tgtd/
It should be '755' for all directories to run 'kollakube res create configmap ....' correctly. However, some directories are '750'.
description: | updated |
summary: |
- sudo kolla-ansible genconfig copies wrong file permission + sudo kolla-ansible genconfig copies wrong directory permission |
first of all, kolla-kubernetes is using its own "genconfig". it doesn't depend on kolla-ansible right now.
for kolla-ansible, 750 works. because this folder will be copied to destination path by root user.
The interesting part is different folder have different permission, which may be a potential issue.