-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 Fix issue with agent and volume permissions when backing up #8214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Fix issue with agent and volume permissions when backing up #8214
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8214 +/- ##
==========================================
- Coverage 88.08% 88.01% -0.08%
==========================================
Files 1910 1487 -423
Lines 73501 61112 -12389
Branches 1296 650 -646
==========================================
- Hits 64744 53787 -10957
+ Misses 8368 7094 -1274
+ Partials 389 231 -158
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…nt-permission-issue
🧪 CI InsightsHere's what we observed from your CI run for e927433. ✅ Passed Jobs With Interesting Signals
|
matusdrobuliak66
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a permission issue with volume backups in the agent service by applying the same solution previously used in the dynamic-sidecar. The fix ensures proper file permissions before backing up volumes to prevent permission denied errors during rclone operations.
Key changes:
- Moved container utility functions from dynamic-sidecar to shared servicelib package
- Added permission fix to agent backup process using chmod command
- Updated imports across services to use the centralized container utilities
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| services/agent/src/simcore_service_agent/services/backup.py | Added permission fix function and logic to ensure readable permissions before backup |
| packages/service-library/src/servicelib/container_utils.py | Moved container execution utilities and error classes from dynamic-sidecar to shared library |
| services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/core/errors.py | Removed container execution error classes that were moved to servicelib |
| services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/prometheus_metrics.py | Updated imports to use servicelib container utilities |
| services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/modules/long_running_tasks_utils.py | Updated imports to use servicelib container utilities |
| services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/api/rest/containers.py | Updated imports to use servicelib container utilities |
| services/agent/tests/unit/test_services_backup.py | Added mock container fixture for testing backup functionality |
| packages/service-library/tests/test_container_utils.py | Updated test imports to use servicelib container utilities |
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
|



What do these changes do?
Fix issue with permissions inside
agent. The same issues was present before inside thedynamic-sidecar. Applying the same fix as before. Moved some command code toservicelib.Related issue/s
How to test
Dev-ops