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

Import application: error message when trying to import from binary build config is not helpful

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.6.0.AM3
    • openshift

      steps:

      1. ASSERT: in cmd-line: make sure you logged into an OpenShift server via "oc"
        oc login <openshift-server>
      2. ASSERT: in cmd-line: make sure you that you selected a project in "oc"
        oc project <openshift-project-name>
      3. EXEC: create the app according to the "oc" based steps in https://github.com/redhat-helloworld-msa/helloworld-msa/blob/master/hello.adoc
        $ git clone https://github.com/redhat-helloworld-msa/hello
        $ cd hello/
        $ oc new-build --binary --name=hello -l app=hello
        $ mvn package -Popenshift
        $ oc start-build hello --from-dir=. --follow
        $ oc new-app hello -l app=hello,hystrix.enabled=true
        $ oc expose service hello
        
      4. ASSERT: in Explorer: the application-service "hello" is visible
      5. EXEC: select the "hello" service and pick "Import Application..." & "Finish" the wizard

      RESULT:
      The import fails with the following error:

      The error is correct, the application was created with a binary source type buildconfig, but the error not helpful.
      Furthermore we should show up the impossibility upfront, before showing up the import wizard - not afterwards, when finishing the wizard.

      Here's the build config (notice "source" > "type" > "Binary"):

      {
        "metadata": {
          "name": "hello",
          "namespace": "jbide25000-2",
          "selfLink": "/oapi/v1/namespaces/jbide25000-2/buildconfigs/hello",
          "uid": "457ef557-7cfd-11e8-aa28-fee3ec9633cd",
          "resourceVersion": "360688",
          "creationTimestamp": "2018-07-01T07:06:26Z",
          "labels": {
            "app": "hello"
          },
          "annotations": {
            "openshift.io/generated-by": "OpenShiftNewBuild"
          }
        },
        "spec": {
          "triggers": [
            {
              "type": "GitHub",
              "github": {
                "secret": "N5TaoJVuWp-YBlwSktc3"
              }
            },
            {
              "type": "Generic",
              "generic": {
                "secret": "ehzK2N2Yv8JDryRFLI5j"
              }
            }
          ],
          "runPolicy": "Serial",
          "source": {
            "type": "Binary",
            "binary": {}
          },
          "strategy": {
            "type": "Docker",
            "dockerStrategy": {}
          },
          "output": {
            "to": {
              "kind": "ImageStreamTag",
              "name": "hello:latest"
            }
          },
          "resources": {},
          "postCommit": {},
          "successfulBuildsHistoryLimit": 5,
          "failedBuildsHistoryLimit": 5
        },
        "status": {
          "lastVersion": 1
        },
        "kind": "BuildConfig",
        "apiVersion": "v1"
      }
      

              Unassigned Unassigned
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: