ceilometer failed to start as user other than root

Asked by lalit

Hi all,

When I tried to start ceilometer as user other than root it gives me following error


/bin/su - stack -s /bin/sh -c "/usr/bin/ceilometer-collector --config-file /etc/ceilometer/ceilometer-collector.conf"

Traceback (most recent call last):
  File "/usr/bin/ceilometer-collector", line 7, in <module>
  File "/opt/stack/ceilometer-0.1/bin/ceilometer-collector", line 30, in <module>
  File "/opt/stack/ceilometer-0.1/ceilometer/service.py", line 66, in prepare_service
  File "/usr/lib/python2.6/site-packages/nova/flags.py", line 43, in parse_args
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/cfg.py", line 1026, in __call__
  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

It means that it fails to load right config file and as fall back trying to read default nova config file.
But I clearly mentioned config-file and config file is readable

What could be the possible reasons?

Question information

English Edit question
Ceilometer Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
lalit (lkpatel123) said :

Following command runs fine

/bin/su - root -s /bin/sh -c "/usr/bin/ceilometer-collector --config-file /etc/ceilometer/ceilometer-collector.conf"

Revision history for this message
Doug Hellmann (doug-hellmann) said :

Because we're loading some nova code, we also need to be able to read the nova configuration file. We're working on removing that requirement, but for now you will need the ceilometer user to have permission to at least read that file.

Can you help with this problem?

Provide an answer of your own, or ask lalit for more information if necessary.

To post a message you must log in.