permissions on /etc/nova/*.conf are incorrect
Bug #1251748 reported by
Jeff Applewhite
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
devstack builds are failing with the stack user having no access to modify /etc/nova/*.conf files. Adding group and other read/write permissions seems to fix the issue when ./unstack.sh && ./stack.sh are run.
Changed in devstack: | |
status: | New → Confirmed |
To post a comment you must log in.
Here's the stack trace from ./stack.sh (stripped to just the Nova configure part):
Configuring Nova g-reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql, =~ ,mysql, ]] g-reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql, =~ ,n-api, ]] database_ mysql nova latin1 bin/nova- manage db sync g-reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql, =~ ,n-cell, ]] l\o\m\e\ t\e\r ]] reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql =~ baremetal ]] nova_cache_ dir nova_keys_ dir data/nova/ keys data/nova g-reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql, =~ ,neutron, ]] l\o\m\e\ t\e\r ]] reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql =~ q- ]] g-reg,key, n-api,n- crt,n-obj, n-cpu,n- net,n-cond, cinder, c-sch,c- api,c-vol, n-sch,n- novnc,n- xvnc,n- cauth,horizon, rabbit, tempest, mysql, =~ ,n-net, ]] nova_conf_ nova_network manager. FlatDHCPManager nova/nova. conf network_ manager network. manager. FlatDHCPManager devstack/ functions: line 734: /etc/nova/...
+ init_nova
+ is_service_enabled mysql postgresql
+ services='mysql postgresql'
+ for service in '${services}'
+ [[ ,g-api,
+ return 0
+ is_service_enabled n-api
+ services=n-api
+ for service in '${services}'
+ [[ ,g-api,
+ return 0
+ recreate_database nova latin1
+ local db=nova
+ local charset=latin1
+ recreate_
+ local db=nova
+ local charset=latin1
+ mysql -uroot -pnetapp123 -h127.0.0.1 -e 'DROP DATABASE IF EXISTS nova;'
+ mysql -uroot -pnetapp123 -h127.0.0.1 -e 'CREATE DATABASE nova CHARACTER SET latin1;'
+ /usr/local/
+ is_service_enabled n-cell
+ services=n-cell
+ for service in '${services}'
+ [[ ,g-api,
+ [[ n-cell == n-cell-* ]]
+ [[ n-cell == \n\o\v\a ]]
+ [[ n-cell == \c\i\n\d\e\r ]]
+ [[ n-cell == \c\e\i\
+ [[ n-cell == \g\l\a\n\c\e ]]
+ [[ n-cell == \n\e\u\t\r\o\n ]]
+ [[ n-cell == \t\r\o\v\e ]]
+ [[ n-cell == \s\w\i\f\t ]]
+ [[ n-cell == s-* ]]
+ return 1
+ is_baremetal
+ [[ g-api,g-
+ return 1
+ create_
+ sudo mkdir -p /var/cache/nova
+ sudo chown vagrant /var/cache/nova
+ rm -f '/var/cache/nova/*'
+ create_
+ sudo mkdir -p /opt/stack/
+ sudo chown -R vagrant /opt/stack/
+ is_service_enabled neutron
+ services=neutron
+ for service in '${services}'
+ [[ ,g-api,
+ [[ neutron == n-cell-* ]]
+ [[ neutron == \n\o\v\a ]]
+ [[ neutron == \c\i\n\d\e\r ]]
+ [[ neutron == \c\e\i\
+ [[ neutron == \g\l\a\n\c\e ]]
+ [[ neutron == \n\e\u\t\r\o\n ]]
+ [[ g-api,g-
+ [[ neutron == \t\r\o\v\e ]]
+ [[ neutron == \s\w\i\f\t ]]
+ [[ neutron == s-* ]]
+ return 1
+ is_service_enabled n-net
+ services=n-net
+ for service in '${services}'
+ [[ ,g-api,
+ return 0
+ create_
+ iniset /etc/nova/nova.conf DEFAULT network_manager nova.network.
+ local file=/etc/
+ local section=DEFAULT
+ local option=
+ local value=nova.
+ grep -q '^\[DEFAULT\]' /etc/nova/nova.conf
+ echo -e '\n[DEFAULT]'
/home/vagrant/