Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2238

Dynamic plugin gets uninstalled on alternate restarts when `pullPolicy=Always` or `forceDownload=true` and cache is enabled

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      Prerequisites (if any, like setup, operators/versions):

      • RHDH Operator 1.7.1

      Steps to Reproduce

      1. Install RHDH Operator 1.7.1
      2. Apply the manifest attached (you might need to set a storage class that supports ReadWriteMany, or you can change to ReadWriteOnce on a single-node cluster): cr-RHDHSUPP-291.yaml
      3. Wait until the application is started. Navigate to https://<RHDH_URL>/create/actions and search for "azure:"
      4. You will find the related Azure scaffolder actions

      5. Delete the RHDH Pod, and wait for a new one to be scheduled, leveraging the dynamic plugins cache
      6. Wait until the application is started. Navigate to https://<RHDH_URL>/create/actions and search for "azure:"
      7. You will no longer find the related Azure scaffolder actions

      8. Delete the RHDH Pod again, and wait for a new one to be scheduled, leveraging the dynamic plugins cache
      9. Wait until the application is started. Navigate to https://<RHDH_URL>/create/actions and search for "azure:"
      10. You will find the related Azure scaffolder actions

      Actual results:

      The previously installed plugin is removed when the RHDH pod is recreated in Step 6, hence breaking existing functionality. But it is reinstalled when the pod is recreated again in Step 9.

      Logs from the init container on first start:

      ======= Created lock file: /dynamic-plugins-root/install-dynamic-plugins.lock
      [...]
      
      ======= Installing dynamic plugin @backstage-community/plugin-scaffolder-backend-module-azure-devops@0.12.0
              ==> Grabbing package archive through `npm pack`
              ==> Verifying package integrity
              ==> Extracting package archive /dynamic-plugins-root/backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0.tgz
              ==> Removing package archive /dynamic-plugins-root/backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0.tgz
              ==> Successfully installed dynamic plugin @backstage-community/plugin-scaffolder-backend-module-azure-devops@0.12.0
      
      [...]
      ======= Removed lock file: /dynamic-plugins-root/install-dynamic-plugins.lock
      

      Logs after the first restart:

      ======= Created lock file: /dynamic-plugins-root/install-dynamic-plugins.lock
      [...]
      
      ======= Installing dynamic plugin @backstage-community/plugin-scaffolder-backend-module-azure-devops@0.12.0
              ==> Grabbing package archive through `npm pack`
              ==> Verifying package integrity
              ==> Removing previous plugin directory /dynamic-plugins-root/backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0
              ==> Extracting package archive /dynamic-plugins-root/backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0.tgz
              ==> Removing package archive /dynamic-plugins-root/backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0.tgz
              ==> Successfully installed dynamic plugin @backstage-community/plugin-scaffolder-backend-module-azure-devops@0.12.0
      
      ======= Removing previously installed dynamic plugin backstage-community-plugin-scaffolder-backend-module-azure-devops-0.12.0
      
      [...]
      ======= Removed lock file: /dynamic-plugins-root/install-dynamic-plugins.lock
      

      Notice this suspicious line: Removing previously installed dynamic plugin

      Expected results:

      Consistent behavior.

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

        1. cr-RHDHSUPP-291.yaml
          2 kB
        2. screenshot-1.png
          screenshot-1.png
          93 kB
        3. screenshot-2.png
          screenshot-2.png
          96 kB

              Unassigned Unassigned
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: