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

Application wizard: Cannot deploy git-based project to OpenShift

XMLWordPrintable

    • Hide

      EXEC: Import a git based project into the workspace in JBT (ex. git@github.com:adietish/kitchensink.git)
      EXEC: Launch New application wizard from OpenShift explorer (or launch via project context menu Configure->New/Import OpenShift Application).
      EXEC: Choose basic cartridge and click Next button (ex. EAP 6).
      EXEC: Fill in name on the next wizard page and click Next.
      EXEC: Choose Use existing project and select the existing git based project.
      EXEC: Finish the wizard.
      EXEC: Wait for the Import application shell and confirm.

      EXPECTED RESULT: Question shell is shown or wizard is completed successfully and application on OpenShift is that one from the workspace (merged successfully).
      RESULT: There is the error that there are uncommitted changes and it is required to commit them first. Application on OpenShift is default (from basic cartridge).

      Workaround via manually creating server adapter and pushing unfortunately wont work either: the existing project in the workspace does not have the openshift settings and wont be recognized as valid workspace for the server adapter:

      Show
      EXEC: Import a git based project into the workspace in JBT (ex. git@github.com:adietish/kitchensink.git) EXEC: Launch New application wizard from OpenShift explorer (or launch via project context menu Configure->New/Import OpenShift Application). EXEC: Choose basic cartridge and click Next button (ex. EAP 6). EXEC: Fill in name on the next wizard page and click Next. EXEC: Choose Use existing project and select the existing git based project. EXEC: Finish the wizard. EXEC: Wait for the Import application shell and confirm. EXPECTED RESULT: Question shell is shown or wizard is completed successfully and application on OpenShift is that one from the workspace (merged successfully). RESULT: There is the error that there are uncommitted changes and it is required to commit them first. Application on OpenShift is default (from basic cartridge). Workaround via manually creating server adapter and pushing unfortunately wont work either: the existing project in the workspace does not have the openshift settings and wont be recognized as valid workspace for the server adapter:

      It is not possible to deploy existing git based project to the OpenShift instance. What's going to happen is that new OpenShift project is created, but existing git project is not merged. As result there is a project based on basic cartridge and not on existing project. There is a issue with git changes - uncommitted changes required to commit first, but it is not possible bcs. remote is still set to the old one git remote.

      See log

      !ENTRY org.jboss.tools.openshift.express.ui 4 0 2014-07-02 08:52:28.848
      !MESSAGE Could not import project to the workspace.
      !STACK 0
      org.jboss.tools.openshift.express.internal.ui.UnCommittedChangesException: The project jboss-javaee6-webapp has uncommitted changes. Please commit those changes first.
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.MergeIntoGitSharedProject.execute(MergeIntoGitSharedProject.java:97)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizardModel.mergeIntoGitSharedProject(OpenShiftApplicationWizardModel.java:186)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizard$ImportJob.runInWorkspace(OpenShiftApplicationWizard.java:376)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      Error shell:

        1. cannot-create-server-adapter.png
          42 kB
          André Dietisheim
        2. git-log.png
          55 kB
          André Dietisheim
        3. import.png
          21 kB
          Marián Labuda
        4. import-failed-uncommitted-changes.png
          22 kB
          André Dietisheim
        5. push-force.png
          33 kB
          André Dietisheim

              adietish@redhat.com André Dietisheim
              mlabuda_jira Marián Labuda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: