sclorg / container-common-scripts

Apache License 2.0
21 stars 45 forks source link

Failure in case of OpenShift 4 connect #313

Closed phracek closed 1 year ago

phracek commented 1 year ago

In case of we are not able to connect to the OpenShift 4, then we have to fail and not go through all tests.

SEee http://artifacts.osci.redhat.com/testing-farm/f2a85803-9b52-4879-83da-76cb4bf6194c/

Log is:

Setting OCP4 client
PATH /usr/local/oc-v4/bin
Binary oc found in /usr/local/oc-v4/bin
Unable to connect to the server: dial tcp 10.0.96.243:443: connect: connection timed out
Client Version: 4.10.42
Server Version: 4.8.46
Kubernetes Version: v1.21.11+6b3cbdd
PATH set correctly, binary oc found in version 4: /usr/local/oc-v4/bin/oc
Login to OpenShift 4 is DONE
Client Version: 4.10.42
Server Version: 4.8.46
Kubernetes Version: v1.21.11+6b3cbdd
In project default on server https://api.core-serv-ocp.hosted.psi.rdu2.redhat.com:6443

svc/openshift - kubernetes.default.svc.cluster.local
svc/kubernetes - 172.30.0.1:443 -> 6443

View details with 'oc describe <resource>/<name>' or list resources with 'oc get all'.
The function is valid only for CVP pipeline.

commit 4d7b09cc9f8e64c19f0d6dc8561ca9f2eaeb5e5c
Author: Petr Kubat <pkubat@redhat.com>
Date:   Thu Nov 3 10:45:41 2022 +0100

    fix incorrect chmod of /etc

    Related: https://bugzilla.redhat.com/show_bug.cgi?id=2139274

-----------------------------------------------
Running test test_php_integration (starting at 2022-11-29 12:37:10+01:00) ... 
-----------------------------------------------
Now using project "sclorg-test-4756" on server "https://api.core-serv-ocp.hosted.psi.rdu2.redhat.com:6443".

You can add applications to this project with the 'new-app' command. For example, try:

    oc new-app rails-postgresql-example

to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:

    kubectl create deployment hello-node --image=k8s.gcr.io/e2e-test-images/agnhost:2.33 -- /agnhost serve-hostname

secret/6340056-core-services-apps-ci-pull-secret created
Uploading image ubi8/php-74:1 as php-74:7.4 into OpenShift internal registry.
OCP4 loging address is default-route-openshift-image-registry.apps.core-serv-ocp.hosted.psi.rdu2.redhat.com.
error: no token is currently in use for this session
Password: Error: error getting username and password: error reading password: inappropriate ioctl for device
warning: Cannot check if git requires authentication.
W1129 12:37:15.809305   32971 dockerimagelookup.go:300] container image remote registry lookup failed: you may not have access to the container image "docker.io/library/php-74:7.4"
error: unable to locate any images in image streams, local docker images with name "php-74:7.4"