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

Incorrect bond name #32

Closed
mmirecki opened this issue Apr 11, 2022 · 9 comments
Closed

Incorrect bond name #32

mmirecki opened this issue Apr 11, 2022 · 9 comments

Comments

@mmirecki
Copy link
Contributor

mmirecki commented Apr 11, 2022

The bond-cni uses the "name" parameter from the config to name the bond interface it creates.
This is not correct, as the cni spec says that the CNI_IFNAME parameter should be used to name the interface. It also says that naming the ifc differently is not allowed:
CNI_IFNAME: Name of the interface to create inside the container; if the plugin is unable to use this interface name it must return an error.

Not conforming to this can lead to potential issues. One is an issues with plugin chaining. A metaplugin following the bond-cni will assume the name of the created interface is that found in CNI_IFNAME, and if the names differ it will fail trying to act on an incorrect (not-existing) interface.

We can fix this by either:

  • getting rid of the "name" parameter in the config - api will be backwards incompatible
  • ensuring the value in both locations is the same, returning an error otherwise - not nice, but will not break the api
@mmirecki
Copy link
Contributor Author

mmirecki commented May 9, 2022

@killianmuldoon @Eoghan1232 could you please take a look?

@Eoghan1232
Copy link
Collaborator

apologies on delay, never got any notification on this.

Hi @mmirecki , agreed that the above is an issue.
I would prefer this approach:

getting rid of the "name" parameter in the config - api will be backwards incompatible

@mmirecki
Copy link
Contributor Author

mmirecki commented May 9, 2022

np, I only realized today that no one was added to the assignees.

Let me add a PR for this.

@killianmuldoon
Copy link

Looks right to me - by the way, I'm not working in this area any more so I'm not really the right person to review these PRs and issues 🙂

@mmirecki
Copy link
Contributor Author

mmirecki commented May 9, 2022

Fix proposal here:
#35

@mmirecki
Copy link
Contributor Author

mmirecki commented May 9, 2022

Looks right to me - by the way, I'm not working in this area any more so I'm not really the right person to review these PRs and issues slightly_smiling_face

I don't think anyone other than you and Eoghan can approve/merge here, so please don't abandon the repo :)

@killianmuldoon
Copy link

I don't think anyone other than you and Eoghan can approve/merge here, so please don't abandon the repo :)

@Eoghan1232 has it handled 🙂 But it would definitely be a good idea to add someone else as a maintainer. I'm happy to stay on the list to have some redundancy there - I'm still working in Kubernetes stuff, just no longer in the network plumbing group so I don't have any bandwidth to dedicate here.

@Eoghan1232
Copy link
Collaborator

@eoghanlawless is named as a maintainer on this repo, as well as @esiperu-est from what I see from the meeting notes.

@Eoghan1232
Copy link
Collaborator

Closing issue as PR has now been merged.

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

No branches or pull requests

3 participants