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~~~~~~~~~~~
Fix proposed to branch: master /review. openstack. org/110906
Review: https:/