← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1071799] Re: commands crash when don't have permissions to read config

 

** Project changed: oslo-incubator => oslo.config

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1071799

Title:
  commands crash when don't have permissions to read config

Status in OpenStack Compute (Nova):
  Confirmed
Status in Oslo configuration management library:
  Triaged

Bug description:
  In summary running nova-all as a normal user that can't read /etc/nova/nova.conf
  will result in a crash. This config file is only readable by 'nova' and 'root' on
  Red Hat and Fedora systems for example.
  Instead a "permission denied" message should be printed/logged,
  rather than a crash and a confusing FileNotFound emitted.
  The same is probably true for cinder-all etc.

  Here is a a trace of what happens...

  [bob@lxbsp2932 ~]$ nova-all
  Traceback (most recent call last):
  File "/usr/bin/nova-all", line 54, in <module>
  flags.parse_args(sys.argv)
  File "/usr/lib/python2.6/site-packages/nova/flags.py", line 43, in parse_args
  default_config_files=default_config_files)
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/cfg.py", line 1026, in __call__
  self._parse_config_files()
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/cfg.py", line 1496, in _parse_config_files
  raise ConfigFilesNotFoundError(not_read_ok)
  nova.openstack.common.cfg.ConfigFilesNotFoundError: Failed to read some config files: /etc/nova/nova.conf
   
   
  Oct 26 16:49:27 lxbsp2932 abrt: detected unhandled Python exception in '/usr/bin/nova-all'
  Oct 26 16:49:27 lxbsp2932 abrtd: New client connected
  Oct 26 16:49:27 lxbsp2932 abrtd: Directory 'pyhook-2012-10-26-16:49:27-25525' creation detected
  Oct 26 16:49:27 lxbsp2932 abrt-server[25530]: Saved Python crash dump of pid 25525 to /var/spool/abrt/pyhook-2012-10-26-16:49:27-25525
  Oct 26 16:49:38 lxbsp2932 abrtd: Sending an email...
  Oct 26 16:49:38 lxbsp2932 abrtd: Email was sent to: root@localhost
  Oct 26 16:49:38 lxbsp2932 abrtd: New problem directory /var/spool/abrt/pyhook-2012-10-26-16:49:27-25525, processin

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1071799/+subscriptions