Ask Your Question
0

openstack file location

asked 2013-11-28 01:33:11 -0500

sngirame gravatar image

I wanted to know whether openstack file path remains constant irrespective of the OS type on which it is installed.

e.g. /etc/nova

/etc/cinder

/etc/keystone etc.

Are there any options during deployment which can change the default location of openstack components/files?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-11-28 01:42:37 -0500

dheeru gravatar image

updated 2013-11-28 02:54:26 -0500

At least I don't see any option to do this with current install packages. May be custom install developed by some companies provide this. Any reason you would like to change ? It is a standard practice to keep them in /etc/ location

edit flag offensive delete link more
0

answered 2013-11-29 07:39:02 -0500

/etc/$service/$service.conf is the standard location which is assumed by puppet configuration modules etc.

You can change this by editing the init scripts as mentioned above, though this is not advised.

You can also augment the config by also specifying another --config-file in the init scripts, with later options overridding earlier ones, but please note that if you specify any --config-file options in an init script you must specify all that are used. I.E. the auto loading of the standard set of config files is disabled.

Alternatively you might be able to add your config in one of the other auto loaded locations? For a more detailed description of the standard set of configs loaded see the description of: https://github.com/redhat-openstack/oslo.config/commit/e67c68fe

edit flag offensive delete link more
0

answered 2013-11-28 03:03:11 -0500

updated 2013-11-28 06:38:05 -0500

/etc/ is the right place for Editable Text Configs :)

But you can edit path to config after installation in your init scripts. For example for nova-compute (on centOS):

/etc/init.d/openstack-nova-compute

.....
suffix=compute
prog=openstack-nova-$suffix
exec="/usr/bin/nova-$suffix"
config="/etc/nova/nova.conf" # <---- edit this line
pidfile="/var/run/nova/nova-$suffix.pid"
logfile="/var/log/nova/$suffix.log"
....

For ubunutu: (nova-api service example) /etc/init/nova-api.conf

description "Nova API server"
author "Soren Hansen <soren@linux2go.dk>"

start on runlevel [2345]
stop on runlevel [!2345]


chdir /var/run

pre-start script
        mkdir -p /var/run/nova
        chown nova:root /var/run/nova/

        mkdir -p /var/lock/nova
        chown nova:root /var/lock/nova/
end script

exec start-stop-daemon --start --chuid nova --exec /usr/bin/nova-api -- --config-file=/etc/nova/nova.conf # <----- Here it is
edit flag offensive delete link more

Comments

I did not see the /etc/init.d/openstack-nova-compute on ubuntu. Do you know where it is kept on ubuntu ?

dheeru gravatar imagedheeru ( 2013-11-28 06:04:37 -0500 )edit

Thanks laboshinl for your response.

sngirame gravatar imagesngirame ( 2013-11-29 03:56:30 -0500 )edit

cool. Shall I go ahead and close this request ? Please accept the ans from labshinl by clicking on the 'rigth click' button next to his ans. We will close this request.

dheeru gravatar imagedheeru ( 2013-11-29 04:11:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-28 01:33:11 -0500

Seen: 229 times

Last updated: Nov 29 '13