thin-edge.io icon indicating copy to clipboard operation
thin-edge.io copied to clipboard

Permission issue when updating / removing an Apama project

Open abelikt opened this issue 2 years ago • 1 comments

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

image

Environment (please complete the following information):

  • OS Debian buster
  • Mythic Beasts Rpi 3b+

Additional context

context

abelikt avatar Apr 04 '22 13:04 abelikt

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?

rina23q avatar Apr 04 '22 13:04 rina23q

@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

rina23q avatar Nov 15 '22 13:11 rina23q

Yes I think we can park this issue for the moment, and close it once we get confirmation about Apama plugin ownership transition.

reubenmiller avatar Nov 15 '22 16:11 reubenmiller

Closing as the APAMA team has taken ownership of the plugin.

reubenmiller avatar Dec 01 '22 17:12 reubenmiller