Skip to content

Commit 2156a2b

Browse files
authored
fix(ceilometer): Libvirt connectivity for Epoxy (#185)
* fix(ceilometer): Add required packages for Epoxy Ceilometer is complaining via traceback that python-libvirt is not installed so let's install it. * chore(ceilometer): Remove unnecessary build pkgs Drop packages not required for building ceilometer or its dependencies: bash, brotli, docutils-common, gettext, libjs-sphinxdoc, libjs-underscore, libvirt0, ssl-cert, xmlsec1
1 parent 6cf6677 commit 2156a2b

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

ContainerFiles/ceilometer

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,29 @@ ARG OS_CONSTRAINTS=master
1010
RUN export DEBIAN_FRONTEND=noninteractive \
1111
&& apt-get update && apt-get upgrade -y \
1212
&& apt-get install --no-install-recommends -y \
13-
bash \
14-
brotli \
1513
build-essential \
1614
curl \
17-
docutils-common \
18-
gettext \
1915
git \
2016
libffi-dev \
21-
libjs-sphinxdoc \
22-
libjs-underscore \
2317
libldap2-dev \
2418
libpq-dev \
2519
libsasl2-dev \
2620
libssl-dev \
2721
libsystemd-dev \
22+
libvirt-dev \
2823
libxml2-dev \
2924
libxslt1-dev \
3025
pkg-config \
31-
ssl-cert \
32-
xmlsec1
26+
python3-dev
3327
RUN curl -fsSL -o /tmp/upper-constraints.txt https://opendev.org/openstack/requirements/raw/branch/${OS_CONSTRAINTS}/upper-constraints.txt \
3428
&& sed -i '/^ceilometer===.*/d' /tmp/upper-constraints.txt \
3529
&& /var/lib/openstack/bin/pip install --constraint /tmp/upper-constraints.txt \
3630
git+https://opendev.org/openstack/ceilometer.git@${OS_VERSION}#egg=ceilometer \
3731
ceilometermiddleware \
3832
gnocchiclient \
3933
PyMySQL \
40-
python-memcached
34+
python-memcached \
35+
libvirt-python
4136

4237
COPY scripts/ceilometer-cve-patching.sh /opt/
4338
RUN bash /opt/ceilometer-cve-patching.sh
@@ -63,7 +58,7 @@ LABEL org.opencontainers.image.description="OpenStack Service (ceilometer) built
6358
COPY --from=dependency_build /var/lib/openstack /var/lib/openstack
6459
RUN export DEBIAN_FRONTEND=noninteractive \
6560
&& apt-get update && apt-get upgrade -y \
66-
&& apt-get install --no-install-recommends -y libxml2 \
61+
&& apt-get install --no-install-recommends -y libxml2 libvirt0 \
6762
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
6863
&& apt-get clean -y \
6964
&& rm -rf /var/lib/apt/lists/* \

0 commit comments

Comments
 (0)