Open xjvs opened 1 year ago
@xjvs Since you are using the microshift
preset which doesn't have user/project API so oc login
not going to work as it works for OCP cluster. After the crc start
you can directly access the cluster using the current context like you used oc get pods -A
.
This might be also something we need to address as part of the startup message. WDYT?
@xjvs Since you are using the
microshift
preset which doesn't have user/project API sooc login
not going to work as it works for OCP cluster. After thecrc start
you can directly access the cluster using the current context like you usedoc get pods -A
.
I didn't know microshift
doesn't support same APIs as OpenShift, then this makes sense, thank you.
General information
crc setup
before starting it (Yes/No)? YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
Can login the cluster with developer or admin account
Actual
Can't login the cluster
Logs
$ oc --loglevel 10 login -u developer https://api.crc.testing:6443 ... I1106 11:34:46.251205 24837 round_trippers.go:466] curl -v -XGET -H "Accept: application/json, /" -H "User-Agent: oc/4.13.0 (linux/amd64) kubernetes/17b7acc" 'https://api.crc.testing:6443/api/v1/namespaces/openshift/configmaps/motd' I1106 11:34:46.251768 24837 round_trippers.go:553] GET https://api.crc.testing:6443/api/v1/namespaces/openshift/configmaps/motd 403 Forbidden in 0 milliseconds I1106 11:34:46.251781 24837 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 0 ms Duration 0 ms I1106 11:34:46.251788 24837 round_trippers.go:577] Response Headers: I1106 11:34:46.251796 24837 round_trippers.go:580] Content-Type: application/json I1106 11:34:46.251803 24837 round_trippers.go:580] Strict-Transport-Security: max-age=31536000; includeSubDomains; preload I1106 11:34:46.251810 24837 round_trippers.go:580] X-Content-Type-Options: nosniff I1106 11:34:46.251817 24837 round_trippers.go:580] X-Kubernetes-Pf-Prioritylevel-Uid: 4ac08f59-f6d0-4b05-a7f5-c688403746ce I1106 11:34:46.251825 24837 round_trippers.go:580] Content-Length: 303 I1106 11:34:46.251832 24837 round_trippers.go:580] Date: Mon, 06 Nov 2023 03:34:46 GMT I1106 11:34:46.251839 24837 round_trippers.go:580] Audit-Id: 422d5040-40d7-4e70-89a5-1507e36ebf02 I1106 11:34:46.251846 24837 round_trippers.go:580] Cache-Control: no-cache, private I1106 11:34:46.251853 24837 round_trippers.go:580] X-Kubernetes-Pf-Flowschema-Uid: da1f47fd-598a-4b76-bdab-3f9006d62158 I1106 11:34:46.251866 24837 request.go:1171] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"configmaps \"motd\" is forbidden: User \"system:anonymous\" cannot get resource \"configmaps\" in API group \"\" in the namespace \"openshift\"","reason":"Forbidden","details":{"name":"motd","kind":"configmaps"},"code":403} error: couldn't get https://api.crc.testing:6443/.well-known/oauth-authorization-server: unexpected response status 404
These steps have been performed, doesn't help.
Please consider posting the output of
crc start --log-level debug
on http://gist.github.com/ and post the link in the issue.