First, a couple easier fixes to edgeNodeFiles.sh that are also important:
[x] The way edgeNodeFiles.sh parses the cmd line args, if a user mistake is made in a flag it prints "ERROR: Unknown node type". I think this can be fixed by adding another case -*) that exits with an error like "invalid flag"
[x] edgeNodeFiles.sh echoes the cloudctl login ... cmd it is going to run, but in the echo statement it needs to replace the password with ******
[x] Fix typo in echo "Getting penShift certificate..."
The input checking and cloutctl login was successful, then:
default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.comOCP_DOCKER_HOST=default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.com
OCP_USER=admin
OCP_TOKEN=PW-FL9hjR02R68qsP4sJlxt58L3PrrjEC7z-qebifboB
Getting penShift certificate...
depth=1 CN = ingress-operator@1586925810
verify error:num=19:self signed certificate in certificate chain
DONE
Get ocp.crt
Detected OS is Linux, adding ocp.crt to docker...
Docker restarted
Logging in to OpenShift image registry...
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
ERROR: Failed to login to OpenShift image registry
MacOS
Same inputs and cmd, but slightly different error:
default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.comOCP_DOCKER_HOST=default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.com
OCP_USER=admin
OCP_TOKEN=FPLZgbibLVPVDzZZTXn6mgeqcciqFbxL2v0m026UZ9Vx
Getting penShift certificate...
depth=1 CN = ingress-operator@1586925810
verify error:num=19:self signed certificate in certificate chain
verify return:0
DONE
Get ocp.crt
Detected OS is Mac OS, adding ocp.crt to docker...
Docker restarted
Logging in to OpenShift image registry...
INFO[0007] Error logging in to v2 endpoint, trying next endpoint: Get https://default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.com/v2/: x509: certificate signed by unknown authority
Get https://default-route-openshift-image-registry.apps.rested-squid.purple-chesterfield.com/v2/: x509: certificate signed by unknown authority
ERROR: Failed to login to OpenShift image registry
First, a couple easier fixes to
edgeNodeFiles.sh
that are also important:edgeNodeFiles.sh
parses the cmd line args, if a user mistake is made in a flag it prints "ERROR: Unknown node type". I think this can be fixed by adding another case-*)
that exits with an error like "invalid flag"edgeNodeFiles.sh
echoes thecloudctl login ...
cmd it is going to run, but in the echo statement it needs to replace the password with******
echo "Getting penShift certificate..."
Now for the docker login issues:
Linux:
Had these env vars set and ran this cmd:
The input checking and cloutctl login was successful, then:
MacOS
Same inputs and cmd, but slightly different error: