-
Notifications
You must be signed in to change notification settings - Fork 56
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
Extend tedge-agent with config and log management #2436
Extend tedge-agent with config and log management #2436
Conversation
Codecov Report
Additional details and impacted files
|
Robot Results
|
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.
tedge-agent
support for log and configuration is working as expected.
However:
- As discussed offline, it would be better to use the symlink approach rather than a
--v2
option. I.e. to have a tedge-agent-v2 symlink to tedge which would include all these plugins. - The
tedge-log-plugin
andtedge-configuration-plugin
are somehow included twice as also wrapped by thetedge
multi-command. - One needs to consider removing the use of
sudo
under the hood, astedge-agent
must then be launched asroot
. This will have to be done only when fully ready to deprecate the current packaging.
Yes.
Yes, those two plugins would be removed once the migration to the new agent is complete. We're keeping it just for the transition phase.
To be discussed. |
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.
Approved. Nice to see this is just a matter of moving around actor builders.
2e33c3f
to
09d8ee9
Compare
Yeah, it was a bit of a surprise to me too, even though it was clear that this shouldn't be that hard, based on the |
09d8ee9
to
f470f46
Compare
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.
Approved
Proposed changes
Instead of creating a new
tedge-device-management
plugin with the additional features, the existing agent itself was extended with the newer feature, guarded behind av1
flag. The extended agent is installed as/usr/bin/tedge-agent-v1
along with the existingtedge-agent
and can be spawned from there, after stopping the runningtedge-agent
instance.No system tests added for this specific variant as existing system tests for the dedicated operation plugins will be updated later by removing those plugins and using the updated agent instead.
Types of changes
Paste Link to the issue
#2433
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments