You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I create a docker image with the new make docker method and see a couple of warning messages ie.
"WARNING: The script zhmc_prometheus_exporter is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
After starting the container I see the following messages and the exporter is not starting:
[iocadmin@iszpmvcm02 ~]$ podman run -it --rm -v $(pwd)/myconfig:/etc/zhmc-prometheus-exporter -p 9291:9291 zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 -c /etc/zhmc-prometheus-exporter/config.yaml -v
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
Command output
<-- Relevant parts of the command output. If possible, with '-vv'. -->
Log file
(venv) [iocadmin@iszpmvcm02 zhmc-prometheus-exporter]$ make docker
echo "# Authors of this project" >AUTHORS.md.tmp
echo "" >>AUTHORS.md.tmp
echo "Sorted list of authors derived from git commit history:" >>AUTHORS.md.tmp
echo '' >>AUTHORS.md.tmp git shortlog --summary --email | cut -f 2 | sort >>AUTHORS.md.tmp echo '' >>AUTHORS.md.tmp
sh -c "if ! diff -q AUTHORS.md.tmp AUTHORS.md; then mv AUTHORS.md.tmp AUTHORS.md; else rm AUTHORS.md.tmp; fi"
Makefile: Building Docker image zhmcexporter:latest
rm -f done/docker_py311_latest.done
podman build --tag zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 --build-arg bdist_fil e=dist/zhmc_prometheus_exporter-2.0.0a1.dev32+g5f7054a.d20240821-py3-none-any.whl --bu ild-arg package_version=2.0.0a1.dev32.g5f7054a.d20240821 --build-arg build_date="2024- 08-21T13:14:17+02:00" --build-arg git_commit="5f7054ad6a0131ff71bc9829549ee244632c0fbe " .
[1/2] STEP 1/7: FROM python:3.12-slim AS builder
[1/2] STEP 2/7: ARG bdist_file
--> Using cache d3912e489f246cd839eb65377b36fbe3bb3d61188e52c2aa59b39dfaa7b5ce25
--> d3912e489f24
[1/2] STEP 3/7: RUN : "${bdist_file:?Build argument bdist_file is required}"
--> 93fcfda1141f
[1/2] STEP 4/7: RUN apt-get update && apt-get install -y --no-install-recommends git
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8788 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [176 kB]
Fetched 9232 kB in 1s (6611 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
git-man libbrotli1 libcurl3-gnutls liberror-perl libgdbm-compat4
libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2
libsasl2-modules-db libssh2-1 perl perl-modules-5.36
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui
gitk gitweb git-cvs git-mediawiki git-svn sensible-utils perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make
libtap-harness-archive-perl
Recommended packages:
patch less ssh-client libldap-common publicsuffix libsasl2-modules
The following NEW packages will be installed:
git git-man libbrotli1 libcurl3-gnutls liberror-perl libgdbm-compat4
libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2
libsasl2-modules-db libssh2-1 perl perl-modules-5.36
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.9 MB of archives.
After this operation, 99.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 perl-modules-5.36 all 5.36.0-7+ deb12u1 [2815 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libgdbm-compat4 amd64 1.23-3 [4 8.2 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libperl5.36 amd64 5.36.0-7+deb1 2u1 [4218 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 perl amd64 5.36.0-7+deb12u1 [23 9 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libbrotli1 amd64 1.0.9-2+b6 [27 5 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 libsasl2-modules-db amd64 2.1.2 8+dfsg-10 [20.3 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 libsasl2-2 amd64 2.1.28+dfsg-10 [59.7 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg -5 [183 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 libnghttp2-14 amd64 1.52.0-1+de b12u1 [72.4 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 libpsl5 amd64 0.21.2-1 [58.7 k B]
Get:11 http://deb.debian.org/debian bookworm/main amd64 librtmp1 amd64 2.4+20151223.gi tfa8646d.1-2+b2 [60.8 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libssh2-1 amd64 1.10.0-3+b1 [1 79 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-1 0+deb12u6 [385 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 liberror-perl all 0.17029-2 [2 9.0 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 git-man all 1:2.39.2-1.1 [2049 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 git amd64 1:2.39.2-1.1 [7171 k B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 17.9 MB in 0s (48.0 MB/s)
Selecting previously unselected package perl-modules-5.36.
(Reading database ... 6696 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.36_5.36.0-7+deb12u1_all.deb ...
Unpacking perl-modules-5.36 (5.36.0-7+deb12u1) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../01-libgdbm-compat4_1.23-3_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.23-3) ...
Selecting previously unselected package libperl5.36:amd64.
Preparing to unpack .../02-libperl5.36_5.36.0-7+deb12u1_amd64.deb ...
Unpacking libperl5.36:amd64 (5.36.0-7+deb12u1) ...
Selecting previously unselected package perl.
Preparing to unpack .../03-perl_5.36.0-7+deb12u1_amd64.deb ...
Unpacking perl (5.36.0-7+deb12u1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../04-libbrotli1_1.0.9-2+b6_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2+b6) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../05-libsasl2-modules-db_2.1.28+dfsg-10_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../06-libsasl2-2_2.1.28+dfsg-10_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libldap-2.5-0:amd64.
Preparing to unpack .../07-libldap-2.5-0_2.5.13+dfsg-5_amd64.deb ...
Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../08-libnghttp2-14_1.52.0-1+deb12u1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../09-libpsl5_0.21.2-1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.2-1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../10-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../11-libssh2-1_1.10.0-3+b1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.10.0-3+b1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../12-libcurl3-gnutls_7.88.1-10+deb12u6_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u6) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../13-liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../14-git-man_1%3a2.39.2-1.1_all.deb ...
Unpacking git-man (1:2.39.2-1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../15-git_1%3a2.39.2-1.1_amd64.deb ...
Unpacking git (1:2.39.2-1.1) ...
Setting up libpsl5:amd64 (0.21.2-1) ...
Setting up libbrotli1:amd64 (1.0.9-2+b6) ...
Setting up libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
Setting up perl-modules-5.36 (5.36.0-7+deb12u1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up libgdbm-compat4:amd64 (1.23-3) ...
Setting up libsasl2-2:amd64 (2.1.28+dfsg-10) ...
Setting up git-man (1:2.39.2-1.1) ...
Setting up libssh2-1:amd64 (1.10.0-3+b1) ...
Setting up libperl5.36:amd64 (5.36.0-7+deb12u1) ...
Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
Setting up perl (5.36.0-7+deb12u1) ...
Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u6) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.2-1.1) ...
Processing triggers for libc-bin (2.36-9+deb12u7) ...
--> 7433f07ccaac
[1/2] STEP 5/7: COPY ${bdist_file} /tmp/${bdist_file}
--> 35e82c9a9531
[1/2] STEP 6/7: RUN pip install --user /tmp/${bdist_file} && rm -f /tmp/${bdist_file } && pip list
Processing /tmp/dist/zhmc_prometheus_exporter-2.0.0a1.dev32+g5f7054a.d20240821-py3-non e-any.whl
Collecting zhmcclient>=1.17.0 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d 20240821)
Downloading zhmcclient-1.17.1-py3-none-any.whl.metadata (6.3 kB)
Collecting urllib3>=1.26.19 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20 240821)
Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting jsonschema>=3.2.0 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d2 0240821)
Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting Jinja2>=3.1.4 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240 821)
Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting ruamel.yaml>=0.18.6 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a. d20240821)
Downloading ruamel.yaml-0.18.6-py3-none-any.whl.metadata (23 kB)
Collecting pyrsistent>=0.18.1 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d 20240821)
Downloading pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64 .whl.metadata (27 kB)
Collecting PyYAML!=5.4.0,!=5.4.1,!=6.0.0,>=5.3.1 (from zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl. metadata (2.1 kB)
Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.4->zhmc-prometheus-exporter==2.0.0a1.dev3 2+g5f7054a.d20240821)
Downloading MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64. whl.metadata (3.0 kB)
Collecting attrs>=22.2.0 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0.0a1.de v32+g5f7054a.d20240821)
Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=3.2.0->zhmc-promethe us-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0. 0a1.dev32+g5f7054a.d20240821)
Downloading referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0.0a1.d ev32+g5f7054a.d20240821)
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.wh l.metadata (4.2 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml>=0.18.6->zhmc-prometheus-exporter ==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x 86_64.manylinux_2_28_x86_64.whl.metadata (2.2 kB)
Collecting decorator>=4.0.11 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
Collecting pytz>=2019.1 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a1.de v32+g5f7054a.d20240821)
Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting requests>=2.32.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a 1.dev32+g5f7054a.d20240821)
Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting stomp-py>=8.1.1 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a1 .dev32+g5f7054a.d20240821)
Downloading stomp_py-8.1.2-py3-none-any.whl.metadata (5.9 kB)
Collecting python-dateutil>=2.8.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter== 2.0.0a1.dev32+g5f7054a.d20240821)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting immutable-views>=0.6.0 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter== 2.0.0a1.dev32+g5f7054a.d20240821)
Downloading immutable_views-0.6.1-py2.py3-none-any.whl.metadata (8.8 kB)
Collecting nocasedict>=1.0.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading nocasedict-2.0.4-py2.py3-none-any.whl.metadata (5.6 kB)
Collecting yamlloader>=0.5.5 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading yamlloader-1.4.1-py3-none-any.whl.metadata (5.2 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->zhmcclient>=1.17.0->zhmc-prometheus- exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-p rometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014 _x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-prometheus-ex porter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting certifi>=2017.4.17 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-prometh eus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
Collecting docopt<0.7.0,>=0.6.2 (from stomp-py>=8.1.1->zhmcclient>=1.17.0->zhmc-promet heus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting websocket-client<2.0.0,>=1.2.3 (from stomp-py>=8.1.1->zhmcclient>=1.17.0->z hmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading websocket_client-1.8.0-py3-none-any.whl.metadata (8.0 kB)
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
Downloading pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.w hl (122 kB)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7 67 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 767.5/767.5 kB 33.7 MB/s eta 0:00:00
Downloading ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)
Downloading zhmcclient-1.17.1-py3-none-any.whl (314 kB)
Downloading attrs-24.2.0-py3-none-any.whl (63 kB)
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Downloading immutable_views-0.6.1-py2.py3-none-any.whl (19 kB)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Downloading MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.wh l (28 kB)
Downloading nocasedict-2.0.4-py2.py3-none-any.whl (23 kB)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)
Downloading referencing-0.35.1-py3-none-any.whl (26 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357 kB)
Downloading ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86 _64.manylinux_2_28_x86_64.whl (734 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 734.6/734.6 kB 51.3 MB/s eta 0:00:00
Downloading stomp_py-8.1.2-py3-none-any.whl (42 kB)
Downloading yamlloader-1.4.1-py3-none-any.whl (6.9 kB)
Downloading certifi-2024.7.4-py3-none-any.whl (162 kB)
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x 86_64.whl (141 kB)
Downloading idna-3.7-py3-none-any.whl (66 kB)
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading websocket_client-1.8.0-py3-none-any.whl (58 kB)
Building wheels for collected packages: docopt
Building wheel for docopt (setup.py): started
Building wheel for docopt (setup.py): finished with status 'done'
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13705 sha2 56=e2617168d9325bc9f1cab17157dfc79375a2bc2e1f635214c256e90551a2d8ad
Stored in directory: /root/.cache/pip/wheels/1a/bf/a1/4cee4f7678c68c5875ca89eaccf460 593539805c3906722228
Successfully built docopt
Installing collected packages: pytz, docopt, websocket-client, urllib3, six, ruamel.ya ml.clib, rpds-py, PyYAML, pyrsistent, nocasedict, MarkupSafe, immutable-views, idna, d ecorator, charset-normalizer, certifi, attrs, yamlloader, stomp-py, ruamel.yaml, reque sts, referencing, python-dateutil, Jinja2, jsonschema-specifications, jsonschema, zhmc client, zhmc-prometheus-exporter
WARNING: The script wsdump is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script normalizer is installed in '/root/.local/bin' which is not on PA TH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script stomp is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script jsonschema is installed in '/root/.local/bin' which is not on PA TH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
Successfully installed Jinja2-3.1.4 MarkupSafe-2.1.5 PyYAML-6.0.2 attrs-24.2.0 certifi -2024.7.4 charset-normalizer-3.3.2 decorator-5.1.1 docopt-0.6.2 idna-3.7 immutable-vie ws-0.6.1 jsonschema-4.23.0 jsonschema-specifications-2023.12.1 nocasedict-2.0.4 pyrsis tent-0.20.0 python-dateutil-2.9.0.post0 pytz-2024.1 referencing-0.35.1 requests-2.32.3 rpds-py-0.20.0 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 six-1.16.0 stomp-py-8.1.2 ur llib3-2.2.2 websocket-client-1.8.0 yamlloader-1.4.1 zhmc-prometheus-exporter-2.0.0a1.d ev32+g5f7054a.d20240821 zhmcclient-1.17.1
WARNING: The script zhmc_prometheus_exporter is installed in '/root/.local/bin' whic h is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicti ng behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/v env. Use the --root-user-action option if you know what you are doing and want to supp ress this warning.
Package Version
attrs 24.2.0
certifi 2024.7.4
charset-normalizer 3.3.2
decorator 5.1.1
docopt 0.6.2
idna 3.7
immutable-views 0.6.1
Jinja2 3.1.4
jsonschema 4.23.0
jsonschema-specifications 2023.12.1
MarkupSafe 2.1.5
nocasedict 2.0.4
pip 24.2
pyrsistent 0.20.0
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.2
referencing 0.35.1
requests 2.32.3
rpds-py 0.20.0
ruamel.yaml 0.18.6
ruamel.yaml.clib 0.2.8
setuptools 72.1.0
six 1.16.0
stomp-py 8.1.2
urllib3 2.2.2
websocket-client 1.8.0
wheel 0.44.0
yamlloader 1.4.1
zhmc_prometheus_exporter 2.0.0a1.dev32+g5f7054a.d20240821
zhmcclient 1.17.1
--> 040e9fb305e5
[1/2] STEP 7/7: RUN python -m pip uninstall -y pip setuptools wheel
Found existing installation: pip 24.2
Uninstalling pip-24.2:
Successfully uninstalled pip-24.2
Found existing installation: setuptools 72.1.0
Uninstalling setuptools-72.1.0:
Successfully uninstalled setuptools-72.1.0
Found existing installation: wheel 0.44.0
Uninstalling wheel-0.44.0:
Successfully uninstalled wheel-0.44.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicti ng behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/v env. Use the --root-user-action option if you know what you are doing and want to supp ress this warning.
--> 88212d09b3f2
[2/2] STEP 1/21: FROM python:3.12-alpine
Resolved "python" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/python:3.12-alpine...
Getting image source signatures
Copying blob 2240f6c2d99c done
Copying blob c6a83fedfae6 done
Copying blob 6f14051a7863 done
Copying blob e1e82c77ac9c done
Copying blob 334024c37334 done
Copying config ab735b9c6e done
Writing manifest to image destination
[2/2] STEP 2/21: ARG package_version
--> c4f548b68034
[2/2] STEP 3/21: RUN : "${package_version:?Build argument package_version is required} "
--> a9aec3c075f3
[2/2] STEP 4/21: ARG build_date
--> 720ff6dc82b0
[2/2] STEP 5/21: RUN : "${build_date:?Build argument build_date is required}"
--> 9ffceaa96623
[2/2] STEP 6/21: ARG git_commit
--> d516283afc9c
[2/2] STEP 7/21: RUN : "${git_commit:?Build argument git_commit is required}"
--> 6c10a6492b54
[2/2] STEP 8/21: LABEL org.opencontainers.image.title="IBM Z HMC Prometheus Exporter"
--> 00eadd324ae1
[2/2] STEP 9/21: LABEL org.opencontainers.image.version="${package_version}"
--> b33e01dd3258
[2/2] STEP 10/21: LABEL org.opencontainers.image.authors="Andreas Maier, Kathir Velusa my"
--> 2b90df566f42
[2/2] STEP 11/21: LABEL org.opencontainers.image.created="${build_date}"
--> 9d95512231ed
[2/2] STEP 12/21: LABEL org.opencontainers.image.url="https://github.com/zhmcclient/zh mc-prometheus-exporter"
--> 29d054051673
[2/2] STEP 13/21: LABEL org.opencontainers.image.documentation="https://zhmc-prometheu s-exporter.readthedocs.io"
--> 46235e10d682
[2/2] STEP 14/21: LABEL org.opencontainers.image.source="https://github.com/zhmcclient /zhmc-prometheus-exporter"
--> 04097d016acc
[2/2] STEP 15/21: LABEL org.opencontainers.image.licenses="Apache Software License 2.0 "
--> eac8f7240537
[2/2] STEP 16/21: LABEL org.opencontainers.image.revision="${git_commit}"
--> 296d811b894f
[2/2] STEP 17/21: COPY --from=builder /root/.local /root/.local
--> 3d256fee6b7e
[2/2] STEP 18/21: ENV PATH=/root/.local/bin:$PATH
--> 72ec8d4e5fe2
[2/2] STEP 19/21: EXPOSE 9291
--> 7680cffebb88
[2/2] STEP 20/21: ENTRYPOINT ["zhmc_prometheus_exporter"]
--> 8adcaec9c54f
[2/2] STEP 21/21: CMD ["--help"]
[2/2] COMMIT zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821
--> d32ba86f4a1d
Successfully tagged localhost/zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821
d32ba86f4a1df6f636546110abbbe8010784a1eec83b4e7be3c7b9541213669b
podman image list --filter reference=zhmcexporter
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/zhmcexporter 2.0.0a1.dev32.g5f7054a.d20240821 d32ba86f4a1d 1 second ago 78.4 MB
localhost/zhmcexporter latest f6ba2040b1d5 9 months ago 270 MB
Makefile: Done building Docker image
echo "done" >done/docker_py311_latest.done
Makefile: docker done.
[iocadmin@iszpmvcm02 ~]$ podman run -it --rm -v $(pwd)/myconfig:/etc/zhmc-prometheus-exporter -p 9291:9291 zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 -c /etc/zhmc-prometheus-exporter/config.yaml -v
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
[iocadmin@iszpmvcm02 ~]$ podman exec -it zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 sh
Error: no container with name or ID "zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821" found: no such container
[iocadmin@iszpmvcm02 ~]$ podman run -it zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 /bin/sh
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
The text was updated successfully, but these errors were encountered:
@nowagn I was able to reproduce the issue and PR #628 fixes the issue for the upcoming version 2.0.0 (and of course, once merged, for the master branch which you seem to have used). A rollback to version 1.7.x is not needed since the issue does not exist there.
Please try with the branch of PR #628 (or once merged, with the master branch) to verify that it works for you.
The fix in PR #628 increased the Docker image size significantly, and I was able to reduce the size of the image again to what it was before, in PR #633.
Describe the bug
I create a docker image with the new make docker method and see a couple of warning messages ie.
"WARNING: The script zhmc_prometheus_exporter is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
After starting the container I see the following messages and the exporter is not starting:
[iocadmin@iszpmvcm02 ~]$ podman run -it --rm -v $(pwd)/myconfig:/etc/zhmc-prometheus-exporter -p 9291:9291 zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 -c /etc/zhmc-prometheus-exporter/config.yaml -v
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
Expected behavior
Working image/container
To Reproduce
make docker
docker run zhmc-exporter
Environment information
zhmc_prometheus_exporter --version
:(venv) [iocadmin@iszpmvcm02 ~]$ zhmc_prometheus_exporter --version
zhmc_prometheus_exporter version: 2.0.0a1.dev32+g5f7054a.d20240821
zhmcclient version: 1.17.1
prometheus_client (vendored) version: 0.20.0.post1
Command output
<-- Relevant parts of the command output. If possible, with '-vv'. -->
Log file
(venv) [iocadmin@iszpmvcm02 zhmc-prometheus-exporter]$ make docker
echo "# Authors of this project" >AUTHORS.md.tmp
echo "" >>AUTHORS.md.tmp
echo "Sorted list of authors derived from git commit history:" >>AUTHORS.md.tmp
echo '
' >>AUTHORS.md.tmp git shortlog --summary --email | cut -f 2 | sort >>AUTHORS.md.tmp echo '
' >>AUTHORS.md.tmpsh -c "if ! diff -q AUTHORS.md.tmp AUTHORS.md; then mv AUTHORS.md.tmp AUTHORS.md; else rm AUTHORS.md.tmp; fi"
Makefile: Building Docker image zhmcexporter:latest
rm -f done/docker_py311_latest.done
podman build --tag zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 --build-arg bdist_fil e=dist/zhmc_prometheus_exporter-2.0.0a1.dev32+g5f7054a.d20240821-py3-none-any.whl --bu ild-arg package_version=2.0.0a1.dev32.g5f7054a.d20240821 --build-arg build_date="2024- 08-21T13:14:17+02:00" --build-arg git_commit="5f7054ad6a0131ff71bc9829549ee244632c0fbe " .
[1/2] STEP 1/7: FROM python:3.12-slim AS builder
[1/2] STEP 2/7: ARG bdist_file
--> Using cache d3912e489f246cd839eb65377b36fbe3bb3d61188e52c2aa59b39dfaa7b5ce25
--> d3912e489f24
[1/2] STEP 3/7: RUN : "${bdist_file:?Build argument bdist_file is required}"
--> 93fcfda1141f
[1/2] STEP 4/7: RUN apt-get update && apt-get install -y --no-install-recommends git
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8788 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [176 kB]
Fetched 9232 kB in 1s (6611 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
git-man libbrotli1 libcurl3-gnutls liberror-perl libgdbm-compat4
libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2
libsasl2-modules-db libssh2-1 perl perl-modules-5.36
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui
gitk gitweb git-cvs git-mediawiki git-svn sensible-utils perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make
libtap-harness-archive-perl
Recommended packages:
patch less ssh-client libldap-common publicsuffix libsasl2-modules
The following NEW packages will be installed:
git git-man libbrotli1 libcurl3-gnutls liberror-perl libgdbm-compat4
libldap-2.5-0 libnghttp2-14 libperl5.36 libpsl5 librtmp1 libsasl2-2
libsasl2-modules-db libssh2-1 perl perl-modules-5.36
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.9 MB of archives.
After this operation, 99.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 perl-modules-5.36 all 5.36.0-7+ deb12u1 [2815 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libgdbm-compat4 amd64 1.23-3 [4 8.2 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libperl5.36 amd64 5.36.0-7+deb1 2u1 [4218 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 perl amd64 5.36.0-7+deb12u1 [23 9 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libbrotli1 amd64 1.0.9-2+b6 [27 5 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 libsasl2-modules-db amd64 2.1.2 8+dfsg-10 [20.3 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 libsasl2-2 amd64 2.1.28+dfsg-10 [59.7 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 libldap-2.5-0 amd64 2.5.13+dfsg -5 [183 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 libnghttp2-14 amd64 1.52.0-1+de b12u1 [72.4 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 libpsl5 amd64 0.21.2-1 [58.7 k B]
Get:11 http://deb.debian.org/debian bookworm/main amd64 librtmp1 amd64 2.4+20151223.gi tfa8646d.1-2+b2 [60.8 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libssh2-1 amd64 1.10.0-3+b1 [1 79 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-1 0+deb12u6 [385 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 liberror-perl all 0.17029-2 [2 9.0 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 git-man all 1:2.39.2-1.1 [2049 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 git amd64 1:2.39.2-1.1 [7171 k B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 17.9 MB in 0s (48.0 MB/s)
Selecting previously unselected package perl-modules-5.36.
(Reading database ... 6696 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.36_5.36.0-7+deb12u1_all.deb ...
Unpacking perl-modules-5.36 (5.36.0-7+deb12u1) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../01-libgdbm-compat4_1.23-3_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.23-3) ...
Selecting previously unselected package libperl5.36:amd64.
Preparing to unpack .../02-libperl5.36_5.36.0-7+deb12u1_amd64.deb ...
Unpacking libperl5.36:amd64 (5.36.0-7+deb12u1) ...
Selecting previously unselected package perl.
Preparing to unpack .../03-perl_5.36.0-7+deb12u1_amd64.deb ...
Unpacking perl (5.36.0-7+deb12u1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../04-libbrotli1_1.0.9-2+b6_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2+b6) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../05-libsasl2-modules-db_2.1.28+dfsg-10_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../06-libsasl2-2_2.1.28+dfsg-10_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.28+dfsg-10) ...
Selecting previously unselected package libldap-2.5-0:amd64.
Preparing to unpack .../07-libldap-2.5-0_2.5.13+dfsg-5_amd64.deb ...
Unpacking libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../08-libnghttp2-14_1.52.0-1+deb12u1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../09-libpsl5_0.21.2-1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.2-1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../10-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../11-libssh2-1_1.10.0-3+b1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.10.0-3+b1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../12-libcurl3-gnutls_7.88.1-10+deb12u6_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u6) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../13-liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../14-git-man_1%3a2.39.2-1.1_all.deb ...
Unpacking git-man (1:2.39.2-1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../15-git_1%3a2.39.2-1.1_amd64.deb ...
Unpacking git (1:2.39.2-1.1) ...
Setting up libpsl5:amd64 (0.21.2-1) ...
Setting up libbrotli1:amd64 (1.0.9-2+b6) ...
Setting up libnghttp2-14:amd64 (1.52.0-1+deb12u1) ...
Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg-10) ...
Setting up perl-modules-5.36 (5.36.0-7+deb12u1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up libgdbm-compat4:amd64 (1.23-3) ...
Setting up libsasl2-2:amd64 (2.1.28+dfsg-10) ...
Setting up git-man (1:2.39.2-1.1) ...
Setting up libssh2-1:amd64 (1.10.0-3+b1) ...
Setting up libperl5.36:amd64 (5.36.0-7+deb12u1) ...
Setting up libldap-2.5-0:amd64 (2.5.13+dfsg-5) ...
Setting up perl (5.36.0-7+deb12u1) ...
Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u6) ...
Setting up liberror-perl (0.17029-2) ...
Setting up git (1:2.39.2-1.1) ...
Processing triggers for libc-bin (2.36-9+deb12u7) ...
--> 7433f07ccaac
[1/2] STEP 5/7: COPY ${bdist_file} /tmp/${bdist_file}
--> 35e82c9a9531
[1/2] STEP 6/7: RUN pip install --user /tmp/${bdist_file} && rm -f /tmp/${bdist_file } && pip list
Processing /tmp/dist/zhmc_prometheus_exporter-2.0.0a1.dev32+g5f7054a.d20240821-py3-non e-any.whl
Collecting zhmcclient>=1.17.0 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d 20240821)
Downloading zhmcclient-1.17.1-py3-none-any.whl.metadata (6.3 kB)
Collecting urllib3>=1.26.19 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20 240821)
Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting jsonschema>=3.2.0 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d2 0240821)
Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting Jinja2>=3.1.4 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240 821)
Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting ruamel.yaml>=0.18.6 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a. d20240821)
Downloading ruamel.yaml-0.18.6-py3-none-any.whl.metadata (23 kB)
Collecting pyrsistent>=0.18.1 (from zhmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d 20240821)
Downloading pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64 .whl.metadata (27 kB)
Collecting PyYAML!=5.4.0,!=5.4.1,!=6.0.0,>=5.3.1 (from zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl. metadata (2.1 kB)
Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.4->zhmc-prometheus-exporter==2.0.0a1.dev3 2+g5f7054a.d20240821)
Downloading MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64. whl.metadata (3.0 kB)
Collecting attrs>=22.2.0 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0.0a1.de v32+g5f7054a.d20240821)
Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=3.2.0->zhmc-promethe us-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0. 0a1.dev32+g5f7054a.d20240821)
Downloading referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=3.2.0->zhmc-prometheus-exporter==2.0.0a1.d ev32+g5f7054a.d20240821)
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.wh l.metadata (4.2 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml>=0.18.6->zhmc-prometheus-exporter ==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x 86_64.manylinux_2_28_x86_64.whl.metadata (2.2 kB)
Collecting decorator>=4.0.11 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
Collecting pytz>=2019.1 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a1.de v32+g5f7054a.d20240821)
Downloading pytz-2024.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting requests>=2.32.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a 1.dev32+g5f7054a.d20240821)
Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting stomp-py>=8.1.1 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0a1 .dev32+g5f7054a.d20240821)
Downloading stomp_py-8.1.2-py3-none-any.whl.metadata (5.9 kB)
Collecting python-dateutil>=2.8.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter== 2.0.0a1.dev32+g5f7054a.d20240821)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting immutable-views>=0.6.0 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter== 2.0.0a1.dev32+g5f7054a.d20240821)
Downloading immutable_views-0.6.1-py2.py3-none-any.whl.metadata (8.8 kB)
Collecting nocasedict>=1.0.2 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading nocasedict-2.0.4-py2.py3-none-any.whl.metadata (5.6 kB)
Collecting yamlloader>=0.5.5 (from zhmcclient>=1.17.0->zhmc-prometheus-exporter==2.0.0 a1.dev32+g5f7054a.d20240821)
Downloading yamlloader-1.4.1-py3-none-any.whl.metadata (5.2 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->zhmcclient>=1.17.0->zhmc-prometheus- exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-p rometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014 _x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-prometheus-ex porter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting certifi>=2017.4.17 (from requests>=2.32.2->zhmcclient>=1.17.0->zhmc-prometh eus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
Collecting docopt<0.7.0,>=0.6.2 (from stomp-py>=8.1.1->zhmcclient>=1.17.0->zhmc-promet heus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting websocket-client<2.0.0,>=1.2.3 (from stomp-py>=8.1.1->zhmcclient>=1.17.0->z hmc-prometheus-exporter==2.0.0a1.dev32+g5f7054a.d20240821)
Downloading websocket_client-1.8.0-py3-none-any.whl.metadata (8.0 kB)
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
Downloading pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.w hl (122 kB)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7 67 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 767.5/767.5 kB 33.7 MB/s eta 0:00:00
Downloading ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)
Downloading zhmcclient-1.17.1-py3-none-any.whl (314 kB)
Downloading attrs-24.2.0-py3-none-any.whl (63 kB)
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Downloading immutable_views-0.6.1-py2.py3-none-any.whl (19 kB)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Downloading MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.wh l (28 kB)
Downloading nocasedict-2.0.4-py2.py3-none-any.whl (23 kB)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)
Downloading referencing-0.35.1-py3-none-any.whl (26 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357 kB)
Downloading ruamel.yaml.clib-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86 _64.manylinux_2_28_x86_64.whl (734 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 734.6/734.6 kB 51.3 MB/s eta 0:00:00
Downloading stomp_py-8.1.2-py3-none-any.whl (42 kB)
Downloading yamlloader-1.4.1-py3-none-any.whl (6.9 kB)
Downloading certifi-2024.7.4-py3-none-any.whl (162 kB)
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x 86_64.whl (141 kB)
Downloading idna-3.7-py3-none-any.whl (66 kB)
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading websocket_client-1.8.0-py3-none-any.whl (58 kB)
Building wheels for collected packages: docopt
Building wheel for docopt (setup.py): started
Building wheel for docopt (setup.py): finished with status 'done'
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13705 sha2 56=e2617168d9325bc9f1cab17157dfc79375a2bc2e1f635214c256e90551a2d8ad
Stored in directory: /root/.cache/pip/wheels/1a/bf/a1/4cee4f7678c68c5875ca89eaccf460 593539805c3906722228
Successfully built docopt
Installing collected packages: pytz, docopt, websocket-client, urllib3, six, ruamel.ya ml.clib, rpds-py, PyYAML, pyrsistent, nocasedict, MarkupSafe, immutable-views, idna, d ecorator, charset-normalizer, certifi, attrs, yamlloader, stomp-py, ruamel.yaml, reque sts, referencing, python-dateutil, Jinja2, jsonschema-specifications, jsonschema, zhmc client, zhmc-prometheus-exporter
WARNING: The script wsdump is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script normalizer is installed in '/root/.local/bin' which is not on PA TH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script stomp is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: The script jsonschema is installed in '/root/.local/bin' which is not on PA TH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
Successfully installed Jinja2-3.1.4 MarkupSafe-2.1.5 PyYAML-6.0.2 attrs-24.2.0 certifi -2024.7.4 charset-normalizer-3.3.2 decorator-5.1.1 docopt-0.6.2 idna-3.7 immutable-vie ws-0.6.1 jsonschema-4.23.0 jsonschema-specifications-2023.12.1 nocasedict-2.0.4 pyrsis tent-0.20.0 python-dateutil-2.9.0.post0 pytz-2024.1 referencing-0.35.1 requests-2.32.3 rpds-py-0.20.0 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 six-1.16.0 stomp-py-8.1.2 ur llib3-2.2.2 websocket-client-1.8.0 yamlloader-1.4.1 zhmc-prometheus-exporter-2.0.0a1.d ev32+g5f7054a.d20240821 zhmcclient-1.17.1
WARNING: The script zhmc_prometheus_exporter is installed in '/root/.local/bin' whic h is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, u se --no-warn-script-location.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicti ng behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/v env. Use the --root-user-action option if you know what you are doing and want to supp ress this warning.
Package Version
attrs 24.2.0
certifi 2024.7.4
charset-normalizer 3.3.2
decorator 5.1.1
docopt 0.6.2
idna 3.7
immutable-views 0.6.1
Jinja2 3.1.4
jsonschema 4.23.0
jsonschema-specifications 2023.12.1
MarkupSafe 2.1.5
nocasedict 2.0.4
pip 24.2
pyrsistent 0.20.0
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.2
referencing 0.35.1
requests 2.32.3
rpds-py 0.20.0
ruamel.yaml 0.18.6
ruamel.yaml.clib 0.2.8
setuptools 72.1.0
six 1.16.0
stomp-py 8.1.2
urllib3 2.2.2
websocket-client 1.8.0
wheel 0.44.0
yamlloader 1.4.1
zhmc_prometheus_exporter 2.0.0a1.dev32+g5f7054a.d20240821
zhmcclient 1.17.1
--> 040e9fb305e5
[1/2] STEP 7/7: RUN python -m pip uninstall -y pip setuptools wheel
Found existing installation: pip 24.2
Uninstalling pip-24.2:
Successfully uninstalled pip-24.2
Found existing installation: setuptools 72.1.0
Uninstalling setuptools-72.1.0:
Successfully uninstalled setuptools-72.1.0
Found existing installation: wheel 0.44.0
Uninstalling wheel-0.44.0:
Successfully uninstalled wheel-0.44.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicti ng behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/v env. Use the --root-user-action option if you know what you are doing and want to supp ress this warning.
--> 88212d09b3f2
[2/2] STEP 1/21: FROM python:3.12-alpine
Resolved "python" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/python:3.12-alpine...
Getting image source signatures
Copying blob 2240f6c2d99c done
Copying blob c6a83fedfae6 done
Copying blob 6f14051a7863 done
Copying blob e1e82c77ac9c done
Copying blob 334024c37334 done
Copying config ab735b9c6e done
Writing manifest to image destination
[2/2] STEP 2/21: ARG package_version
--> c4f548b68034
[2/2] STEP 3/21: RUN : "${package_version:?Build argument package_version is required} "
--> a9aec3c075f3
[2/2] STEP 4/21: ARG build_date
--> 720ff6dc82b0
[2/2] STEP 5/21: RUN : "${build_date:?Build argument build_date is required}"
--> 9ffceaa96623
[2/2] STEP 6/21: ARG git_commit
--> d516283afc9c
[2/2] STEP 7/21: RUN : "${git_commit:?Build argument git_commit is required}"
--> 6c10a6492b54
[2/2] STEP 8/21: LABEL org.opencontainers.image.title="IBM Z HMC Prometheus Exporter"
--> 00eadd324ae1
[2/2] STEP 9/21: LABEL org.opencontainers.image.version="${package_version}"
--> b33e01dd3258
[2/2] STEP 10/21: LABEL org.opencontainers.image.authors="Andreas Maier, Kathir Velusa my"
--> 2b90df566f42
[2/2] STEP 11/21: LABEL org.opencontainers.image.created="${build_date}"
--> 9d95512231ed
[2/2] STEP 12/21: LABEL org.opencontainers.image.url="https://github.com/zhmcclient/zh mc-prometheus-exporter"
--> 29d054051673
[2/2] STEP 13/21: LABEL org.opencontainers.image.documentation="https://zhmc-prometheu s-exporter.readthedocs.io"
--> 46235e10d682
[2/2] STEP 14/21: LABEL org.opencontainers.image.source="https://github.com/zhmcclient /zhmc-prometheus-exporter"
--> 04097d016acc
[2/2] STEP 15/21: LABEL org.opencontainers.image.licenses="Apache Software License 2.0 "
--> eac8f7240537
[2/2] STEP 16/21: LABEL org.opencontainers.image.revision="${git_commit}"
--> 296d811b894f
[2/2] STEP 17/21: COPY --from=builder /root/.local /root/.local
--> 3d256fee6b7e
[2/2] STEP 18/21: ENV PATH=/root/.local/bin:$PATH
--> 72ec8d4e5fe2
[2/2] STEP 19/21: EXPOSE 9291
--> 7680cffebb88
[2/2] STEP 20/21: ENTRYPOINT ["zhmc_prometheus_exporter"]
--> 8adcaec9c54f
[2/2] STEP 21/21: CMD ["--help"]
[2/2] COMMIT zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821
--> d32ba86f4a1d
Successfully tagged localhost/zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821
d32ba86f4a1df6f636546110abbbe8010784a1eec83b4e7be3c7b9541213669b
podman image list --filter reference=zhmcexporter
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/zhmcexporter 2.0.0a1.dev32.g5f7054a.d20240821 d32ba86f4a1d 1 second ago 78.4 MB
localhost/zhmcexporter latest f6ba2040b1d5 9 months ago 270 MB
Makefile: Done building Docker image
echo "done" >done/docker_py311_latest.done
Makefile: docker done.
[iocadmin@iszpmvcm02 ~]$ podman run -it --rm -v $(pwd)/myconfig:/etc/zhmc-prometheus-exporter -p 9291:9291 zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 -c /etc/zhmc-prometheus-exporter/config.yaml -v
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
[iocadmin@iszpmvcm02 ~]$ podman exec -it zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 sh
Error: no container with name or ID "zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821" found: no such container
[iocadmin@iszpmvcm02 ~]$ podman run -it zhmcexporter:2.0.0a1.dev32.g5f7054a.d20240821 /bin/sh
Traceback (most recent call last):
File "/root/.local/bin/zhmc_prometheus_exporter", line 5, in
from zhmc_prometheus_exporter.zhmc_prometheus_exporter import main
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/init.py", line 20, in
from .zhmc_prometheus_exporter import * # noqa: F401, F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.12/site-packages/zhmc_prometheus_exporter/zhmc_prometheus_exporter.py", line 39, in
import jsonschema
File "/root/.local/lib/python3.12/site-packages/jsonschema/init.py", line 13, in
from jsonschema._format import FormatChecker
File "/root/.local/lib/python3.12/site-packages/jsonschema/_format.py", line 11, in
from jsonschema.exceptions import FormatError
File "/root/.local/lib/python3.12/site-packages/jsonschema/exceptions.py", line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File "/root/.local/lib/python3.12/site-packages/referencing/init.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File "/root/.local/lib/python3.12/site-packages/referencing/_core.py", line 9, in
from rpds import HashTrieMap, HashTrieSet, List
File "/root/.local/lib/python3.12/site-packages/rpds/init.py", line 1, in
from .rpds import *
ModuleNotFoundError: No module named 'rpds.rpds'
The text was updated successfully, but these errors were encountered: