Skip to content

Fix old edgeAgent remaining#6243

Open
suzusuzu wants to merge 2 commits into
Azure:mainfrom
suzusuzu:fix-aziot-edged-watchdog
Open

Fix old edgeAgent remaining#6243
suzusuzu wants to merge 2 commits into
Azure:mainfrom
suzusuzu:fix-aziot-edged-watchdog

Conversation

@suzusuzu

Copy link
Copy Markdown

Fix #6241

I have added a fix to always remove the old edgeAgent on startup of aziot-edged.

Azure IoT Edge PR checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines and Best Practices

  • I have read the contribution guidelines.
  • Title of the pull request is clear and informative.
  • Description of the pull request includes a concise summary of the enhancement or bug fix.

Testing Guidelines

This check item was skipped because the aziot-edged test was not found.

  • Pull request includes test coverage for the included changes.
  • Description of the pull request includes
    • concise summary of tests added/modified
    • local testing done.

Draft PRs

  • Open the PR in Draft mode if it is:
    • Work in progress or not intended to be merged.
    • Encountering multiple pipeline failures and working on fixes.

Note: We use the kodiakhq bot to merge PRs once the necessary checks and approvals are in place. When it merges a PR, kodiakhq converts the PR title to the commit title, PR description to the commit description, and squashes all the commits in the PR to a single commit. The net effect is that entire PR becomes a single commit. Please follow the best practices mentioned here for the PR title and description

@ghost

ghost commented Mar 29, 2022

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@nimanch

nimanch commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

/azp run

1 similar comment
@nimanch

nimanch commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 7 pipeline(s).

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 7 pipeline(s).

@gordonwang0 gordonwang0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause edgeAgent to be recreated every time Edge Daemon restarts, even if there are no changes to edgeAgent. This is unnecessary and not what we want to do.

A better fix would be to change iotedge config apply to remove edgeAgent if edgeAgent's config changes.

@suzusuzu

suzusuzu commented Apr 1, 2022

Copy link
Copy Markdown
Author

@gordonwang0
Thanks for the review.
I understood, I would like to modify the implementation to remove edgeAgent only if edgeAgent's config changes.

@suzusuzu

suzusuzu commented Apr 2, 2022

Copy link
Copy Markdown
Author

@gordonwang0
I have fixed it. Could you review it again?

@gordonwang0

Copy link
Copy Markdown
Contributor

You won't be able to diff old/new configs from the watchdog; you'll have to change the iotedge tool to diff them before it writes out the new config. That may be a larger change for us to to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Executing iotedge config apply command, but the setting is not reflected.

3 participants