Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1429

Deploying nodejs-mongo-db-sample to OpenShift fails when using the OpenShift connector

    XMLWordPrintable

Details

    • False
    • False
    • Undefined
    • Hide

      Use this devfile: https://github.com/VinayBhalerao/nodejs-mongodb-sample/blob/master/devfile.yaml

      Try to deploy the project on an OpenShift cluster using the OpenShift connector plugin. It should fail with the error described above.

      Show
      Use this devfile: https://github.com/VinayBhalerao/nodejs-mongodb-sample/blob/master/devfile.yaml Try to deploy the project on an OpenShift cluster using the OpenShift connector plugin. It should fail with the error described above.

    Description

      Deploying a 1.0.0 devfile fails when using the OpenShift connector plugin:

      /tmp/vscode-unpacked/redhat.vscode-openshift-connector.latest.oemyqjcdbo.vscode-openshift-connector-0.2.0.vsix/extension/out/tools/linux/odo" push
       "/tmp/vscode-unpacked/redhat.vscode-openshift-connector.latest.oemyqjcdbo.vscode-openshift-connector-0.2.0.vsix/extension/out/tools/linux/odo" push
       bash-4.4# "/tmp/vscode-unpacked/redhat.vscode-openshift-connector.latest.oemyqjcdbo.vscode-openshift-connector-0.2.0.vsix/extension/out/tools/linux/odo" push
       ✗ unable to find schema for apiVersion '1.0.0', this Devfile
       version is not supported by odo  

       

      It seems this is because the latest version of the OpenShift connector plugin uses a newer version of odo, which doesn't work with older versions of the devfile spec. Note, this bug has been fixed in CRW 2.5.1 by rolling back to an older version of the OpenShift connector plugin. Unless the plugin itself is patched, the same fix will need to be applied to 2.6.

      Attachments

        Activity

          People

            ericwill@redhat.com Eric Williams
            ericwill@redhat.com Eric Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: