Skip to content

hack/test-cmd.sh:107: executing 'oc login' fails with "error: Missing configuration" #17574

@php-coder

Description

@php-coder

hack/test-cmd.sh has many failures, but looks like the most important is this:

github.com/openshift/origin/test/cmd/cmd-admin-namespace-setup hack/test-cmd.sh:107: executing 'oc login --server='https://172.17.0.2:28443' --certificate-authority='/tmp/openshift/init/openshift.local.config/master/ca.crt' -u test-user -p anything' expecting success 0.21s

go run hack/e2e.go -v -test --test_args='--ginkgo.focus=github\.com\/openshift\/origin\/test\/cmd\/cmd\-admin\-namespace\-setup\shack\/test\-cmd\.sh\:107\:\sexecuting\s\'oc\slogin\s\-\-server\=\'https\:\/\/172\.17\.0\.2\:28443\'\s\-\-certificate\-authority\=\'\/tmp\/openshift\/init\/openshift\.local\.config\/master\/ca\.crt\'\s\-u\stest\-user\s\-p\sanything\'\sexpecting\ssuccess$'

=== BEGIN TEST CASE ===
hack/test-cmd.sh:107: executing 'oc login --server='https://172.17.0.2:28443' --certificate-authority='/tmp/openshift/init/openshift.local.config/master/ca.crt' -u test-user -p anything' expecting success
FAILURE after 0.209s: hack/test-cmd.sh:107: executing 'oc login --server='https://172.17.0.2:28443' --certificate-authority='/tmp/openshift/init/openshift.local.config/master/ca.crt' -u test-user -p anything' expecting success: the command returned the wrong error code
There was no output from the command.
Standard error from the command:
error: Missing configuration - verify you have provided the correct host and port and that the server is currently running.
error: Missing configuration
=== END TEST CASE ===

The log is here: https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17512/test_pull_request_origin_cmd/6902/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions