sudo kolla-ansible genconfig copies wrong directory permission

Bug #1737739 reported by Yushiro FURUKAWA
6
This bug affects 1 person
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-guide[1], it tries to register configmap by using 'kollakube' command. However, it raises due to different directory permission[2]

[1]https://docs.openstack.org/kolla-kubernetes/latest/deployment-guide.html
[2]https://bugs.launchpad.net/kolla-kubernetes/+bug/1737508

$ 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-metadata-agent/
drwxrwx--- 2 root root 4096 12月 12 21:45 neutron-openvswitch-agent/
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-db-server/
drwxrwx--- 2 root root 4096 12月 12 21:44 openvswitch-vswitchd/
-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
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

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.

Revision history for this message
Yushiro FURUKAWA (y-furukawa-2) wrote :

Hi Jeffrey,

Thanks for your reply and teaching me. Why I filed into kolla-ansible is I referred deployment-guide for kolla-kubernetes. It described as follows:

Generate the default configuration:
    $ sudo kolla-ansible genconfig

So, I think the description of deployment-guide is wrong. Can I change this bug from kolla-ansible to kolla-kubernetes??

Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Hi, kolla-kubernetes deliverable was removed and this bug no longer affects to it

Changed in kolla-ansible:
status: New → Won't Fix
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.