eve icon indicating copy to clipboard operation
eve copied to clipboard

Add volumeattach/volumedetach API

Open zedi-pramodh opened this issue 1 year ago • 2 comments

Longhorn volumes are attached to a node where the app is running. Since the volumes we create in eve are RWO, ie only one node can attach at a time, during failover we need to make sure the node that failed is detached from the volume.

The node that is taking over will automatically attach to the volume if no other node is attached. Also, generally its very safe to detach and then attach to avoid any potential corruption.

zedi-pramodh avatar Oct 15 '24 20:10 zedi-pramodh

I assume there will be a follow-up PR to call this APIs. Is that correct?

@andrewd-zededa can you review?

eriknordmark avatar Oct 15 '24 23:10 eriknordmark

I assume there will be a follow-up PR to call this APIs. Is that correct?

@andrewd-zededa can you review?

That's correct. We are trying to split PRs so that they are independent and can compile, easy to review too.

zedi-pramodh avatar Oct 16 '24 15:10 zedi-pramodh

Can someone bless this one, if there are no further concerns.

zedi-pramodh avatar Oct 24 '24 15:10 zedi-pramodh

LGTM mostly, I think we need a some comments around the volumeattachment logging to ensure they are not downgraded to Function/Trace in the future.

@andrewd-zededa, @zedi-pramodh was this comment addressed?

OhmSpectator avatar Oct 28 '24 08:10 OhmSpectator

LGTM mostly, I think we need a some comments around the volumeattachment logging to ensure they are not downgraded to Function/Trace in the future.

@andrewd-zededa, @zedi-pramodh was this comment addressed?

I don't understand what Andrew meant actually :)

zedi-pramodh avatar Oct 28 '24 23:10 zedi-pramodh

This needs to be rebased on master - the SPDX check workflow has issues with misdetecting issues.

eriknordmark avatar Oct 30 '24 13:10 eriknordmark

This needs to be rebased on master - the SPDX check workflow has issues with misdetecting issues.

Rebased to master and amended the commit

zedi-pramodh avatar Oct 30 '24 21:10 zedi-pramodh

The same Eden issue =((((

OhmSpectator avatar Nov 06 '24 10:11 OhmSpectator

The same Eden issue =((((

Those should be completely unrelated. This code path is not even executed yet.

zedi-pramodh avatar Nov 06 '24 21:11 zedi-pramodh