[jbosstools-issues] [JBoss JIRA] (JBIDE-25046) Can't find CDK for registry discovery when 2 connections are defined for CDK

Andre Dietisheim (JIRA) issues at jboss.org
Mon Sep 18 09:42:00 EDT 2017


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

Andre Dietisheim commented on JBIDE-25046:
------------------------------------------

Matching the fact that "Discover" doesnt work for me is that I see an update of the connection being executed at 
{code:title=https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/org.jboss.tools.openshift.cdk.server/src/org/jboss/tools/openshift/cdk/server/core/internal/listeners/ConfigureDependentFrameworksListener.java#L107}
	private void configureOpenshift(IServer server, ServiceManagerEnvironment adb) {
		CDKOpenshiftUtility util = new CDKOpenshiftUtility();
		IConnection con = util.findExistingOpenshiftConnection(server, adb);
		if( con == null ) {
			con = util.createOpenshiftConnection(adb);
		} else {
			util.updateOpenshiftConnection(adb, con);
		}
		if( con != null ) {
			con.connect();
		}
	}
{code}

which ends up in 
{code:title=https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/org.jboss.tools.openshift.cdk.server/src/org/jboss/tools/openshift/cdk/server/core/internal/listeners/CDKOpenshiftUtility.java#L93}
		String dockerReg = env.getDockerRegistry();
		((Connection)con).setExtendedProperty(ICommonAttributes.IMAGE_REGISTRY_URL_KEY, dockerReg);
{code}
but the registry is *null*


> Can't find CDK for registry discovery when 2 connections are defined for CDK
> ----------------------------------------------------------------------------
>
>                 Key: JBIDE-25046
>                 URL: https://issues.jboss.org/browse/JBIDE-25046
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.5.1.AM2
>            Reporter: Jeff MAURY
>            Assignee: Rob Stryker
>              Labels: cdk, cdk_server_adapter_, explorer, openshift, openshift_v3
>             Fix For: 4.5.x
>
>
> EXEC: define an Openshift connection for CDK/admin
> EXEC: define an Openshift connection for CDK/developer
> EXEC: define a CDK3 server
> EXEC: start the CDK 3 server
> ASSERT: the CDK/admin OS3 connection is updated (registry not empty)
> ASSERT:  the CDK/developer OS3 connection is not updated (registry empty)
> EXEC: on the CDK/developer OS3 connection, click the DIscover buttoon
> ASSERT: the registry URL is updated, not the error dialog is displayed



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


More information about the jbosstools-issues mailing list