-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
1.7.1
-
None
-
False
-
-
False
-
-
-
Moderate
Description of problem:
The initContainer delete the already downloaded tar.gz package if the custom plugin is configured as "forceDownload: true".
Prerequisites (if any, like setup, operators/versions):
You must have a custom dynamic plugins packed as tar.gz.
Steps to Reproduce
- Install RHDH 1.7.1
- Put your custom plugins in a repository reachable from Developer Hub
- Configure the plugins in the app-dynamic-plugins.yaml loaded by RHDH
- Set the parameter "forceDownload: true"
- Reboot RHDH
- Go to "Extension" page from UI
- You will see your plugin listed
- Reboot RHDH
- Go to "Extension" page
- Your plugin isn't loaded
- Reboot RHDH
- Go to "Extension" page
- Your plugin is listed again
Actual results:
Plugins is loaded every other time.
Expected results:
Plugins is loaded every time.
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
Additional info (Such as Logs, Screenshots, etc):
This is the init container log the first time, when the plugin is loaded
======= Installing dynamic plugin @mbertuzzi/my-great-plugin@1.0.0
==> Grabbing package archive through `npm pack`
==> Verifying package integrity
==> Removing previous plugin directory /dynamic-plugins-root/premisedata-plugin-file-values-dynamic-1.0.2
==> Extracting package archive /dynamic-plugins-root/premisedata-plugin-file-values-dynamic-1.0.2.tgz
==> Removing package archive /dynamic-plugins-root/premisedata-plugin-file-values-dynamic-1.0.2.tgz
==> Successfully installed dynamic plugin @premisedata/plugin-file-values-dynamic@1.0.2
==> Merging plugin-specific configuration
And this are the logs when the plugin isn't loaded
======= Installing dynamic plugin @mbertuzzi/my-great-plugin@1.0.0{}
==> Grabbing package archive through `npm pack`
==> Verifying package integrity
==> Extracting package archive /dynamic-plugins-root/premisedata-plugin-file-values-dynamic-1.0.2.tgz
==> Removing package archive /dynamic-plugins-root/premisedata-plugin-file-values-dynamic-1.0.2.tgz
==> Successfully installed dynamic plugin @premisedata/plugin-file-values-dynamic@1.0.2
==> Merging plugin-specific configuration
It seems that the "Removing previous plugin directory" phase delete also the just downloaded package, because nothing will be into
/opt/dynamic-root
when RHDH starts.