Ask Your Question
0

Error on gnocchi start: "RequiredOptError: value required for option resource_id in group [statsd]"

asked 2017-10-25 12:11:42 -0500

michelgokan3 gravatar image

Hi,

whenever I try to start my gnocchi service service gnocchi-statsd restart, the /var/log/gnocchi-statsd.log filled with error below:

2017-10-25 19:05:29.155 10043 DEBUG gnocchi.service [-] ******************************************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2746
2017-10-25 19:05:29.155 10043 CRITICAL gnocchi [-] RequiredOptError: value required for option resource_id in group [statsd]
2017-10-25 19:05:29.155 10043 ERROR gnocchi Traceback (most recent call last):
2017-10-25 19:05:29.155 10043 ERROR gnocchi   File "/usr/bin/gnocchi-statsd", line 10, in <module>
2017-10-25 19:05:29.155 10043 ERROR gnocchi     sys.exit(statsd())
2017-10-25 19:05:29.155 10043 ERROR gnocchi   File "/usr/lib/python2.7/dist-packages/gnocchi/cli.py", line 83, in statsd
2017-10-25 19:05:29.155 10043 ERROR gnocchi     statsd_service.start()
2017-10-25 19:05:29.155 10043 ERROR gnocchi   File "/usr/lib/python2.7/dist-packages/gnocchi/statsd.py", line 169, in start
2017-10-25 19:05:29.155 10043 ERROR gnocchi     raise cfg.RequiredOptError("resource_id", cfg.OptGroup("statsd"))
2017-10-25 19:05:29.155 10043 ERROR gnocchi RequiredOptError: value required for option resource_id in group [statsd]
2017-10-25 19:05:29.155 10043 ERROR gnocchi
2017-10-25 19:05:31.322 10079 DEBUG gnocchi.service [-] ******************************************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo_config/cfg.py:2722

Any idea how to fix it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-26 02:40:40 -0500

michelgokan3 gravatar image

I needed to do this:

$ python -c 'import uuid; print uuid.uuid4()'

and add the generated code in gnocchi.conf:

...
[statsd]
resource_id = {the_code}
...
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-25 12:11:42 -0500

Seen: 185 times

Last updated: Oct 26 '17