sclorg / container-common-scripts

Apache License 2.0
20 stars 45 forks source link

Add missing Dockerfile.rhel9 for Makefile target failures #272

Closed phracek closed 2 years ago

phracek commented 2 years ago

This pull request adds a missing test for container-common-scripts Makefile target failures.

Signed-off-by: Petr "Stone" Hracek phracek@redhat.com

phracek commented 2 years ago

[test]

phracek commented 2 years ago

s2i-nodejs-container failed for this reason in all RHEL versions. It should be fixed by https://github.com/sclorg/s2i-nodejs-container/pull/342

15:38:44                 out:  [PASSED] for 'hw' test_build_express_webapp
15:38:44                 out:  [PASSED] for 'clients' express
15:38:44                 out:  [FAILED] for 'clients' pino
15:38:44                 out:  [PASSED] for 'clients' prom-client
15:38:44                 out:  [PASSED] for 'clients' opossum
15:38:44                 out:  [PASSED] for 'clients' kube-service-bindings
15:38:44                 out:  [PASSED] for 'binary' test_run_binary_application
phracek commented 2 years ago

[test]

phracek commented 2 years ago

Fedora s2i-nodejs-container failure is caused by

08:34:29                 out:  [PASSED] for 'clients' express
08:34:29                 out:  [FAILED] for 'clients' pino
08:34:29                 out:  [PASSED] for 'clients' prom-client

RHEL9 postgresql-container failed for this reason test_slave_visibility:

+ test_slave_visibility
[snipped]
++ postgresql_cmd -c 'select client_addr from pg_stat_replication;'
++ docker run --rm -e PGPASSWORD=master rhel9/postgresql-13:1 psql postgresql://master@10.88.0.159:5432/postgres -c 'select client_addr from pg_stat_replication;'
++ grep 10.88.0.155
++ true
+ result=
+ [[ -n '' ]]
+ [[ 29 == \3\0 ]]
+ sleep 1
+ for i in $(seq $max_attempts)
++ postgresql_cmd -c 'select client_addr from pg_stat_replication;'
++ grep 10.88.0.155
++ docker run --rm -e PGPASSWORD=master rhel9/postgresql-13:1 psql postgresql://master@10.88.0.159:5432/postgres -c 'select client_addr from pg_stat_replication;'
The 10.88.0.155 failed to register in MASTER
Dumping logs for 1aa477e5bb63c14943978b5f05a8555449fedc8dd745462e59f8024445396dd1
++ true
+ result=
+ [[ -n '' ]]
+ [[ 30 == \3\0 ]]
+ echo 'The 10.88.0.155 failed to register in MASTER'
+ echo 'Dumping logs for 1aa477e5bb63c14943978b5f05a8555449fedc8dd745462e59f8024445396dd1'
+ docker logs 1aa477e5bb63c14943978b5f05a8555449fedc8dd745462e59f8024445396dd1
Waiting for PostgreSQL master (postgresql-master) to accept connections ...
Waiting for PostgreSQL master (postgresql-master) to accept connections ...
 ?column? 
psql: error: could not connect to server: Connection refused
Is the server running on host "postgresql-master" (10.88.0.154) and accepting
TCP/IP connections on port 5432?
----------
        1
(1 row)

Initializing PostgreSQL slave ...
Starting server...
phracek commented 2 years ago

[test]

phracek commented 2 years ago

Rebased and separated into 3 commits.