[
https://issues.jboss.org/browse/JBIDE-22803?page=com.atlassian.jira.plugi...
]
Dmitrii Bocharov commented on JBIDE-22803:
------------------------------------------
[~jcantrill] [~adietish] [~jeffmaury] tried to find out how to get the version of the
OpenShift Origin Server, but found nothing implemented yes and it seems
not-so-easy-to-solve problem.
I tried watching projects with [the latest
v1.3.0|https://github.com/openshift/origin/releases/tag/v1.3.0] and it works! That's
great!
I also tried with
https://console.engint.openshift.com and the version of OS installed
there doesn't support this feature (in spite of OpenShift Master:
v3.2.1.15-8-gc402626). I tried to debug and what i notices is that
org.jboss.tools.openshift.internal.core.WatchManager.WatchListener error method is called
without stopping (because it tries to restart(); all the time). And i have an idea how
solve the question of whether the feature is available or not. If we look at response
variable of
com.openshift.internal.restclient.okhttp.WatchClient.WatchEndpoint.onFailure(IOException,
Response) then we'll see the following:
Response{protocol=http/1.1, code=200, message=OK,
url=https://console.engint.openshift.com/oapi/v1/projects?watch=true&}
I understand that it's a dirty hack, but we can retrieve this url (by
response.request().url()) and analyze the code. And, for example, if this response
repeats, say, 3 times, then we understand that the feature is not available. I see how
cheaty it is, but it should work
When OS projects are created and deleted, seems Openshift explorer
restores non existing values
-----------------------------------------------------------------------------------------------
Key: JBIDE-22803
URL:
https://issues.jboss.org/browse/JBIDE-22803
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.4.1.AM2
Reporter: Jeff MAURY
Assignee: Dmitrii Bocharov
Labels: explorer, openshift, openshift_v3
Fix For: 4.4.2.AM2
Attachments: after application creation.png, after build finished.png, Openshift
Web Console.png, screenshot-1.png
EXEC: create an Openshift project
EXEC: expand it
EXEC: Create an application in this project (nodejs-example)
ASSERT: wait for the pod to be available
EXEC: delete the Openshit project
EXEC: create an Openshift project (using the same name. You may have to repeat this step
as you may got error that it still exists)
EXEC: expand it
EXEC: Create an application in this project (nodejs-example)
EXEC: expand the nodejs-example node
ASSERT: you should see 2 pods the old one and the build pod you just created:
[^screenshot-1.png]
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)