Purge config subdirectories

Registered by Alexej Ababilov on 2013-05-13

Currently, Anvil puts a lot of symlinks to /etc subdirectories, for example:

[stack@centos-2 glance]$ ls /etc/glance/ /etc/nova -l
/etc/glance/:
total 4
lrwxrwxrwx 1 root root 51 May 8 09:17 glance-api.conf -> /home/stack/openstack/glance/config/glance-api.conf
lrwxrwxrwx 1 root root 56 May 8 09:17 glance-api-paste.ini -> /home/stack/openstack/glance/config/glance-api-paste.ini
lrwxrwxrwx 1 root root 56 May 8 09:17 glance-registry.conf -> /home/stack/openstack/glance/config/glance-registry.conf
lrwxrwxrwx 1 root root 61 May 8 09:17 glance-registry-paste.ini -> /home/stack/openstack/glance/config/glance-registry-paste.ini
lrwxrwxrwx 1 root root 48 May 8 09:17 logging.conf -> /home/stack/openstack/glance/config/logging.conf
lrwxrwxrwx 1 root root 47 May 8 09:17 policy.json -> /home/stack/openstack/glance/config/policy.json

/etc/nova:
total 0
lrwxrwxrwx 1 root root 46 May 8 09:17 logging.conf -> /home/stack/openstack/nova/config/logging.conf
lrwxrwxrwx 1 root root 52 May 8 09:17 nova-api-paste.ini -> /home/stack/openstack/nova/config/nova-api-paste.ini
lrwxrwxrwx 1 root root 43 May 8 09:17 nova.conf -> /home/stack/openstack/nova/config/nova.conf
lrwxrwxrwx 1 root root 45 May 8 09:17 policy.json -> /home/stack/openstack/nova/config/policy.json

In the same time, Anvil launches services and gives them the full path to *.conf files:

[stack@centos-2 glance]$ ps aux|grep glance
root 2601 0.0 1.6 260292 33332 ? S May08 0:00 python /home/stack/openstack/glance/app/bin/glance-api --config-file /home/stack/openstack/glance/config/glance-api.conf

Some *.conf files contain absolute path to configuration files:

[stack@centos-2 glance]$ grep api-paste /home/stack/openstack/nova/config/nova.conf
api_paste_config = /home/stack/openstack/nova/config/nova-api-paste.ini

...while others not:
[stack@centos-2 glance]$ grep api-pa /home/stack/openstack/glance/config/*conf
/home/stack/openstack/glance/config/glance-api.conf:#config_file = glance-api-paste.ini

Solution: write all configs to /etc.

Blueprint information

Status:
Complete
Approver:
Joshua Harlow
Priority:
Medium
Drafter:
None
Direction:
Approved
Assignee:
Alexej Ababilov
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Alexej Ababilov on 2013-06-24
Completed by
Alexej Ababilov on 2013-06-24

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/purge-config,n,z

Addressed by: https://review.openstack.org/31821
    Build OpenStack packages from custom specs

Gerrit topic: https://review.openstack.org/#q,topic:bp/different-openstack-users,n,z

Gerrit topic: https://review.openstack.org/#q,topic:different-openstack-users,n,z

Addressed by: https://review.openstack.org/33389
    Build OpenStack packages from custom specs

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.