Skip to content
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

Make edgeview status info more reliable #3160

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

naiming-zededa
Copy link
Contributor

  • the initial edgeview status info upload triggers the cloud status change to 'Active'
    otherwise the status stays in 'Activiting' while the edgeview is working on device.
    this patch is to make it more reliable.

@@ -1472,7 +1479,8 @@ func PublishEdgeviewToZedCloud(ctx *zedagentContext,
//We queue the message and then get the highest priority message to send.
//If there are no failures and defers we'll send this message,
//but if there is a queue we'll retry sending the highest priority message.
queueInfoToDest(ctx, dest, "global", buf, size, true, false, false,
// The first update is important, and that informs zedcloud the edgeivew is 'Active'
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment would make more sense on line 1454 together with an explanation that the counters are always zero when the first Evinfo is set. Alternatively make it explicitly track whether it is the first one it sends.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense. updated.

Signed-off-by: Naiming Shen <naiming@zededa.com>
@naiming-zededa naiming-zededa force-pushed the naiming-edgeview-info branch from 13c1b06 to 6a2eb04 Compare April 21, 2023 22:47
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@eriknordmark eriknordmark merged commit 00fe153 into lf-edge:master Apr 28, 2023
@naiming-zededa naiming-zededa deleted the naiming-edgeview-info branch April 29, 2023 20:29
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.

2 participants