Skip to content

Enable etcd snapshots#142

Open
zedi-pramodh wants to merge 2 commits intolf-edge:mainfrom
zedi-pramodh:enable-etcd-snapshots
Open

Enable etcd snapshots#142
zedi-pramodh wants to merge 2 commits intolf-edge:mainfrom
zedi-pramodh:enable-etcd-snapshots

Conversation

@zedi-pramodh
Copy link

Add Optional capabilities to eve-api
etcd-snapshots : this flag will be set to true in eve-k builds and false in eve-kvm builds
volume-snapshots: for now this flag will be set to false in eve-k builds until this feature is implemented and will be set to true in eve-kvm builds since eve-kvm already supports this feature.

Copy link
Contributor

@naiming-zededa naiming-zededa left a comment

Choose a reason for hiding this comment

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

LGTM

// Device supports etcd snapshots (e.g. eve-k flavor)
bool etcd_snapshot = 3;
// Device supports volume snapshots; on eve-k flavor this should be set to false
bool volume_snapshots = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see how volume_snapshots can be added this way, because the controller will presumably interpret all old EVE versions (which do not know about this even though some versions support snapshot) as sending false (since that is the default value of a boolean in protobuf).

So if you want this you'd need to have a no_volume_snapshot and backport that to 16.0.0 where eve-k would set it to true to indicate it does not support the volume snapshots. I don't know if that is worth it as opposed to having EVE-k generate a helpful error message.

Copy link
Author

Choose a reason for hiding this comment

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

Sure I will remove volume_snapshots and amend the commit

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.

the etcd_snapshot makes sense.

Pramodh Pallapothu and others added 2 commits March 18, 2026 18:37
For eve-k: etcd_snapshot = true
For non eve-k: etcd_snapshot = false

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
@zedi-pramodh zedi-pramodh force-pushed the enable-etcd-snapshots branch from 090ae83 to ec9cd92 Compare March 19, 2026 01:40
@zedi-pramodh
Copy link
Author

Amended the commit.

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

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.

3 participants