 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBDS-4677) Certification errors to connect to OpenShift with certificates self-signed
                                
                                
                                
                                    
                                        by Roman Martin Gil (JIRA)
                                    
                                
                                
                                        
     [ https://issues.jboss.org/browse/JBDS-4677?page=com.atlassian.jira.plugin.... ]
Roman Martin Gil updated JBDS-4677:
-----------------------------------
    Description: 
I can't get a token when I tried to create a new OpenShift connection to a external cluster with self-signed certificates.
When I click in retrieve link to get the token I got the following messages and I can't get the token to finish the process.
{code:java}
An error occurred during a connection to 127.0.0.1:8443.
Cannot communicate securely with peer: no common encryption algorithm(s).
(Error code: ssl_error_no_cypher_overlap)
{code}
  was:
I can't get a token when I tried to create a new OpenShift connection to a external cluster with self-signed certificates.
When I click in retrieve link to get the token I got the following messages and I can't get the token to finish the process.
{code:java}
An error occurred during a connection to axdesocp1console.central.inditex.grp:8443.
Cannot communicate securely with peer: no common encryption algorithm(s).
(Error code: ssl_error_no_cypher_overlap)
{code}
> Certification errors to connect to OpenShift with certificates self-signed
> --------------------------------------------------------------------------
>
>                 Key: JBDS-4677
>                 URL: https://issues.jboss.org/browse/JBDS-4677
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: cdk, openshift
>    Affects Versions: 11.2.0.GA
>         Environment: JBDS 11.2.0.GA 
> $ cat /etc/redhat-release 
> Fedora release 27 (Twenty Seven)
> $ uname -a
> Linux kiuran.localdomain 4.14.18-300.fc27.x86_64 #1 SMP Thu Feb 8 01:35:31 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
> $ java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
>            Reporter: Roman Martin Gil
>            Assignee: Jeff MAURY
>             Fix For: 11.x
>
>         Attachments: jbds-openshift-browser.png, jbds-openshift-certificate-errors.png
>
>
> I can't get a token when I tried to create a new OpenShift connection to a external cluster with self-signed certificates.
> When I click in retrieve link to get the token I got the following messages and I can't get the token to finish the process.
> {code:java}
> An error occurred during a connection to 127.0.0.1:8443.
> Cannot communicate securely with peer: no common encryption algorithm(s).
> (Error code: ssl_error_no_cypher_overlap)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25830) After starting CDK server adapter OpenShift Connection does not work when oc is not on path
                                
                                
                                
                                    
                                        by Andre Dietisheim (JIRA)
                                    
                                
                                
                                        
     [ https://issues.jboss.org/browse/JBIDE-25830?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-25830:
-------------------------------------
    Description: 
OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
steps:
# ASSERT: oc is not on path
# EXEC: Start CDK server adapter
# ASSERT: OpenShift connection is created, but does not fully work (all oc related operations wont)
Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
Expected: OpenShift connection should be working without user touch.
  was:
OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
0. oc is not on path
1. Start CDK server adapter
2. OpenShift connection is created, but does not work
Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
Expected: OpenShift connection should be working without user touch.
> After starting CDK server adapter OpenShift Connection does not work when oc is not on path
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25830
>                 URL: https://issues.jboss.org/browse/JBIDE-25830
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: cdk, openshift
>    Affects Versions: 4.5.3.AM3
>            Reporter: Josef Kopriva
>            Assignee: Rob Stryker
>              Labels: cdk_server_adapter, connection
>             Fix For: 4.5.3.Final
>
>
> OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
> steps:
> # ASSERT: oc is not on path
> # EXEC: Start CDK server adapter
> # ASSERT: OpenShift connection is created, but does not fully work (all oc related operations wont)
> Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
> Expected: OpenShift connection should be working without user touch.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25830) After starting CDK server adapter OpenShift Connection does not work when oc is not on path
                                
                                
                                
                                    
                                        by Andre Dietisheim (JIRA)
                                    
                                
                                
                                        
    [ https://issues.jboss.org/browse/JBIDE-25830?page=com.atlassian.jira.plugi... ] 
Andre Dietisheim commented on JBIDE-25830:
------------------------------------------
I think that since we're the ones who created this connection, we should do the best we can to have it fully functional. So we really could prompt him to set the oc binary. We could even only do that if there's no oc on the path. Nevertheless, this isn't a proper bug but an enhancement since we inform on all (?) wizards if oc is missing and ought to be set.
> After starting CDK server adapter OpenShift Connection does not work when oc is not on path
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25830
>                 URL: https://issues.jboss.org/browse/JBIDE-25830
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk, openshift
>    Affects Versions: 4.5.3.AM3
>            Reporter: Josef Kopriva
>            Assignee: Rob Stryker
>              Labels: cdk_server_adapter, connection
>             Fix For: 4.5.3.Final
>
>
> OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25830) After starting CDK server adapter OpenShift Connection does not work when oc is not on path
                                
                                
                                
                                    
                                        by Andre Dietisheim (JIRA)
                                    
                                
                                
                                        
     [ https://issues.jboss.org/browse/JBIDE-25830?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-25830:
-------------------------------------
    Description: 
OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
0. oc is not on path
1. Start CDK server adapter
2. OpenShift connection is created, but does not work
Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
Expected: OpenShift connection should be working without user touch.
  was:OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
> After starting CDK server adapter OpenShift Connection does not work when oc is not on path
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25830
>                 URL: https://issues.jboss.org/browse/JBIDE-25830
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk, openshift
>    Affects Versions: 4.5.3.AM3
>            Reporter: Josef Kopriva
>            Assignee: Rob Stryker
>              Labels: cdk_server_adapter, connection
>             Fix For: 4.5.3.Final
>
>
> OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
> 0. oc is not on path
> 1. Start CDK server adapter
> 2. OpenShift connection is created, but does not work
> Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
> Expected: OpenShift connection should be working without user touch.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25830) After starting CDK server adapter OpenShift Connection does not work when oc is not on path
                                
                                
                                
                                    
                                        by Andre Dietisheim (JIRA)
                                    
                                
                                
                                        
     [ https://issues.jboss.org/browse/JBIDE-25830?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-25830:
-------------------------------------
    Issue Type: Enhancement  (was: Bug)
> After starting CDK server adapter OpenShift Connection does not work when oc is not on path
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25830
>                 URL: https://issues.jboss.org/browse/JBIDE-25830
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: cdk, openshift
>    Affects Versions: 4.5.3.AM3
>            Reporter: Josef Kopriva
>            Assignee: Rob Stryker
>              Labels: cdk_server_adapter, connection
>             Fix For: 4.5.3.Final
>
>
> OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
> 0. oc is not on path
> 1. Start CDK server adapter
> 2. OpenShift connection is created, but does not work
> Error: oc is not set for OpenShift connection to CDK and OpenShift connection does not work.
> Expected: OpenShift connection should be working without user touch.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25830) After starting CDK server adapter OpenShift Connection does not work when oc is not on path
                                
                                
                                
                                    
                                        by Ondrej Dockal (JIRA)
                                    
                                
                                
                                        
    [ https://issues.jboss.org/browse/JBIDE-25830?page=com.atlassian.jira.plugi... ] 
Ondrej Dockal commented on JBIDE-25830:
---------------------------------------
I think that if OS connection was created with CDK server adapter, there is quite big chance that oc binary resides in given ($MINISHIFT_HOME|~/.minishift)/cache/oc/win|darwin|linux/$version/ folder. Just saying...
On the other side, we can put two weights on the scales. User having everything working out of box vs. let/force him to choose proper oc binary (version he wants to use, not the one we find for him). Just my 0.02.
> After starting CDK server adapter OpenShift Connection does not work when oc is not on path
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25830
>                 URL: https://issues.jboss.org/browse/JBIDE-25830
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk, openshift
>    Affects Versions: 4.5.3.AM3
>            Reporter: Josef Kopriva
>            Assignee: Rob Stryker
>              Labels: cdk_server_adapter, connection
>             Fix For: 4.5.3.Final
>
>
> OpenShift connection should be working, when user starts CDK server adapter, even if you do not have oc on path. In my opinion OpenShift connection should be working "out of box" when user starts CDK server adapter.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months
                        
                        
                 
         
 
        
            
        
        
        
            
        
        
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        [JBoss JIRA] (JBIDE-25865) Mylyn: CoreException: Unexpected error: Forbidden
                                
                                
                                
                                    
                                        by Jeff MAURY (JIRA)
                                    
                                
                                
                                        
     [ https://issues.jboss.org/browse/JBIDE-25865?page=com.atlassian.jira.plugi... ]
Jeff MAURY updated JBIDE-25865:
-------------------------------
    Fix Version/s: 4.5.x
> Mylyn: CoreException: Unexpected error: Forbidden
> -------------------------------------------------
>
>                 Key: JBIDE-25865
>                 URL: https://issues.jboss.org/browse/JBIDE-25865
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>    Affects Versions: 4.5.3.AM3
>         Environment: F28
>            Reporter: Josef Kopriva
>             Fix For: 4.5.x
>
>
> {code:java}
> eclipse.buildId=11.3.0.AM3-v20180322-1027-B2194
> java.version=1.8.0_161
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments:  -product com.jboss.devstudio.core.product
> Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
> org.eclipse.mylyn.builds.core
> Error
> Tue Mar 27 12:24:58 CEST 2018
> Running build 'openshift.itests' failed
> org.eclipse.core.runtime.CoreException: Unexpected error: Forbidden
> 	at org.eclipse.mylyn.internal.hudson.core.HudsonCorePlugin.toCoreException(HudsonCorePlugin.java:61)
> 	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:808)
> 	at org.eclipse.mylyn.builds.internal.core.operations.RunBuildOperation$1.doExecute(RunBuildOperation.java:55)
> 	at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.eclipse.mylyn.internal.hudson.core.client.HudsonException: Forbidden
> 	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:169)
> 	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.runBuild(RestfulHudsonClient.java:417)
> 	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:806)
> 	... 3 more
> Caused by: org.eclipse.mylyn.commons.repositories.core.auth.AuthenticationException: Forbidden
> 	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.validate(HudsonOperation.java:273)
> 	at org.eclipse.mylyn.commons.repositories.http.core.CommonHttpOperation.executeOnce(CommonHttpOperation.java:119)
> 	at org.eclipse.mylyn.commons.repositories.http.core.CommonHttpOperation.execute(CommonHttpOperation.java:86)
> 	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.execute(RestfulHudsonClient.java:403)
> 	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:167)
> 	... 5 more
> {code}
> I have tried to delete secure storage and set up it again and check user permissions, but it didn't help.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
                                
                         
                        
                                
                                7 years, 7 months