Using ceilometer-agent-compute element causes builds to fail

Bug #1350684 reported by Lakshminarayanan Krishnan on 2014-07-31
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Medium
Lakshminarayanan Krishnan

Bug Description

Building an image with ceilometer-agent-compute element causes builds to fail because build project fails to find a binary that is delivered by pkg-config package. Following are the relevant lines in the build log showing the error (build.log is also attached to this bug report):

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ lbuser@ovajenkins : /tmp/test_4955/ce-installer/tripleo/tripleo-incubator/scripts ]
> tail -100 /tmp/test_4955/build.log
Setting up libxen-dev (4.3.0-3+b1) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.85-2+hLinux) ...
Setting up libvirt0 (1.2.4-3) ...
Setting up libvirt-dev (1.2.4-3) ...
Setting up dmsetup (2:1.02.85-2+hLinux) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for libc-bin (2.19-4+hLinux) ...
Processing triggers for initramfs-tools (0.115-+hLinux) ...
update-initramfs: Generating /boot/initrd.img-3.14.6-2-amd64-hlinux
df: Warning: cannot read table of mounted file systems: No such file or directory
+ /opt/stack/venvs/ceilometer/bin/pip install libvirt-python
Downloading/unpacking libvirt-python
  Running setup.py (path:/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py) egg_info for package libvirt-python

Installing collected packages: libvirt-python
  Running setup.py install for libvirt-python
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 327, in <module>
        'test': my_test
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/opt/stack/venvs/ceilometer/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
        self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 141, in run
        check_minimum_libvirt_version()
      File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 37, in check_minimum_libvirt_version
        spawn([get_pkgcfg(),
      File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 33, in get_pkgcfg
        raise Exception("pkg-config binary is required to compile libvirt-python")
    Exception: pkg-config binary is required to compile libvirt-python
    Complete output from command /opt/stack/venvs/ceilometer/bin/python -c "import setuptools, tokenize;__file__='/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4lGeYv-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/stack/venvs/ceilometer/include/site/python2.7:
    running install

running build

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 327, in <module>

    'test': my_test

  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup

    dist.run_commands()

  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/opt/stack/venvs/ceilometer/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run

    return orig.install.run(self)

  File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run

    self.run_command('build')

  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 141, in run

    check_minimum_libvirt_version()

  File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 37, in check_minimum_libvirt_version

    spawn([get_pkgcfg(),

  File "/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py", line 33, in get_pkgcfg

    raise Exception("pkg-config binary is required to compile libvirt-python")

Exception: pkg-config binary is required to compile libvirt-python

----------------------------------------
Cleaning up...
Command /opt/stack/venvs/ceilometer/bin/python -c "import setuptools, tokenize;__file__='/opt/stack/venvs/ceilometer/build/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4lGeYv-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/stack/venvs/ceilometer/include/site/python2.7 failed with error code 1 in /opt/stack/venvs/ceilometer/build/libvirt-python
Storing debug log for failure in /root/.pip/pip.log
~~~~~~~~~~~END~OF~ERROR~LOG~~~~~~~~~~~

Changed in tripleo:
assignee: nobody → Lakshminarayanan K. (klakshmi)

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

Changed in tripleo:
status: New → In Progress
Ben Nemec (bnemec) on 2014-08-08
Changed in tripleo:
importance: Undecided → Medium
Brent Eagles (beagles) wrote :

The last activity on this report and referenced patch was some time ago and given the current status of ceilometer (i.e. working), marking as inactive.

Changed in tripleo:
status: In Progress → Incomplete

Change abandoned by Dan Prince (<email address hidden>) on branch: master
Review: https://review.openstack.org/110906

Emilien Macchi (emilienm) wrote :

This bug was last updated over 180 days ago, as tripleo is a fast moving project and we'd like to get the tracker down to currently actionable bugs, this is getting marked as Invalid. If the issue still exists, please feel free to reopen it.

Changed in tripleo:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers