[JBoss JIRA] (JBIDE-22194) Select template: inform user of his mistake in a more friendly way
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22194?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-22194:
-----------------------------------------------
[~jcantrill], [~fbricon], please take a look at the pull request.
> Select template: inform user of his mistake in a more friendly way
> ------------------------------------------------------------------
>
> Key: JBIDE-22194
> URL: https://issues.jboss.org/browse/JBIDE-22194
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Reporter: Viacheslav Kabanovich
> Assignee: Viacheslav Kabanovich
> Fix For: 4.4.0.Alpha1
>
>
> When user selects a json file with wrong resource instead of template, he should be informed of his mistake in a more friendly way.
> It is a ClassCastException now that user sees in an Error dialog, and he may be confused if it is his mistake or an application bug. Let's not log, nor show exception in this case, but just display what kind of resource user selected and what resource was expected.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich commented on JBIDE-22191:
-----------------------------------------------
I created new issue https://issues.jboss.org/browse/JBIDE-22194 about reporting user that he selected a wrong resource.
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22194) Select template: inform user of his mistake in a more friendly way
by Viacheslav Kabanovich (JIRA)
Viacheslav Kabanovich created JBIDE-22194:
---------------------------------------------
Summary: Select template: inform user of his mistake in a more friendly way
Key: JBIDE-22194
URL: https://issues.jboss.org/browse/JBIDE-22194
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 4.4.0.Alpha1
When user selects a json file with wrong resource instead of template, he should be informed of his mistake in a more friendly way.
It is a ClassCastException now that user sees in an Error dialog, and he may be confused if it is his mistake or an application bug. Let's not log, nor show exception in this case, but just display what kind of resource user selected and what resource was expected.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22193) Can't deploy locally built docker images
by Fred Bricon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22193?page=com.atlassian.jira.plugi... ]
Fred Bricon commented on JBIDE-22193:
-------------------------------------
So, among other things, it seems the "Run As > Docker Image build" didn't actually push the bits to the docker registry (image size is 0B)
When selecting that docker image in the Docker explorer and doing Push, an error occurs :
!http://content.screencast.com/users/fbricon/folders/Jing/media/5677990a-d5b9-44c1-aca8-19cd271e1a7f/00000387.png|width=700!
[~xcoulon] do you mind explaining what exact steps I should be following?
> Can't deploy locally built docker images
> ----------------------------------------
>
> Key: JBIDE-22193
> URL: https://issues.jboss.org/browse/JBIDE-22193
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.Final
> Reporter: Fred Bricon
> Priority: Blocker
>
> I can't deploy locally built docker images, pushed to the CDK docker registry, to OpenShift
> Trying to adapt the steps from https://github.com/redhat-developer-tooling/openshift-vagrant#how-to-run-... to Eclipse, I can't seem to be able to deploy anything
> Here's what the CLI generates from
> {quote}
> eval "$(vagrant service-manager env docker)"
> $ oc login 10.1.2.2:8443 -u openshift-dev -p devel
> Login successful.
> $ oc new-project my-ghost
> Now using project "my-ghost" on server "https://10.1.2.2:8443".
> $ docker pull ghost
> $ docker tag ghost hub.openshift.rhel-cdk.10.1.2.2.xip.io/my-ghost/ghost
> $ docker login -u openshift-dev -p `oc whoami -t` -e foo(a)bar.com hub.openshift.rhel-cdk.10.1.2.2.xip.io
> $ docker push hub.openshift.rhel-cdk.10.1.2.2.xip.io/my-ghost/ghost
> $ oc new-app --image-stream=ghost --name=ghost
> $ oc expose service ghost --hostname=my-ghost-blog.rhel-cdk.10.1.2.2.xip.io
> {quote}
> Deployment Config
> {noformat}
> {
> "kind" : "DeploymentConfig",
> "apiVersion" : "v1",
> "metadata" : {
> "name" : "ghost",
> "namespace" : "my-ghost",
> "selfLink" : "/oapi/v1/namespaces/my-ghost/deploymentconfigs/ghost",
> "uid" : "a7dafee5-03c8-11e6-82b7-525400ac6ae1",
> "resourceVersion" : "29849",
> "creationTimestamp" : "2016-04-16T11:45:02Z",
> "labels" : {"app" : "ghost"},
> "annotations" : {"openshift.io/generated-by" : "OpenShiftNewApp"}
> },
> "spec" : {
> "strategy" : {
> "type" : "Rolling",
> "rollingParams" : {
> "updatePeriodSeconds" : 1,
> "intervalSeconds" : 1,
> "timeoutSeconds" : 600,
> "maxUnavailable" : "25%",
> "maxSurge" : "25%"
> }
> },
> "triggers" : [
> {"type" : "ConfigChange"},
> {
> "type" : "ImageChange",
> "imageChangeParams" : {
> "automatic" : true,
> "containerNames" : ["ghost"],
> "from" : {
> "kind" : "ImageStreamTag",
> "namespace" : "my-ghost",
> "name" : "ghost:latest"
> },
> "lastTriggeredImage" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8"
> }
> }
> ],
> "replicas" : 1,
> "selector" : {
> "app" : "ghost",
> "deploymentconfig" : "ghost"
> },
> "template" : {
> "metadata" : {
> "labels" : {
> "app" : "ghost",
> "deploymentconfig" : "ghost"
> },
> "annotations" : {
> "openshift.io/container.ghost.image.entrypoint" : "[\"/entrypoint.sh\",\"npm\",\"start\"]",
> "openshift.io/generated-by" : "OpenShiftNewApp"
> }
> },
> "spec" : {
> "volumes" : [{"name" : "ghost-volume-1"}],
> "containers" : [{
> "name" : "ghost",
> "image" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8",
> "ports" : [{
> "containerPort" : 2368,
> "protocol" : "TCP"
> }],
> "volumeMounts" : [{
> "name" : "ghost-volume-1",
> "mountPath" : "/var/lib/ghost"
> }],
> "terminationMessagePath" : "/dev/termination-log",
> "imagePullPolicy" : "Always"
> }],
> "restartPolicy" : "Always",
> "terminationGracePeriodSeconds" : 30,
> "dnsPolicy" : "ClusterFirst"
> }
> }
> },
> "status" : {
> "latestVersion" : 1,
> "details" : {"causes" : [{"type" : "ConfigChange"}]}
> }
> }
> {noformat}
> Image Stream
> {noformat}
> {
> "kind" : "ImageStream",
> "apiVersion" : "v1",
> "metadata" : {
> "name" : "ghost",
> "namespace" : "my-ghost",
> "selfLink" : "/oapi/v1/namespaces/my-ghost/imagestreams/ghost",
> "uid" : "98a32494-03c8-11e6-82b7-525400ac6ae1",
> "resourceVersion" : "29842",
> "creationTimestamp" : "2016-04-16T11:44:37Z",
> "annotations" : {"openshift.io/image.dockerRepositoryCheck" : "2016-04-16T11:44:37Z"}
> },
> "status" : {
> "dockerImageRepository" : "172.30.178.20:5000/my-ghost/ghost",
> "tags" : [{
> "tag" : "latest",
> "items" : [{
> "created" : "2016-04-16T11:44:37Z",
> "dockerImageReference" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8",
> "image" : "sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8"
> }]
> }]
> }
> }
> {noformat}
> When following these steps in Eclipse, no deployment occurs. Going to the web console et clicking deploy on the Deployment, no image is found to deploy.
> {quote}
> - Clone https://github.com/burrsutter/cdk_helloworlds/
> - import java/wildflyswarm_helloworld as a Maven Project
> - Run a Maven build (Run As > Maven > package)
> - Edit Dockerfile: replace `FROM rhel7` with `FROM centos`
> - right click on Dockerfile > Run As > Docker Image build
> - Select `CDK Server Adapter at localhost` connection
> - Repository Name : hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm
> - from OpenShift explorer, create a fredo project
> - In OpenShift explorer, right-click the fredo project and Deploy Docker Image...
> - select hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm:latest for the image
> - swarm as resource name
> - click next
> - Deployment configuration & scalability page displays, click next
> - click add route button, click finish
> - resources are created, but no deployment happens
> {quote}
> Here are the resources created from Eclipse:
> Deployment Config
> {noformat}
> {
> "metadata" : {
> "name" : "swarm",
> "namespace" : "fredo",
> "selfLink" : "/oapi/v1/namespaces/fredo/deploymentconfigs/swarm",
> "uid" : "2e9d1df4-03cc-11e6-82b7-525400ac6ae1",
> "resourceVersion" : "30206",
> "creationTimestamp" : "2016-04-16T12:10:17Z",
> "labels" : {"deploymentconfig" : "swarm"},
> "annotations" : {"openshift.io/generated-by" : "jbosstools-openshift"}
> },
> "spec" : {
> "strategy" : {
> "type" : "Rolling",
> "rollingParams" : {
> "updatePeriodSeconds" : 1,
> "intervalSeconds" : 1,
> "timeoutSeconds" : 600,
> "maxUnavailable" : "25%",
> "maxSurge" : "25%"
> }
> },
> "triggers" : [
> {"type" : "ConfigChange"},
> {
> "type" : "ImageChange",
> "imageChangeParams" : {
> "automatic" : true,
> "containerNames" : ["swarm"],
> "from" : {
> "kind" : "ImageStreamTag",
> "name" : "swarm:latest"
> }
> }
> }
> ],
> "replicas" : 1,
> "selector" : {"deploymentconfig" : "swarm"},
> "template" : {
> "metadata" : {"labels" : {"deploymentconfig" : "swarm"}},
> "spec" : {
> "containers" : [{
> "name" : "swarm",
> "image" : "fredo/swarm:latest",
> "ports" : [{
> "name" : "8080-tcp",
> "containerPort" : 8080,
> "protocol" : "TCP"
> }],
> "terminationMessagePath" : "/dev/termination-log",
> "imagePullPolicy" : "Always"
> }],
> "restartPolicy" : "Always",
> "terminationGracePeriodSeconds" : 30,
> "dnsPolicy" : "ClusterFirst"
> }
> }
> },
> "apiVersion" : "v1",
> "kind" : "DeploymentConfig"
> }
> {noformat}
> Image Stream
> {noformat}
> {
> "metadata" : {
> "name" : "swarm",
> "namespace" : "fredo",
> "selfLink" : "/oapi/v1/namespaces/fredo/imagestreams/swarm",
> "uid" : "2e42dfc8-03cc-11e6-82b7-525400ac6ae1",
> "resourceVersion" : "30202",
> "creationTimestamp" : "2016-04-16T12:10:16Z",
> "annotations" : {"openshift.io/generated-by" : "jbosstools-openshift"}
> },
> "spec" : {"dockerImageRepository" : "hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm"},
> "status" : {"dockerImageRepository" : "172.30.178.20:5000/fredo/swarm"},
> "apiVersion" : "v1",
> "kind" : "ImageStream"
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBDS-3838) Cannot install CDK. Installer prompts to setup VAGRANT_HOME if there is space in path and then it ignores it and fails
by Pavol Srna (JIRA)
[ https://issues.jboss.org/browse/JBDS-3838?page=com.atlassian.jira.plugin.... ]
Pavol Srna commented on JBDS-3838:
----------------------------------
[~akazakov], can we fix it for 9.1.0.GA release? I think this can be a big problem and many of the users won't be able to install at all (like me). I expect that many of the users have space in their user home (e.g if they use first and last name during windows installation and leave defaults for username). There is not a known workaround for this issue, since I expect that changing the 'user home' path (to not contain space) will break a lot of things in windows and user cannot set VAGRANT_HOME to another directory.
> Cannot install CDK. Installer prompts to setup VAGRANT_HOME if there is space in path and then it ignores it and fails
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: JBDS-3838
> URL: https://issues.jboss.org/browse/JBDS-3838
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Components: installer
> Affects Versions: 9.1.0.CR1
> Reporter: Pavol Srna
> Assignee: Denis Golovin
> Priority: Blocker
> Labels: havoc
> Fix For: 10.0.0.Alpha1
>
> Attachments: install.log, vagrant.log, vbox.log
>
>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBDS-3836) Installation refused with no reason given
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBDS-3836?page=com.atlassian.jira.plugin.... ]
Denis Golovin commented on JBDS-3836:
-------------------------------------
Message is incorrect, it should not say anything about meeting requirements, because actual validation results are shown in specific component.
In this specific use case version of installed VirtualBox is lower that recommended (5.0.8) and installer does not let you proceed with installation.
What is missing is explanation why it cannot proceed and what to do fix this situation.
> Installation refused with no reason given
> -----------------------------------------
>
> Key: JBDS-3836
> URL: https://issues.jboss.org/browse/JBDS-3836
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Bug
> Components: installer
> Affects Versions: 9.1.0.CR1
> Reporter: Pavol Srna
> Assignee: Denis Golovin
> Priority: Critical
> Labels: havoc
> Fix For: 10.0.0.Alpha1
>
> Attachments: screen-installer.png
>
>
> Installer says that 1 component has been found that *meets* the requirement, but it prevents the installation. I don't see a real reason given why the installation is disabled.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22193) Can't deploy locally built docker images
by Fred Bricon (JIRA)
Fred Bricon created JBIDE-22193:
-----------------------------------
Summary: Can't deploy locally built docker images
Key: JBIDE-22193
URL: https://issues.jboss.org/browse/JBIDE-22193
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.1.Final
Reporter: Fred Bricon
Priority: Blocker
I can't deploy locally built docker images, pushed to the CDK docker registry, to OpenShift
Trying to adapt the steps from https://github.com/redhat-developer-tooling/openshift-vagrant#how-to-run-... to Eclipse, I can't seem to be able to deploy anything
Here's what the CLI generates from
{quote}
eval "$(vagrant service-manager env docker)"
$ oc login 10.1.2.2:8443 -u openshift-dev -p devel
Login successful.
$ oc new-project my-ghost
Now using project "my-ghost" on server "https://10.1.2.2:8443".
$ docker pull ghost
$ docker tag ghost hub.openshift.rhel-cdk.10.1.2.2.xip.io/my-ghost/ghost
$ docker login -u openshift-dev -p `oc whoami -t` -e foo(a)bar.com hub.openshift.rhel-cdk.10.1.2.2.xip.io
$ docker push hub.openshift.rhel-cdk.10.1.2.2.xip.io/my-ghost/ghost
$ oc new-app --image-stream=ghost --name=ghost
$ oc expose service ghost --hostname=my-ghost-blog.rhel-cdk.10.1.2.2.xip.io
{quote}
Deployment Config
{noformat}
{
"kind" : "DeploymentConfig",
"apiVersion" : "v1",
"metadata" : {
"name" : "ghost",
"namespace" : "my-ghost",
"selfLink" : "/oapi/v1/namespaces/my-ghost/deploymentconfigs/ghost",
"uid" : "a7dafee5-03c8-11e6-82b7-525400ac6ae1",
"resourceVersion" : "29849",
"creationTimestamp" : "2016-04-16T11:45:02Z",
"labels" : {"app" : "ghost"},
"annotations" : {"openshift.io/generated-by" : "OpenShiftNewApp"}
},
"spec" : {
"strategy" : {
"type" : "Rolling",
"rollingParams" : {
"updatePeriodSeconds" : 1,
"intervalSeconds" : 1,
"timeoutSeconds" : 600,
"maxUnavailable" : "25%",
"maxSurge" : "25%"
}
},
"triggers" : [
{"type" : "ConfigChange"},
{
"type" : "ImageChange",
"imageChangeParams" : {
"automatic" : true,
"containerNames" : ["ghost"],
"from" : {
"kind" : "ImageStreamTag",
"namespace" : "my-ghost",
"name" : "ghost:latest"
},
"lastTriggeredImage" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8"
}
}
],
"replicas" : 1,
"selector" : {
"app" : "ghost",
"deploymentconfig" : "ghost"
},
"template" : {
"metadata" : {
"labels" : {
"app" : "ghost",
"deploymentconfig" : "ghost"
},
"annotations" : {
"openshift.io/container.ghost.image.entrypoint" : "[\"/entrypoint.sh\",\"npm\",\"start\"]",
"openshift.io/generated-by" : "OpenShiftNewApp"
}
},
"spec" : {
"volumes" : [{"name" : "ghost-volume-1"}],
"containers" : [{
"name" : "ghost",
"image" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8",
"ports" : [{
"containerPort" : 2368,
"protocol" : "TCP"
}],
"volumeMounts" : [{
"name" : "ghost-volume-1",
"mountPath" : "/var/lib/ghost"
}],
"terminationMessagePath" : "/dev/termination-log",
"imagePullPolicy" : "Always"
}],
"restartPolicy" : "Always",
"terminationGracePeriodSeconds" : 30,
"dnsPolicy" : "ClusterFirst"
}
}
},
"status" : {
"latestVersion" : 1,
"details" : {"causes" : [{"type" : "ConfigChange"}]}
}
}
{noformat}
Image Stream
{noformat}
{
"kind" : "ImageStream",
"apiVersion" : "v1",
"metadata" : {
"name" : "ghost",
"namespace" : "my-ghost",
"selfLink" : "/oapi/v1/namespaces/my-ghost/imagestreams/ghost",
"uid" : "98a32494-03c8-11e6-82b7-525400ac6ae1",
"resourceVersion" : "29842",
"creationTimestamp" : "2016-04-16T11:44:37Z",
"annotations" : {"openshift.io/image.dockerRepositoryCheck" : "2016-04-16T11:44:37Z"}
},
"status" : {
"dockerImageRepository" : "172.30.178.20:5000/my-ghost/ghost",
"tags" : [{
"tag" : "latest",
"items" : [{
"created" : "2016-04-16T11:44:37Z",
"dockerImageReference" : "172.30.178.20:5000/my-ghost/ghost@sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8",
"image" : "sha256:80590e45ef133a256906c454c8a20ae5e9b89773f6b452871ecf622001c836e8"
}]
}]
}
}
{noformat}
When following these steps in Eclipse, no deployment occurs. Going to the web console et clicking deploy on the Deployment, no image is found to deploy.
{quote}
- Clone https://github.com/burrsutter/cdk_helloworlds/
- import java/wildflyswarm_helloworld as a Maven Project
- Run a Maven build (Run As > Maven > package)
- Edit Dockerfile: replace `FROM rhel7` with `FROM centos`
- right click on Dockerfile > Run As > Docker Image build
- Select `CDK Server Adapter at localhost` connection
- Repository Name : hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm
- from OpenShift explorer, create a fredo project
- In OpenShift explorer, right-click the fredo project and Deploy Docker Image...
- select hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm:latest for the image
- swarm as resource name
- click next
- Deployment configuration & scalability page displays, click next
- click add route button, click finish
- resources are created, but no deployment happens
{quote}
Here are the resources created from Eclipse:
Deployment Config
{noformat}
{
"metadata" : {
"name" : "swarm",
"namespace" : "fredo",
"selfLink" : "/oapi/v1/namespaces/fredo/deploymentconfigs/swarm",
"uid" : "2e9d1df4-03cc-11e6-82b7-525400ac6ae1",
"resourceVersion" : "30206",
"creationTimestamp" : "2016-04-16T12:10:17Z",
"labels" : {"deploymentconfig" : "swarm"},
"annotations" : {"openshift.io/generated-by" : "jbosstools-openshift"}
},
"spec" : {
"strategy" : {
"type" : "Rolling",
"rollingParams" : {
"updatePeriodSeconds" : 1,
"intervalSeconds" : 1,
"timeoutSeconds" : 600,
"maxUnavailable" : "25%",
"maxSurge" : "25%"
}
},
"triggers" : [
{"type" : "ConfigChange"},
{
"type" : "ImageChange",
"imageChangeParams" : {
"automatic" : true,
"containerNames" : ["swarm"],
"from" : {
"kind" : "ImageStreamTag",
"name" : "swarm:latest"
}
}
}
],
"replicas" : 1,
"selector" : {"deploymentconfig" : "swarm"},
"template" : {
"metadata" : {"labels" : {"deploymentconfig" : "swarm"}},
"spec" : {
"containers" : [{
"name" : "swarm",
"image" : "fredo/swarm:latest",
"ports" : [{
"name" : "8080-tcp",
"containerPort" : 8080,
"protocol" : "TCP"
}],
"terminationMessagePath" : "/dev/termination-log",
"imagePullPolicy" : "Always"
}],
"restartPolicy" : "Always",
"terminationGracePeriodSeconds" : 30,
"dnsPolicy" : "ClusterFirst"
}
}
},
"apiVersion" : "v1",
"kind" : "DeploymentConfig"
}
{noformat}
Image Stream
{noformat}
{
"metadata" : {
"name" : "swarm",
"namespace" : "fredo",
"selfLink" : "/oapi/v1/namespaces/fredo/imagestreams/swarm",
"uid" : "2e42dfc8-03cc-11e6-82b7-525400ac6ae1",
"resourceVersion" : "30202",
"creationTimestamp" : "2016-04-16T12:10:16Z",
"annotations" : {"openshift.io/generated-by" : "jbosstools-openshift"}
},
"spec" : {"dockerImageRepository" : "hub.openshift.rhel-cdk.10.1.2.2.xip.io/fredo/swarm"},
"status" : {"dockerImageRepository" : "172.30.178.20:5000/fredo/swarm"},
"apiVersion" : "v1",
"kind" : "ImageStream"
}
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months
[JBoss JIRA] (JBIDE-22191) Support list of application creation with JSON
by Viacheslav Kabanovich (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22191?page=com.atlassian.jira.plugi... ]
Viacheslav Kabanovich edited comment on JBIDE-22191 at 4/18/16 4:03 PM:
------------------------------------------------------------------------
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
Also, logging may be restricted by debugging mode, this is an expected exception caused by user input, not a coding bug, while any time user sees a stack trace and the word 'exception' he is right to suggest that it is not his fault but a bug.
Method NewApplicationWizardModel.getLocalTemplate(String) can throw instead of ClassCastException some specific exception that would have info about resource in the file that user tried to open (e.g. kind of resource).
was (Author: scabanovich):
Actually, this class cast exception is properly caught in TemplateListPage.setLocalTemplate(String) and customized error dialog is opened with title "Template Error" and message "The file \"\{0}\" is not an OpenShift template.". The only scaring/unfriendly part is that the exception object itself is passed to the dialog. What can we improve? - maybe not pass the exception, and open warning instead of error?
Also, logging may be restricted by debugging mode, this is an expected exception caused by user input, not a coding bug, while any time user sees a stack trace and the word 'exception' he is right to suggest that it is not his fault but a bug.
> Support list of application creation with JSON
> ----------------------------------------------
>
> Key: JBIDE-22191
> URL: https://issues.jboss.org/browse/JBIDE-22191
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: Aurélien Pupier
> Fix For: 4.4.x
>
> Attachments: screenshot-1.png
>
>
> Currently, if we provide a Local template, which is a list of templates, there is a popup with an error.
> {noformat}
> java.lang.ClassCastException: com.openshift.internal.restclient.model.List cannot be cast to com.openshift.restclient.model.template.ITemplate
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.getLocalTemplate(NewApplicationWizardModel.java:107)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.updateSelectedTemplate(NewApplicationWizardModel.java:86)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.update(NewApplicationWizardModel.java:78)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizardModel.setLocalTemplateFileName(NewApplicationWizardModel.java:315)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.setLocalTemplate(TemplateListPage.java:511)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage.access$6(TemplateListPage.java:506)
> at org.jboss.tools.openshift.internal.ui.wizard.newapp.TemplateListPage$14.widgetSelected(TemplateListPage.java:696)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
> at org.eclipse.jface.window.Window.open(Window.java:803)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:279)
> at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
> at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
> at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> {noformat}
> You can use the template used by Fuse to reproduce: https://raw.githubusercontent.com/jboss-fuse/application-templates/master...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 12 months