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

feat(app node): register csi nodes to control plane #730

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

Abhinandan-Purkait
Copy link
Member

@Abhinandan-Purkait Abhinandan-Purkait commented Jan 31, 2024

App Node: Represents a CSI node or a node where io app/initiator would be situated.

Changes in this PR:
- This adds the registration logic for csi-node to control-plane via rest api.
- This csi-node info would be used to issue FIFREEZE and FITHAW via csi-controller.
- Moves the rest api client to the common csi-driver library to be used by both csi-controller and csi-node.

control-plane/csi-driver/src/client.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/controller/main.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/main_.rs Outdated Show resolved Hide resolved
@Abhinandan-Purkait Abhinandan-Purkait force-pushed the csi_registration branch 5 times, most recently from a7422ae to 5271996 Compare February 2, 2024 10:37
control-plane/csi-driver/src/bin/node/main_.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/main_.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/main_.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/registration.rs Outdated Show resolved Hide resolved
control-plane/csi-driver/src/bin/node/main_.rs Outdated Show resolved Hide resolved
@Abhinandan-Purkait Abhinandan-Purkait force-pushed the csi_registration branch 3 times, most recently from 3ffbefb to 6aca045 Compare February 6, 2024 13:41
@Abhinandan-Purkait
Copy link
Member Author

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 8, 2024
@bors-openebs-mayastor
Copy link

try

Build failed:

@Abhinandan-Purkait
Copy link
Member Author

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 8, 2024
@bors-openebs-mayastor
Copy link

try

Build failed:

@Abhinandan-Purkait
Copy link
Member Author

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Feb 8, 2024
@bors-openebs-mayastor
Copy link

try

Build succeeded:

Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
… tokio join instead of select

Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
@Abhinandan-Purkait
Copy link
Member Author

bors merge

bors-openebs-mayastor bot pushed a commit to openebs/mayastor-extensions that referenced this pull request Feb 13, 2024
415: feat(app node): update csi node with latests args to enable registration r=Abhinandan-Purkait a=Abhinandan-Purkait

### Changes in this PR

1. Adds the `dnsPolicy: ClusterFirstWithHostNet` so that endpoints are discoverable by dns name.
2. Adds the args to specify rest-api endpoint and enabled registration.

### Why are the changes needed?

1. These changes are needed because csi node now should register itself as an app node to the control-plane.
2. This app node info would be used in snapshot creation to issue FIFREEZE and FITHAW to the filesystem for consistency if enabled. 

Related Control Plane PR --> openebs/mayastor-control-plane#730

Co-authored-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 881cdd2 into develop Feb 13, 2024
4 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the csi_registration branch February 13, 2024 09:36
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