-
Bug
-
Resolution: Done
-
Major
-
1.5.0
-
False
-
-
False
-
-
Description of the problem:
If argocd is enabled in the orchestrator CR, deployment of the backstage instance fails with:
======= Installing dynamic plugin ./dynamic-plugins/dist/janus-idp-backstage-plugin-argocd ==> Grabbing package archive through `npm pack` Traceback (most recent call last): File "/opt/app-root/src/install-dynamic-plugins.py", line 429, in <module> main() File "/opt/app-root/src/install-dynamic-plugins.py", line 340, in main raise InstallException(f'Error while installing plugin { package } with \'npm pack\' : ' + completed.stderr.decode('utf-8')) __main__.InstallException: Error while installing plugin /opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-argocd with 'npm pack' : npm error code ENOENT npm error syscall open npm error path /opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-argocd/package.json npm error errno -2 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-argocd/package.json' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: /opt/app-root/src/.npm/_logs/2025-03-13T12_31_51_513Z-debug-0.log
The path for the argocd plugin should be:
package: ./dynamic-plugins/dist/backstage-community-plugin-redhat-argocd
instead of
./dynamic-plugins/dist/janus-idp-backstage-plugin-argocd
How reproducible: 100%
Steps to reproduce:
1. Deploy orchestrator operator 1.5.0-2025-03-11
2. Deploy orchestrator CR with argocd enabled
3. Observe backstage pod deployment
Actual results: Backstage pod deployment stuck in Init:CrashLoopBackOff
Expected results: Correct path should be used