Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12112

Not able to merge git-versioned and OpenShift application

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide
      • ASSERT: Have application on github, OpenShift account.
      • EXEC: Import the application to workspace.
      • EXEC: Launch OpenShift wizard to create a new application and choose not to create a new project in workspace, but to use existing. Select the git versioned project.
      • EXEC: Now you need to specify a new remote for the git versioned project

      I would expect a warning that I cannot user the default 'origin' remote (it already exists):

      Actually it appears right after unchecking the 'use default remote':

      • EXEC: Proceed with application creation, provide ssh passphrase, etc.

      1st time I tried this scenario an exception was thrown while merging OpenShift application and the git versioned project:

      java.lang.InterruptedException
      	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:169)
      	at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:239)
      	at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:227)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:92)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureGitSharedProject.copyOpenshiftConfigurations(ConfigureGitSharedProject.java:167)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureGitSharedProject.execute(ConfigureGitSharedProject.java:103)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.configureGitSharedProject(OpenShiftExpressApplicationWizardModel.java:177)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:328)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      with 'The operation 'Importing project to workspace...' was cancelled' message, but I did not cancel anything.

      The 2nd attempt went (relatively) fine - OpenShift application was merged with my project, but the created server adapter was not set-up correctly (and actually it could not be, application is not available in the Deploy project combo)

      After trying to publish the project:

      • Console output (build on OpenShift):
        Repository ssh://5a0f888a6cc1464a8575121d98facecb@gitseam-pipistik.rhcloud.com/~/git/gitseam.git/
        
        Stopping application...
        Done
        ~/git/gitseam.git ~/git/gitseam.git
        ~/git/gitseam.git
        Emptying tmp dir: /var/lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/auth
        Emptying tmp dir: /var/lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/vfs
        Emptying tmp dir: /var/lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/work
        Starting application...
        Done
        
      • RESULT: Application not deployed on OpenShift
      Show
      ASSERT: Have application on github, OpenShift account. EXEC: Import the application to workspace. EXEC: Launch OpenShift wizard to create a new application and choose not to create a new project in workspace, but to use existing. Select the git versioned project. EXEC: Now you need to specify a new remote for the git versioned project I would expect a warning that I cannot user the default 'origin' remote (it already exists): Actually it appears right after unchecking the 'use default remote': EXEC: Proceed with application creation, provide ssh passphrase, etc. 1st time I tried this scenario an exception was thrown while merging OpenShift application and the git versioned project: java.lang.InterruptedException at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:169) at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:239) at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:227) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:92) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureGitSharedProject.copyOpenshiftConfigurations(ConfigureGitSharedProject.java:167) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureGitSharedProject.execute(ConfigureGitSharedProject.java:103) at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.configureGitSharedProject(OpenShiftExpressApplicationWizardModel.java:177) at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:328) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) with 'The operation 'Importing project to workspace...' was cancelled' message, but I did not cancel anything. The 2nd attempt went (relatively) fine - OpenShift application was merged with my project, but the created server adapter was not set-up correctly (and actually it could not be, application is not available in the Deploy project combo) After trying to publish the project: Console output (build on OpenShift): Repository ssh: //5a0f888a6cc1464a8575121d98facecb@gitseam-pipistik.rhcloud.com/~/git/gitseam.git/ Stopping application... Done ~/git/gitseam.git ~/git/gitseam.git ~/git/gitseam.git Emptying tmp dir: / var /lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/auth Emptying tmp dir: / var /lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/vfs Emptying tmp dir: / var /lib/stickshift/5a0f888a6cc1464a8575121d98facecb/gitseam/jbossas-7/standalone/tmp/work Starting application... Done RESULT: Application not deployed on OpenShift

      Description

      While testing the capability to deploy on OpenShift an already (git) versioned project I bounced into few inconsistent situations.

        Attachments

        1. always-add-adapter-settings.patch
          1 kB
        2. git1.png
          git1.png
          37 kB
        3. git2.png
          git2.png
          34 kB
        4. git3.png
          git3.png
          78 kB
        5. JBIDE-12112.patch
          6 kB
        6. origin-already-exists.png
          origin-already-exists.png
          24 kB
        7. origin-already-exists.png
          origin-already-exists.png
          24 kB
        8. unified.patch
          20 kB
        9. unified-2.patch
          20 kB

          Issue Links

            Activity

              People

              Assignee:
              adietish André Dietisheim
              Reporter:
              sbunciak Stefan Bunciak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: