[jbosstools-issues] [JBoss JIRA] (JBIDE-23822) Server adapter: is not working with oc v1.4.x

Andre Dietisheim (JIRA) issues at jboss.org
Tue Feb 7 15:43:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-23822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13360065#comment-13360065 ] 

Andre Dietisheim edited comment on JBIDE-23822 at 2/7/17 3:42 PM:
------------------------------------------------------------------

[~hardy.ferentschik] for me there's no X.4.X oc binary (neither 1.4.x nor 3.4.x) that works doing rsync with cdk/minishift Alpha2. At the same time login works, which I cant explain.
We are using oc specifying user and token in the very same cmd. We do this so that we dont meddle with login states. To get the token you can simply do {code}oc whoami -t{code}
Here are the steps (using ocp 3.4.x) to reproduce it in all details - you'd get the very same with all oc/ocp >= 1.4/3.4 while it works using those in version <=1.3.x/4.3.x:
{code}
adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.4.0.39/oc login
Authentication required for https://192.168.99.100:8443 (openshift)
Username: developer
Password:
Login successful.

You have one project on this server: "gargoyle"

Using project "gargoyle".

adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.3.17/oc whoami -t
lYmVXxFjLrZu5jf7WpGNAOx9KAAjp3_46AT70JOf1JQ

adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.4.0.39/oc rsync --user=system --token=lYmVXxFjLrZu5jf7WpGNAOx9KAAjp3_46AT70JOf1JQ --server=https://192.168.99.100:8443 --insecure-skip-tls-verify=true --exclude='.git' nodejs-mongodb-example-1-i31y4:/opt/app-root/src/ -n gigu /Users/adietish/Documents/jboss-workspaces/jbosstools-github/runtime-openshift2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/gigu at mongodb/deploy/
error: auth info "system" does not exist
{code}


was (Author: adietish):
[~hardy.ferentschik] for me there's no X.4.X oc binary (neither 1.4.x nor 3.4.x) that works doing rsync with cdk/minishift Alpha2. At the same time login works, which I cant explain.
We are using oc specifying user and token in the very same cmd. We do this so that we dont meddle with login states. To get the token you can simply do {code}oc whoami -t{code}
Here are the steps to reproduce it in all details:
{code}
adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.4.0.39/oc login
Authentication required for https://192.168.99.100:8443 (openshift)
Username: developer
Password:
Login successful.

You have one project on this server: "gargoyle"

Using project "gargoyle".

adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.3.17/oc whoami -t
lYmVXxFjLrZu5jf7WpGNAOx9KAAjp3_46AT70JOf1JQ

adietish at Andres-MBP $ /Users/adietish/Downloads/oc\ binaries/ocp-3.4.0.39/oc rsync --user=system --token=lYmVXxFjLrZu5jf7WpGNAOx9KAAjp3_46AT70JOf1JQ --server=https://192.168.99.100:8443 --insecure-skip-tls-verify=true --exclude='.git' nodejs-mongodb-example-1-i31y4:/opt/app-root/src/ -n gigu /Users/adietish/Documents/jboss-workspaces/jbosstools-github/runtime-openshift2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/gigu at mongodb/deploy/
error: auth info "system" does not exist
{code}

> Server adapter: is not working with oc v1.4.x
> ---------------------------------------------
>
>                 Key: JBIDE-23822
>                 URL: https://issues.jboss.org/browse/JBIDE-23822
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.3.AM2
>         Environment: Devstudio 10.3.0.AM2.
> CDK 2.4 (OpenShift 3.4)
> oc v1.4.1
>            Reporter: Radim Hopp
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: openshift_v3, server_adapter
>             Fix For: 4.4.3.Final
>
>
> {noformat}
> !ENTRY org.jboss.tools.openshift.core 2 0 2017-02-01 13:46:34.181
> !MESSAGE Error while publishing server eap-app at OpenShift 3 (10.1.2.2).  Could not sync all pods to folder /home/rhopp/workspace-iosdnfuiwne/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample-project at eap-app/deploy
> !STACK 1
> org.eclipse.core.runtime.CoreException: Error while publishing server eap-app at OpenShift 3 (10.1.2.2).  Could not sync all pods to folder /home/rhopp/workspace-iosdnfuiwne/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample-project at eap-app/deploy
> 	at org.jboss.tools.openshift.core.server.behavior.OpenShiftPublishController.publishStart(OpenShiftPublishController.java:83)
> 	at org.jboss.ide.eclipse.as.wtp.core.server.behavior.CachedPublisherProfileBehavior.publishStart(CachedPublisherProfileBehavior.java:47)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:942)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
> 	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3172)
> 	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Contains: OpenShiftBinaryCapability process exited: error: auth info "openshift-dev" does not exist
> !SUBENTRY 1 org.jboss.tools.openshift.core 4 0 2017-02-01 13:46:34.181
> !MESSAGE Error while publishing server eap-app at OpenShift 3 (10.1.2.2).  Could not sync all pods to folder /home/rhopp/workspace-iosdnfuiwne/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample-project at eap-app/deploy
> !SUBENTRY 2 org.jboss.tools.openshift.core 4 0 2017-02-01 13:46:34.181
> !MESSAGE OpenShiftBinaryCapability process exited: error: auth info "openshift-dev" does not exist
> !ENTRY org.jboss.tools.openshift.core 4 0 2017-02-01 13:46:35.219
> !MESSAGE Could not sync /home/rhopp/workspace-iosdnfuiwne/.metadata/.plugins/org.jboss.ide.eclipse.as.core/sample-project at eap-app/deploy to all pods running the service eap-app
> !SUBENTRY 1 org.jboss.tools.openshift.core 4 0 2017-02-01 13:46:35.219
> !MESSAGE OpenShiftBinaryCapability process exited: error: auth info "openshift-dev" does not exist
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list