Question

I want to set the some variable in nova-api.

Which is the best way to set that? (in nova.conf or in other file?)

I can set in /etc/nova/nova.conf and get the value of that variable in the api. But is there any other way to set environment variable for the API? I want to access by os.environ in the script. (Is this the right way to access or not?)

As per my knowledge, for the wsgi we have to set in the apache's config file. But for nova I cant find the file :(.

Thanks in advance for the help.

Was it helpful?

Solution

Set the env variable from the init.d script. In the scrip /etc/init.d/openstack-nova-api one file is used /etc/sysconfig/$prog so we set the export variable in this file and got the reference later.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top