Error: 'No such file or directory' while installing ceilometer

Bug #1320761 reported by Madhuri Kumari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
ZhiQiang Fan

Bug Description

While installing ceilometer as stated http://docs.openstack.org/developer/ceilometer/install/manual.html, we need to copy ceilometer.conf.sample to /etc/ceilometer but there is no such configuration file in etc/ceilometer directory.

#cp etc/ceilometer/ceilometer.conf.sample /etc/ceilometer/ceilometer.conf
cp: cannot stat `etc/ceilometer/ceilometer.conf.sample': No such file or directory

Moreover, when we run 'tox -egenconfig' stated in etc/ceilometer/ README-ceilometer.conf.txt, it gives an error:

# tox -egenconfig
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 9, in <module>
    load_entry_point('tox==1.7.0', 'console_scripts', 'tox')()
  File "/usr/local/lib/python2.7/dist-packages/tox/_cmdline.py", line 25, in main
    config = parseconfig(args, 'tox')
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 47, in parseconfig
    parseini(config, inipath)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 281, in __init__
    config)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 346, in _makeenvconfig
    vc.commands = reader.getargvlist(section, "commands")
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 518, in getargvlist
    commandlist.append(self._processcommand(current_command))
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 550, in _processcommand
    new_word = self._replace(word)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 666, in _replace
    return RE_ITEM_REF.sub(self._replace_match, x)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 662, in _replace_match
    return handler(match)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 633, in _replace_substitution
    val = self._substitute_from_other_section(sub_key)
  File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 627, in _substitute_from_other_section
    "substitution key %r not found" % key)
tox.ConfigError: ConfigError: substitution key 'posargs' not found

ZhiQiang Fan (aji-zqfan)
Changed in ceilometer:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

tox 1.6.1 is ok, but tox 1.7.x is broken for openstack projects, the latest code of tox has solved this issue but not been published yet.

you can run `sudo pip install tox==1.6.1' to downgrade tox

see also:
http://lists.openstack.org/pipermail/openstack/2014-February/005421.html
https://bitbucket.org/hpk42/tox/issue/150/posargs-configerror
https://bitbucket.org/hpk42/tox/commits/169574bf58a499d179ece389b75a83ee8b6fba4a

the documentation should be upgrade to mention the tox -egenconfig and the tox version problem

thanks

Revision history for this message
Madhuri Kumari (madhuri-rai07) wrote :

Hi ZhiQiang Fan,

Thanks. The tox issue has resolved.

But what about the first erro? There is no ceilometer.conf.sample in git repository.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/94324

Changed in ceilometer:
status: New → In Progress
Revision history for this message
Madhuri Kumari (madhuri-rai07) wrote :

Thanks ZhiQiang Fan

gordon chung (chungg)
Changed in ceilometer:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/94324
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=9ea466fc2f10f4ef2b1d815c6eba2eb1c471e489
Submitter: Jenkins
Branch: master

commit 9ea466fc2f10f4ef2b1d815c6eba2eb1c471e489
Author: ZhiQiang Fan <email address hidden>
Date: Tue May 20 16:40:43 2014 +0800

    Update doc for sample config file issue

    Since we have removed the ceilometer.conf.sample file, we should
    update the documentation too.

    Change-Id: I93ff8bf2f3332d15495d45a5e55e6252da639302
    Closes-Bug: #1320761

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-1 → 2014.2
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.