[JBoss JIRA] (JBDS-4784) RHCodeReady fail when run on MacOS 10.14.4
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBDS-4784?page=com.atlassian.jira.plugin.... ]
André Dietisheim edited comment on JBDS-4784 at 10/17/19 4:49 AM:
------------------------------------------------------------------
[~javiervivanco] I strongly believe that your CodeReady installation is corrupt. Your stacktrace shows that it starts with a Filereader trying to extract values from a bundle context and causing an NPE:
{code}
Caused by: java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77
{code}
The code discussed is here: https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.ecli...
{code}
static private String getProperty(String key, String defaultValue) {
String value = Activator.getContext().getProperty(key);
if (value == null) {
value = defaultValue;
}
return value;
}
{code}
If you reinstall CodeReady Studio, do you still get this error? I strongly expect that you wont.
was (Author: adietish):
[~javiervivanco] I strongly believe that your CodeReady installation is corrupt. Your stacktrace shows that it starts with a Filereader trying to extract values from a bundle context and causing an NPE:
{code}
Caused by: java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77
{code}
The code discussed is here: https://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.ecli...
{code}
static private String getProperty(String key, String defaultValue) {
String value = Activator.getContext().getProperty(key);
if (value == null) {
value = defaultValue;
}
return value;
}
{code}
If you reinstall CodeReady Studio, do you still get this error? I strongly believe that you wont.
> RHCodeReady fail when run on MacOS 10.14.4
> ------------------------------------------
>
> Key: JBDS-4784
> URL: https://issues.jboss.org/browse/JBDS-4784
> Project: Red Hat CodeReady Studio (devstudio)
> Issue Type: Bug
> Components: product
> Affects Versions: 12.12.0.GA
> Environment: MacOS 10.14.4
> java 11.0.1 2018-10-16 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
> Reporter: Javier Vivanco
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 12.13.0.GA
>
>
> When open the IDE i see.
> {code}
> $ /Applications/codereadystudio/codereadystudio.app/Contents/MacOS/codereadystudio
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> Exception in thread "Thread-7" java.lang.ExceptionInInitializerError
> at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.download(RepositoryTransport.java:83)
> at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.download(RepositoryTransport.java:158)
> at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.handleRemoteIndexFile(AbstractRepositoryManager.java:713)
> at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadIndexFile(AbstractRepositoryManager.java:707)
> at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:649)
> at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:110)
> at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:105)
> at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.getAvailableRepositories(UpdateChecker.java:152)
> at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker.checkForUpdates(UpdateChecker.java:130)
> at org.eclipse.equinox.internal.p2.updatechecker.UpdateChecker$UpdateCheckThread.run(UpdateChecker.java:78)
> Caused by: java.lang.NullPointerException
> at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.getProperty(FileReader.java:67)
> at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.<clinit>(FileReader.java:77)
> ... 10 more
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> ***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[JBoss JIRA] (JBIDE-26848) CRC server adapter: existing connection is not updated
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26848?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26848:
------------------------------------------
The following code in jbosstools-openshift makes no sense, it tries to update a connection by itself: https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/or...
{code:title=ConfigureCRCFrameworksListener}
} else {
con.setUsername(user);
con.setPassword(pass);
ConnectionsRegistrySingleton.getInstance().update(con, con);
}
{code}
> CRC server adapter: existing connection is not updated
> ------------------------------------------------------
>
> Key: JBIDE-26848
> URL: https://issues.jboss.org/browse/JBIDE-26848
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Major
> Labels: crc_server_adapter
> Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: Have CRC server adapter
> # ASSERT: in openshift explorer: have connection
> # EXEC: in cmd-line: kill ~/.crc
> # EXEC: start server adapter
> # ASSERT: it complains that crc is not set up, asks if it should set it up
> # EXEC: ok to set it up
> # ASSERT: server is [started]
> # EXEC: refresh connection in openshift explorer
> Result:
> Connection wont work, it's an outdated connection to a crc cluster that doesnt exist any more. Server adapter didnt update the connection.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[JBoss JIRA] (JBIDE-26869) CRC server adapter: OpenShift connection that is created is unusable at times
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26869?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26869:
------------------------------------------
A bug related to this one is we have to address is that refreshing the Eclipse connection to crc doesnt help: JBIDE-26899
> CRC server adapter: OpenShift connection that is created is unusable at times
> -----------------------------------------------------------------------------
>
> Key: JBIDE-26869
> URL: https://issues.jboss.org/browse/JBIDE-26869
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Environment: CRC Beta5
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Fix For: 4.13.0.Final
>
> Attachments: crc-connection-error.mp4, start-crc-error-openshift-conn.mp4
>
>
> *Steps* - not reproducibe at 100%, happens from time to time:
> # ASSERT: have ~/.crc folder killed
> # EXEC: create new CRC server adapter & Start it
> # ASSERT: OpenShift connection is created
> *Result:*
> Connection fails to authorize, reports that it cannot access resources using system:anonymous. Refreshing the connection doesn't help, so it's apparently not a timing issue (ex. creating the connection before the cluster is fully up and running)
> {code}
> com.openshift.restclient.authorization.ResourceForbiddenException: forbidden: User "system:anonymous" cannot get path "/oauth/authorize" forbidden: User "system:anonymous" cannot get path "/oauth/authorize"
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:111)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.tryAuth(OpenShiftAuthenticator.java:109)
> at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.authenticate(OpenShiftAuthenticator.java:62)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.kt:213)
> at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:102)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
> at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
> at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
> at okhttp3.RealCall.execute(RealCall.kt:66)
> at com.openshift.internal.restclient.DefaultClient.request(DefaultClient.java:315)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:307)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
> at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
> at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:423)
> at com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
> at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
> at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureOpenshift(ConfigureCRCFrameworksListener.java:102)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener.configureFrameworks(ConfigureCRCFrameworksListener.java:73)
> at org.jboss.tools.openshift.internal.crc.server.core.listeners.ConfigureCRCFrameworksListener$1.run(ConfigureCRCFrameworksListener.java:66)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[JBoss JIRA] (JBIDE-26899) Refreshing non-functional connection to CRC doesnt help (need to create new)
by André Dietisheim (Jira)
André Dietisheim created JBIDE-26899:
----------------------------------------
Summary: Refreshing non-functional connection to CRC doesnt help (need to create new)
Key: JBIDE-26899
URL: https://issues.jboss.org/browse/JBIDE-26899
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.13.0.Final
Environment: CRC
Reporter: André Dietisheim
*Steps* - not reproducibe at 100%, happens from time to time:
# ASSERT: have ~/.crc folder killed
# EXEC: create new CRC server adapter & Start it
# ASSERT: OpenShift connection is created
# ASSERT: Connection fails to authorize, reports that it cannot access resources using system:anonymous.
# EXEC: try to login with *oc login*. If oc reports *Error from server (InternalError): Internal error occurred: unexpected response: 400*, repeat until it succeeds (waiting required)
# EXEC: Once oc login succeeds: refresh the connection in Eclipse
Result:
Connecting still fails with the same error.
Expected result:
Refreshing the connection should succeed once the server is fully up and running and oc succeeds to log in.
# EXEC: edit the connection (ex. remove a character from username and add it back again)
Result:
Connecting succeeds
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[JBoss JIRA] (JBIDE-26899) Refreshing non-functional connection to CRC doesnt help (need to create new)
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26899?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26899:
-------------------------------------
Fix Version/s: 4.13.0.Final
> Refreshing non-functional connection to CRC doesnt help (need to create new)
> ----------------------------------------------------------------------------
>
> Key: JBIDE-26899
> URL: https://issues.jboss.org/browse/JBIDE-26899
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.Final
> Environment: CRC
> Reporter: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> *Steps* - not reproducibe at 100%, happens from time to time:
> # ASSERT: have ~/.crc folder killed
> # EXEC: create new CRC server adapter & Start it
> # ASSERT: OpenShift connection is created
> # ASSERT: Connection fails to authorize, reports that it cannot access resources using system:anonymous.
> # EXEC: try to login with *oc login*. If oc reports *Error from server (InternalError): Internal error occurred: unexpected response: 400*, repeat until it succeeds (waiting required)
> # EXEC: Once oc login succeeds: refresh the connection in Eclipse
> Result:
> Connecting still fails with the same error.
> Expected result:
> Refreshing the connection should succeed once the server is fully up and running and oc succeeds to log in.
> # EXEC: edit the connection (ex. remove a character from username and add it back again)
> Result:
> Connecting succeeds
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[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 10/17/19 4:12 AM:
--------------------------------------------------------------------
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code (look for the error message *"OpenShift Version not found (must be logged in to cluster as admin)"*): https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{code}
was (Author: adietish):
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code (look for the error message *"OpenShift Version not found (must be logged in to cluster as admin): %v"*): https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{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)
4 years, 11 months
[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 10/17/19 4:11 AM:
--------------------------------------------------------------------
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code (look for the error message "OpenShift Version not found (must be logged in to cluster as admin): %v"): https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{code}
was (Author: adietish):
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code: https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{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)
4 years, 11 months
[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 10/17/19 4:11 AM:
--------------------------------------------------------------------
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code (look for the error message *"OpenShift Version not found (must be logged in to cluster as admin): %v"*): https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{code}
was (Author: adietish):
The oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code (look for the error message "OpenShift Version not found (must be logged in to cluster as admin): %v"): https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{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)
4 years, 11 months
[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 oc command line reports the openshift version if you're logging in as admin. Further details are insightable in their code: https://github.com/openshift/oc/blob/master/pkg/cli/version/version.go#L110
{code}
var clusterOperator *configv1.ClusterOperator
clusterOperator, serverErr = o.oClient.ClusterOperators().Get("openshift-apiserver", metav1.GetOptions{})
// error here indicates logged in as non-admin, log and move on
if serverErr != nil {
switch {
case kerrors.IsForbidden(serverErr), kerrors.IsNotFound(serverErr):
klog.V(5).Infof("OpenShift Version not found (must be logged in to cluster as admin): %v", serverErr)
serverErr = nil
}
}
if clusterOperator != nil {
for _, ver := range clusterOperator.Status.Versions {
if ver.Name == "operator" {
// openshift-apiserver does not report version,
// clusteroperator/openshift-apiserver does, and only version number
versionInfo.OpenShiftVersion = ver.Version
}
}
}
}
{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)
4 years, 11 months