there is no config file after setup

Bug #1580990 reported by yaoyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
High
Julien Danjou
2.1
Fix Committed
High
Julien Danjou

Bug Description

I have installed Gnocchi step by step follow the document:http://gnocchi.xyz/install.html.
bug I find that there is no config file in this path "/etc/gnocchi"

So I run the next command:
 oslo-config-generator --config-file=/etc/gnocchi/gnocchi-config-generator.conf --output-file=/etc/gnocchi/gnocchi.conf

,but failed again.
the Output is:
tecs@tecs-OpenStack-Nova:~/devstack$ sudo oslo-config-generator --config-file=/etc/gnocchi/gnocchi-config-generator.conf --output-file=/etc/gnocchi/gnocchi.conf
Traceback (most recent call last):
  File "/usr/local/bin/oslo-config-generator", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/generator.py", line 418, in main
    conf(args, version=version)
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2164, in __call__
    raise ConfigFilesNotFoundError(self._namespace._files_not_found)
oslo_config.cfg.ConfigFilesNotFoundError: Failed to find some config files: /etc/gnocchi/gnocchi-config-generator.conf

Revision history for this message
yaoyuan (yaoyuan) wrote :
Download full text (9.5 KiB)

It seems that "pip install gnocchi" have not install "gnocchi-config-generator.conf"

tecs@tecs-OpenStack-Nova:/home/yaoyuan/01_Svn$ pip show --file gnocchi
---
Metadata-Version: 2.0
Name: gnocchi
Version: 2.1.0
Summary: Metric as a Service
Home-page: UNKNOWN
Author: OpenStack
Author-email: <email address hidden>
Installer: pip
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires: pecan, oslo.utils, voluptuous, oslo.serialization, werkzeug, futures, oslo.config, trollius, PasteDeploy, retrying, stevedore, WebOb, prettytable, Paste, oslo.middleware, oslo.policy, requests, pbr, numpy, oslo.log, pandas, pytimeparse, six
Classifiers:
  Environment :: OpenStack
  Intended Audience :: Information Technology
  Intended Audience :: System Administrators
  License :: OSI Approved :: Apache Software License
  Operating System :: POSIX :: Linux
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3.4
  Topic :: System :: Monitoring
Files:
  ../../../bin/carbonara-dump
  ../../../bin/gnocchi-api
  ../../../bin/gnocchi-metricd
  ../../../bin/gnocchi-statsd
  ../../../bin/gnocchi-upgrade
  ../../../etc/gnocchi/api-paste.ini
  ../../../etc/gnocchi/policy.json
  gnocchi-2.1.0.dist-info/DESCRIPTION.rst
  gnocchi-2.1.0.dist-info/INSTALLER
  gnocchi-2.1.0.dist-info/METADATA
  gnocchi-2.1.0.dist-info/RECORD
  gnocchi-2.1.0.dist-info/WHEEL
  gnocchi-2.1.0.dist-info/entry_points.txt
  gnocchi-2.1.0.dist-info/metadata.json
  gnocchi-2.1.0.dist-info/pbr.json
  gnocchi-2.1.0.dist-info/top_level.txt
  gnocchi/__init__.py
  gnocchi/__init__.pyc
  gnocchi/aggregates/__init__.py
  gnocchi/aggregates/__init__.pyc
  gnocchi/aggregates/moving_stats.py
  gnocchi/aggregates/moving_stats.pyc
  gnocchi/archive_policy.py
  gnocchi/archive_policy.pyc
  gnocchi/carbonara.py
  gnocchi/carbonara.pyc
  gnocchi/cli.py
  gnocchi/cli.pyc
  gnocchi/exceptions.py
  gnocchi/exceptions.pyc
  gnocchi/genconfig.py
  gnocchi/genconfig.pyc
  gnocchi/gendoc.py
  gnocchi/gendoc.pyc
  gnocchi/indexer/__init__.py
  gnocchi/indexer/__init__.pyc
  gnocchi/indexer/alembic/alembic.ini
  gnocchi/indexer/alembic/env.py
  gnocchi/indexer/alembic/env.pyc
  gnocchi/indexer/alembic/script.py.mako
  gnocchi/indexer/alembic/versions/0735ed97e5b3_add_tablename_to_resource_type.py
  gnocchi/indexer/alembic/versions/0735ed97e5b3_add_tablename_to_resource_type.pyc
  gnocchi/indexer/alembic/versions/1c2c61ac1f4c_add_original_resource_id_column.py
  gnocchi/indexer/alembic/versions/1c2c61ac1f4c_add_original_resource_id_column.pyc
  gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.py
  gnocchi/indexer/alembic/versions/1c98ac614015_initial_base.pyc
  gnocchi/indexer/alembic/versions/1f21cbdd6bc2_allow_volume_display_name_to_be_null.py
  gnocchi/indexer/alembic/versions/1f21cbdd6bc2_allow_volume_display_name_to_be_null.pyc
  gnocchi/indexer/alembic/versions/3901f5ea2b8e_create_instance_disk_and_instance_.py
  gnocchi/indexer/alembic/versions/3901f5ea2b8e_create_instance_disk_and_instance_.pyc
  gnocchi/indexer/alembic/versions/3...

Read more...

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Triaged
Julien Danjou (jdanjou)
Changed in gnocchi:
importance: Undecided → High
assignee: nobody → Julien Danjou (jdanjou)
status: Triaged → Fix Committed
Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 3.0.0
status: Fix Committed → Fix Released
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.