-
Notifications
You must be signed in to change notification settings - Fork 790
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
macvlan: error killing pod: Link not found #953
Comments
But I tested the code, It works well.
|
I think the error is coming from the loadConf function of the del command. Probably when trying to get the MTU of the master. The "Link not found" with capital L is an error string returned by netlink. I'll have a look. |
Yeah, Agree, It looks like only this is where errors can happen. I would like to fix this, May I? |
sure, thanks |
It looks like we can't change the code of |
what happens with the macvlan interfaces after the master is deleted? Are they removed as well? |
yes.
|
cool Another thing, what's the purpose of calling the loadConf function in the del command. It seems to me that we only need to access the n.IPAM parameter. If that's the case, we only need this
We could replace loadConf with this in the del command (changing the error message "failed to unmarshall config" or something like that). Just had a quick look. Please confirm this. |
Yeah, I just checked the code, We only need n.IPAM, we can replace loadConf. But I'm not sure if additional parameters will be needed in the future. |
and they will be there, what I'm trying to say is that we don't need the other parts of loadConf |
I mean we are not sure If we need the "other parts" of loadConf in the future (although most likely it is not needed😄) |
I checked the code, this may have happened in
plugins/plugins/main/macvlan/macvlan.go
Line 407 in f955052
Link not found != link not found?
The text was updated successfully, but these errors were encountered: