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

Python fails to activate when mounting a workspace secret

XMLWordPrintable

    • False
    • None
    • False

      1. log into developer sandbox https://developers.redhat.com/developer-sandbox/ide
      2. create a new workspace from the 'Python' tile 
      3. Once the workspace is ready, open hello-world.py and observe the Python module loading from the status bar 
      4. Once the python module has loaded, click the green play botton at the top right of the editor and observe the python script running correctly
      5. Navigate to the Developer sandbox openshift console and open the devspaces project. 
      6. Select the 'Import YAML' button at the top right and add the following secret
      apiVersion: v1
      kind: Secret
      metadata:
        name: artifactory-credentials
        annotations:
          controller.devfile.io/mount-as: file
          controller.devfile.io/mount-path: /home/user
        labels:
          controller.devfile.io/mount-to-devworkspace: 'true'
          controller.devfile.io/watch-secret: 'true'
      stringData:
        .netrc: |
          machine ARTIFACTORY_HOSTNAME
          login ARTIFACTORY_USERNAME
          password ARTIFACTORY_PASSWORD
      type: Opaque
      1. Restart the workspace and open hello-world.py
      2. Observe that the python module is never activated and the green play button never appears
      3. Attempt to start the python script through the menu Run > Start debugging.. or Run > Start without debugging...
      4. Observe the error `The debug session type "python" is not supported` 
      5. Delete the secret and restart the workspace, Observe the python module loading correctly again

       

       

       

       

       

       

       

       

        1. image-2022-10-31-09-17-58-564.png
          8 kB
          Michael Yarbrough
        2. image-2022-10-31-09-18-51-126.png
          8 kB
          Michael Yarbrough
        3. image-2022-10-31-09-21-46-282.png
          24 kB
          Michael Yarbrough
        4. image-2022-10-31-09-22-50-834.png
          58 kB
          Michael Yarbrough
        5. image-2022-10-31-09-28-16-691.png
          5 kB
          Michael Yarbrough

              vsvydenk Valerii Svydenko
              myarbrou@redhat.com Michael Yarbrough
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: