conf file with spaces before data cause error

Bug #1414437 reported by Roey Dekel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Raga lahari

Bug Description

Add a space before a conf line cause failure at restarting the service.
example via nova.conf:

rabbit_hosts=10.35.186.132:5672
                ==>
 rabbit_hosts=10.35.186.132:5672

cause:
[root@controller ~(keystone_admin)]# openstack-service restart
Job for openstack-nova-cert.service failed. See 'systemctl status openstack-nova-cert.service' and 'journalctl -xn' for details.
Job for openstack-nova-api.service failed. See 'systemctl status openstack-nova-api.service' and 'journalctl -xn' for details.
Job for openstack-nova-consoleauth.service failed. See 'systemctl status openstack-nova-consoleauth.service' and 'journalctl -xn' for details.
Job for openstack-nova-conductor.service failed. See 'systemctl status openstack-nova-conductor.service' and 'journalctl -xn' for details.
Job for openstack-nova-scheduler.service failed. See 'systemctl status openstack-nova-scheduler.service' and 'journalctl -xn' for details.

affects: hacking → nova
Changed in nova:
assignee: nobody → Raga lahari (raga-lahari)
Revision history for this message
Liyingjun (liyingjun) wrote :

error log:
Traceback (most recent call last):
  File "/usr/local/bin/nova-api", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/nova/nova/cmd/api.py", line 41, in main
    config.parse_args(sys.argv)
  File "/opt/stack/nova/nova/config.py", line 55, in parse_args
    default_config_files=default_config_files)
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1736, in __call__
    else sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2298, in _parse_cli_opts
    return self._parse_config_files()
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2313, in _parse_config_files
    ConfigParser._parse_file(config_file, namespace)
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1336, in _parse_file
    raise ConfigFileParseError(pe.filename, str(pe))
oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/nova/nova.conf: at /etc/nova/nova.conf:3, Unexpected continuation line:

Changed in nova:
status: New → Confirmed
Revision history for this message
Raga lahari (raga-lahari) wrote :

Hi, Adding space before a conf line is causing same error in all other components also(Tried with neutron.conf, glance.conf ). As of my understanding fix is required in oslo_config/iniparser.py file. This change will effect for all other components. Please suggest.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Working as designed. it's reporting that you have a problem with the ini file...no?

Changed in nova:
status: Confirmed → 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.