Created
October 12, 2023 17:51
-
-
Save cardil/2077037d3c804fc96d956137bffeef65 to your computer and use it in GitHub Desktop.
A log of podman-compose failing to set netalias across multiple networks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ podman-compose up --build --abort-on-container-exit | |
podman-compose version: 1.0.6 | |
['podman', '--version', ''] | |
using podman version: 4.7.0 | |
** excluding: set() | |
podman build -f app/Containerfile -t netalias_app app | |
STEP 1/4: FROM quay.io/fedora/fedora | |
STEP 2/4: RUN dnf install -y python3-redis python3-flask | |
--> Using cache c2bf03a022dc7e9cda93b8279310cde6fb33a790439d895f851949716ee18fdf | |
--> c2bf03a022dc | |
STEP 3/4: ADD serve.py /usr/lib/serve.py | |
--> Using cache 54ae3f9933a04650557cda4a3728249b003ed04de7572f47de30844fd0398197 | |
--> 54ae3f9933a0 | |
STEP 4/4: CMD ["/bin/python3", "/usr/lib/serve.py"] | |
--> Using cache e9facf8eb27be2059bafc397286d81890565596c6bd20e72f88c5736bfdc8687 | |
COMMIT netalias_app | |
--> e9facf8eb27b | |
Successfully tagged localhost/netalias_app:latest | |
e9facf8eb27be2059bafc397286d81890565596c6bd20e72f88c5736bfdc8687 | |
exit code: 0 | |
podman build -f data/Containerfile -t netalias_data data | |
STEP 1/6: FROM docker.io/redis/redis-stack-server | |
STEP 2/6: ADD import.sh /data/import.sh | |
--> Using cache edfb74f5b8642487b576ea424d589a3c54ec205cb1b31a401ae7c479e84da68f | |
--> edfb74f5b864 | |
STEP 3/6: ADD db.rdb /data/db.rdb | |
--> Using cache cfc77a940a02790db8a14227aa3be0ec14ade6fce3bac348dcdf1893e35e14f7 | |
--> cfc77a940a02 | |
STEP 4/6: WORKDIR /data | |
--> Using cache 4362c3177ae9260f6968aafce4d46f31e63fdda15914d4f3b1b7cacdf9413a80 | |
--> 4362c3177ae9 | |
STEP 5/6: ENV REDIS_DB=localhost | |
--> Using cache 6b3365df5de0786c16aa9fc34b16ea3462d59dc89fb00b221b18cbf1bf5a33db | |
--> 6b3365df5de0 | |
STEP 6/6: CMD ["/data/import.sh"] | |
--> Using cache 016637164cdeaef13ba441f435ab5b8189e8fcd65c28fd27c3d076f94fecc4aa | |
COMMIT netalias_data | |
--> 016637164cde | |
Successfully tagged localhost/netalias_data:latest | |
016637164cdeaef13ba441f435ab5b8189e8fcd65c28fd27c3d076f94fecc4aa | |
exit code: 0 | |
['podman', 'ps', '--filter', 'label=io.podman.compose.project=netalias', '-a', '--format', '{{ index .Labels "io.podman.compose.config-hash"}}'] | |
['podman', 'network', 'exists', 'netalias_data'] | |
['podman', 'network', 'create', '--label', 'io.podman.compose.project=netalias', '--label', 'com.docker.compose.project=netalias', 'netalias_data'] | |
['podman', 'network', 'exists', 'netalias_data'] | |
podman create --name=netalias_redis_1 --label io.podman.compose.config-hash=a2ae00575eeb8491abc73315a913646133e5868f3f9218548edfecb3bc45c33e --label io.podman.compose.project=netalias --label io.podman.compose.version=1.0.6 --label [email protected] --label com.docker.compose.project=netalias --label com.docker.compose.project.working_dir=/tmp/tmp.pk3HPoPHXV/netalias --label com.docker.compose.project.config_files=compose.yaml --label com.docker.compose.container-number=1 --label com.docker.compose.service=redis --net netalias_data --network-alias redis docker.io/redis/redis-stack-server | |
64877badc53b54adfa755d87455f8b8930a6af5ec5dd070b0f72f7dc44f037c0 | |
exit code: 0 | |
['podman', 'network', 'exists', 'netalias_apps'] | |
['podman', 'network', 'create', '--label', 'io.podman.compose.project=netalias', '--label', 'com.docker.compose.project=netalias', 'netalias_apps'] | |
['podman', 'network', 'exists', 'netalias_apps'] | |
['podman', 'network', 'exists', 'netalias_data'] | |
podman create --name=netalias_app_1 --requires=netalias_redis_1 --label io.podman.compose.config-hash=a2ae00575eeb8491abc73315a913646133e5868f3f9218548edfecb3bc45c33e --label io.podman.compose.project=netalias --label io.podman.compose.version=1.0.6 --label [email protected] --label com.docker.compose.project=netalias --label com.docker.compose.project.working_dir=/tmp/tmp.pk3HPoPHXV/netalias --label com.docker.compose.project.config_files=compose.yaml --label com.docker.compose.container-number=1 --label com.docker.compose.service=app -e REDIS_HOST=redis --net netalias_apps,netalias_data --network-alias app -p 8080:5000 netalias_app | |
52e50c6339f6206836382a45465b60def294a6e628e4c623bfece223f971ba2d | |
exit code: 0 | |
['podman', 'network', 'exists', 'netalias_data'] | |
podman create --name=netalias_data_1 --requires=netalias_redis_1 --label io.podman.compose.config-hash=a2ae00575eeb8491abc73315a913646133e5868f3f9218548edfecb3bc45c33e --label io.podman.compose.project=netalias --label io.podman.compose.version=1.0.6 --label [email protected] --label com.docker.compose.project=netalias --label com.docker.compose.project.working_dir=/tmp/tmp.pk3HPoPHXV/netalias --label com.docker.compose.project.config_files=compose.yaml --label com.docker.compose.container-number=1 --label com.docker.compose.service=data --net netalias_data --network-alias data --stop-signal SIGINT netalias_data | |
df7ffec69bde80b4952fe2463e360007e3fe28b56a7ae2c474d4b34a35335cdb | |
exit code: 0 | |
podman start -a netalias_redis_1 | |
[redis] | 3:C 12 Oct 2023 17:50:05.406 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. | |
[redis] | 3:C 12 Oct 2023 17:50:05.406 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo | |
[redis] | 3:C 12 Oct 2023 17:50:05.406 * Redis version=7.2.1, bits=64, commit=00000000, modified=0, pid=3, just started | |
[redis] | 3:C 12 Oct 2023 17:50:05.406 * Configuration loaded | |
[redis] | 3:M 12 Oct 2023 17:50:05.406 * monotonic clock: POSIX clock_gettime | |
[redis] | 3:M 12 Oct 2023 17:50:05.407 * Running mode=standalone, port=6379. | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> Redis version found by RedisSearch : 7.2.1 - oss | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> RediSearch version 2.8.8 (Git=HEAD-b3154fb3) | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> Low level api version 1 initialized successfully | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results: 10000, search pool size: 20, index pool size: 8, | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> Initialized thread pools! | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * <search> Enabled role change notification | |
[redis] | 3:M 12 Oct 2023 17:50:05.410 * Module 'search' loaded from /opt/redis-stack/lib/redisearch.so | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> RedisTimeSeries version 11006, git_sha=2a4739648bbe771fc60561b37fbc7f3ca4cc4f24 | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> Redis version found by RedisTimeSeries : 7.2.1 - oss | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> loaded default CHUNK_SIZE_BYTES policy: 4096 | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> loaded server DUPLICATE_POLICY: block | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> Setting default series ENCODING to: compressed | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * <timeseries> Detected redis oss | |
[redis] | 3:M 12 Oct 2023 17:50:05.412 * Module 'timeseries' loaded from /opt/redis-stack/lib/redistimeseries.so | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Created new data type 'ReJSON-RL' | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> version: 20606 git sha: unknown branch: unknown | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Exported RedisJSON_V1 API | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Exported RedisJSON_V2 API | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Exported RedisJSON_V3 API | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Exported RedisJSON_V4 API | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <ReJSON> Enabled diskless replication | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * Module 'ReJSON' loaded from /opt/redis-stack/lib/rejson.so | |
[redis] | 3:M 12 Oct 2023 17:50:05.413 * <search> Acquired RedisJSON_V4 API | |
[redis] | 3:M 12 Oct 2023 17:50:05.414 * <bf> RedisBloom version 2.6.3 (Git=unknown) | |
[redis] | 3:M 12 Oct 2023 17:50:05.414 * Module 'bf' loaded from /opt/redis-stack/lib/redisbloom.so | |
[redis] | 3:M 12 Oct 2023 17:50:05.415 * <redisgears_2> Created new data type 'GearsType' | |
[redis] | 3:M 12 Oct 2023 17:50:05.415 * <redisgears_2> Detected redis oss | |
[redis] | 3:M 12 Oct 2023 17:50:05.415 # <redisgears_2> could not initialize RedisAI_InitError | |
[redis] | | |
[redis] | 3:M 12 Oct 2023 17:50:05.415 * <redisgears_2> Failed loading RedisAI API. | |
[redis] | 3:M 12 Oct 2023 17:50:05.415 * <redisgears_2> RedisGears v2.0.13, sha='c7993a0bb6f8e1a0a4b65cf44136bd7147967769', build_type='release', built_for='Linux-ubuntu22.04.x86_64'. | |
[redis] | 3:M 12 Oct 2023 17:50:05.417 * <redisgears_2> Registered backend: js. | |
[redis] | 3:M 12 Oct 2023 17:50:05.417 * Module 'redisgears_2' loaded from /opt/redis-stack/lib/redisgears.so | |
[redis] | 3:M 12 Oct 2023 17:50:05.418 * Server initialized | |
[redis] | 3:M 12 Oct 2023 17:50:05.418 * Ready to accept connections tcp | |
podman start -a netalias_app_1 | |
podman start -a netalias_data_1 | |
[data] | All data transferred. Waiting for the last reply... | |
[data] | Last reply received from server. | |
[data] | errors: 0, replies: 1 | |
Traceback (most recent call last): | |
File "/usr/lib/python3.11/site-packages/redis/connection.py", line 611, in connect | |
sock = self.retry.call_with_retry( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/retry.py", line 46, in call_with_retry | |
return do() | |
^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/connection.py", line 612, in <lambda> | |
lambda: self._connect(), lambda error: self.disconnect(error) | |
^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/connection.py", line 645, in _connect | |
for res in socket.getaddrinfo( | |
^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib64/python3.11/socket.py", line 962, in getaddrinfo | |
for res in _socket.getaddrinfo(host, port, family, type, proto, flags): | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
socket.gaierror: [Errno -2] Name or service not known | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/lib/serve.py", line 47, in <module> | |
value = redis_client.get('my_key') | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/commands/core.py", line 1705, in get | |
return self.execute_command("GET", name) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/client.py", line 1235, in execute_command | |
conn = self.connection or pool.get_connection(command_name, **options) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/usr/lib/python3.11/site-packages/redis/connection.py", line 1387, in get_connection | |
connection.connect() | |
File "/usr/lib/python3.11/site-packages/redis/connection.py", line 617, in connect | |
raise ConnectionError(self._error_message(e)) | |
redis.exceptions.ConnectionError: Error -2 connecting to redis:6379. Name or service not known. | |
exit code: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment