[JBoss JIRA] (JBIDE-26876) Explorer: ctx menu "Show In" > "Web Console" fails with "unauthorized" for CRC
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26876?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26876:
-------------------------------------
Summary: Explorer: ctx menu "Show In" > "Web Console" fails with "unauthorized" for CRC (was: Explorer: ctx menu "Show In" > "Web Console" for CRC fails with "unauthorized")
> Explorer: ctx menu "Show In" > "Web Console" fails with "unauthorized" for CRC
> ------------------------------------------------------------------------------
>
> Key: JBIDE-26876
> URL: https://issues.jboss.org/browse/JBIDE-26876
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: have a connection to a running crc instance
> # EXEC: in Explorer: select the connection and pick *Show In > Web Console*
> Result:
> Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
> {code}
> {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {
>
> },
> "status": "Failure",
> "message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
> "reason": "Forbidden",
> "details": {
>
> },
> "code": 403
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26876) Explorer: Show In > Web Console for CRC fails with "unauthorized"
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26876?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26876 at 9/27/19 2:48 PM:
-------------------------------------------------------------------
To have these url mappings done right, we'd need to know the version of the OpenShift that we're talking to. For CRC, this seems not to be doable at the moment unless we simply assume that if the client has no OpenShift cluster version, it'll be OpenShift 4: JBIDE-26877
was (Author: adietish):
To have these url mappings done right, we'd need to know the version of the OpenShift that we're talking to. For CRC, this seems not to be doable at the moment: JBIDE-26877
> Explorer: Show In > Web Console for CRC fails with "unauthorized"
> -----------------------------------------------------------------
>
> Key: JBIDE-26876
> URL: https://issues.jboss.org/browse/JBIDE-26876
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: have a connection to a running crc instance
> # EXEC: in Explorer: select the connection and pick *Show In > Web Console*
> Result:
> Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
> {code}
> {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {
>
> },
> "status": "Failure",
> "message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
> "reason": "Forbidden",
> "details": {
>
> },
> "code": 403
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26877) Connection, OpenShift 4/CRC: wont show OpenShift master version
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26877?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26877 at 9/27/19 10:44 AM:
--------------------------------------------------------------------
This problem exists not only for CRC but also for the OpenShift 4 cluster that CHE QE is using. So this is not CRC specific.
The very same problem can be observed with the oc command line - there's apparently no OpenShift version being reported:
{code}
$ ~/.crc/bin/oc get clusterversion
Error from server (Forbidden): clusterversions.config.openshift.io is forbidden: User "andre" cannot list resource "clusterversions" in API group "config.openshift.io" at the cluster scope
$ ~/.crc/bin/oc version
Client Version: v4.2.0
Kubernetes Version: v1.13.4+f61b934
{code}
was (Author: adietish):
This problem exists not only for CRC but also for the OpenShift 4 cluster that CHE QE is using. So this is not CRC specific.
The very same problem can be observed with the oc command line - there's apparently no OpenShift version being reported:
```
$ ~/.crc/bin/oc get clusterversion
Error from server (Forbidden): clusterversions.config.openshift.io is forbidden: User "andre" cannot list resource "clusterversions" in API group "config.openshift.io" at the cluster scope
$ ~/.crc/bin/oc version
Client Version: v4.2.0
Kubernetes Version: v1.13.4+f61b934
```
> Connection, OpenShift 4/CRC: wont show OpenShift master version
> ---------------------------------------------------------------
>
> Key: JBIDE-26877
> URL: https://issues.jboss.org/browse/JBIDE-26877
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.14.x
>
> Attachments: image-2019-09-27-15-47-36-396.png, properties-crc.png
>
>
> Here's how OpenShift Master Version looks for CRC (OpenShift 4):
> !properties-crc.png!
> Here's how OpenShift Master Version is reported for employee.openshift.com (OpenShift 3.11 currently):
> !image-2019-09-27-15-47-36-396.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26877) Connection, OpenShift 4/CRC: wont show OpenShift master version
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26877?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26877 at 9/27/19 10:43 AM:
--------------------------------------------------------------------
This problem exists not only for CRC but also for the OpenShift 4 cluster that CHE QE is using. So this is not CRC specific.
The very same problem can be observed with the oc command line - there's apparently no OpenShift version being reported:
```
$ ~/.crc/bin/oc get clusterversion
Error from server (Forbidden): clusterversions.config.openshift.io is forbidden: User "andre" cannot list resource "clusterversions" in API group "config.openshift.io" at the cluster scope
$ ~/.crc/bin/oc version
Client Version: v4.2.0
Kubernetes Version: v1.13.4+f61b934
```
was (Author: adietish):
This problem exists not only for CRC but also for the OpenShift 4 cluster that CHE QE is using. So this is not CRC specific.
> Connection, OpenShift 4/CRC: wont show OpenShift master version
> ---------------------------------------------------------------
>
> Key: JBIDE-26877
> URL: https://issues.jboss.org/browse/JBIDE-26877
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.14.x
>
> Attachments: image-2019-09-27-15-47-36-396.png, properties-crc.png
>
>
> Here's how OpenShift Master Version looks for CRC (OpenShift 4):
> !properties-crc.png!
> Here's how OpenShift Master Version is reported for employee.openshift.com (OpenShift 3.11 currently):
> !image-2019-09-27-15-47-36-396.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26876) Explorer: Show In > Web Console for CRC fails with "unauthorized"
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26876?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26876:
------------------------------------------
To have these url mappings done right, we'd need to know the version of the OpenShift that we're talking to. For CRC, this seems not to be doable at the moment: JBIDE-26877
> Explorer: Show In > Web Console for CRC fails with "unauthorized"
> -----------------------------------------------------------------
>
> Key: JBIDE-26876
> URL: https://issues.jboss.org/browse/JBIDE-26876
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: have a connection to a running crc instance
> # EXEC: in Explorer: select the connection and pick *Show In > Web Console*
> Result:
> Browser is opened to https://api.crc.testing:6443/console. Browser then displays:
> {code}
> {
> "kind": "Status",
> "apiVersion": "v1",
> "metadata": {
>
> },
> "status": "Failure",
> "message": "forbidden: User \"system:anonymous\" cannot get path \"/console\"",
> "reason": "Forbidden",
> "details": {
>
> },
> "code": 403
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26877) Connection, OpenShift 4/CRC: wont show OpenShift master version
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26877?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26877:
------------------------------------------
The reason is that the url for reporting the openshift version has disappeared/is not accessible for CRC (Online OpenShift 4?).
The url where the openshift-restclient-java is retrieving the version from is at *<host>/version/openshift*. Look here: https://github.com/openshift/openshift-restclient-java/blob/master/src/ma...
In CRC you get the following 404 error:
{code}
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {
},
"code": 404
}
{code}
For OpenShift 3, you get the following JSON back (employee.openshift.com):
{code}
{
"major": "3",
"minor": "11+",
"gitVersion": "v3.11.43",
"gitCommit": "647ac05cc9",
"gitTreeState": "",
"buildDate": "2018-11-09T15:12:26Z",
"goVersion": "",
"compiler": "",
"platform": ""
}
{code}
> Connection, OpenShift 4/CRC: wont show OpenShift master version
> ---------------------------------------------------------------
>
> Key: JBIDE-26877
> URL: https://issues.jboss.org/browse/JBIDE-26877
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.14.x
>
> Attachments: image-2019-09-27-15-47-36-396.png, properties-crc.png
>
>
> Here's how OpenShift Master Version looks for CRC (OpenShift 4):
> !properties-crc.png!
> Here's how OpenShift Master Version is reported for employee.openshift.com (OpenShift 3.11 currently):
> !image-2019-09-27-15-47-36-396.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month
[JBoss JIRA] (JBIDE-26877) Connection, OpenShift 4/CRC: wont show OpenShift master version
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26877?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26877:
-------------------------------------
Description:
Here's how OpenShift Master Version looks for CRC (OpenShift 4):
!properties-crc.png!
Here's how OpenShift Master Version is reported for employee.openshift.com (OpenShift 3.11 currently):
!image-2019-09-27-15-47-36-396.png!
was:
Here's how properties looks for employee.openshift.com (OpenShift 3.11 currently):
!image-2019-09-27-15-47-36-396.png!
Here's how these look for CRC (OpenShift 4):
!properties-crc.png!
> Connection, OpenShift 4/CRC: wont show OpenShift master version
> ---------------------------------------------------------------
>
> Key: JBIDE-26877
> URL: https://issues.jboss.org/browse/JBIDE-26877
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.14.x
>
> Attachments: image-2019-09-27-15-47-36-396.png, properties-crc.png
>
>
> Here's how OpenShift Master Version looks for CRC (OpenShift 4):
> !properties-crc.png!
> Here's how OpenShift Master Version is reported for employee.openshift.com (OpenShift 3.11 currently):
> !image-2019-09-27-15-47-36-396.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 1 month