thin-edge.io
thin-edge.io copied to clipboard
Permission issue when updating / removing an Apama project
Describe the bug
A sequence of Apama project installations leads to a permission issue upon project removal.
Removing existing project at /etc/tedge/apama/project
ERROR: Directory not empty (os error 39)
To Reproduce
... see also screenshot below:
/usr/bin/sudo /etc/tedge/sm-plugins/apama install LimitedBandwidth::project --file /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/tests/PySys/plugin_apama/Input/limitedbandwidth.zip
/usr/bin/sudo /etc/tedge/sm-plugins/apama install LimitedBandwidth::project --file /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/tests/PySys/plugin_apama/Input/quickstart.zip
/usr/bin/sudo /etc/tedge/sm-plugins/apama install LimitedBandwidth::project --file /home/pi/actions-runner/_work/thin-edge.io/thin-edge.io/tests/PySys/plugin_apama/Input/quickstart.zip
or run the system test:
pysys.py run -v DEBUG "apama_plugin_update" -XmyPlatform=container
Expected behavior
works :)
Screenshots
Environment (please complete the following information):
- OS Debian buster
- Mythic Beasts Rpi 3b+
Additional context
context
I feel the test steps are wrong.
- Using
LimitedBandwidth::project
as the type for both LimitedBandwidth.zip and quickstart.zip - Shouldn't you call
/usr/bin/sudo /etc/tedge/sm-plugins/apama remove LimitedBandwidth::project
before upgrading?
@reubenmiller
Shall we close this issue as tedge_apama_plugin
is now supported by Apama Team? Regarding https://github.com/thin-edge/thin-edge.io/issues/1584
Yes I think we can park this issue for the moment, and close it once we get confirmation about Apama plugin ownership transition.
Closing as the APAMA team has taken ownership of the plugin.