OpenStack Telemetry (Ceilometer)

ceilometer failed to start as user other than root

Asked by lalit on 2012-11-29

Hi all,

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

Command:

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

Error:
Traceback (most recent call last):
  File "/usr/bin/ceilometer-collector", line 7, in <module>
    execfile(__file__)
  File "/opt/stack/ceilometer-0.1/bin/ceilometer-collector", line 30, in <module>
    prepare_service(sys.argv)
  File "/opt/stack/ceilometer-0.1/ceilometer/service.py", line 66, in prepare_service
    flags.parse_args(_sanitize_cmd_line(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

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

Language:
English Edit question
Status:
Answered
For:
Ceilometer Edit question
Assignee:
No assignee Edit question
Last query:
2012-11-29
Last reply:
2012-11-29
lalit (lkpatel123) said : #1

Following command runs fine

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

Doug Hellmann (doug-hellmann) said : #2

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.