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

NSM connection (VIPs and routes) update in TAPA #178

Merged
merged 3 commits into from
Apr 12, 2022
Merged

Conversation

LionelJouin
Copy link
Member

@LionelJouin LionelJouin commented Mar 10, 2022

@uablrek
Copy link
Contributor

uablrek commented Mar 22, 2022

What version of NSM is required? Not v1.2.0 I assume?

@LionelJouin
Copy link
Member Author

It requires the latest version in the main branch of the nsmgr and forwarder-vpp + this PR: networkservicemesh/sdk-kernel#433. Also, the NSM dependencies of Meridio must be updated (will be done in a separate PR when NSM 1.3 will be available).

* The initial NSM request does not contain any information about the ip
  context. Once the conduit connected (sucessful NSM request), the VIP
  watcher will call SetVIPs which will update (new request) the NSM
  connection (SrcIPs and policies).

* the initial SrcIPs are saved in the conduit struct (to not mix the
  target IPs and VIPs)

* The previous code has been removed
* The last privileges required (NET_ADMIN) has been removed
@LionelJouin LionelJouin marked this pull request as ready for review March 30, 2022 08:42
@LionelJouin
Copy link
Member Author

I rebased master, NSM has been uplifted and all PRs requireed are merged.
So now, it is possible to try it easily.

@uablrek
Copy link
Contributor

uablrek commented Mar 31, 2022

Can't say much about the code since my NSM knowledge is limited but I have applied this PR, built and tested and it seem to work fine.

The forwarder-ovs was used since forwarder-vpp is broken in NSM v1.3.0-rc.1.

vipsSlice = append(vipsSlice, vip)
var err error
// update the NSM connection
// TODO: retry if error returned?
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe nsm's retry client could come handy here

@LionelJouin LionelJouin requested a review from zolug April 11, 2022 20:30
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