Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Conversation

@jellonek
Copy link
Contributor

With @mstachowski help - this PR provides resolution to bug reported in #2023
We are still working on our testsuite (this work should turn into mergable PR due this or next week), which also covers this area.

@jellonek
Copy link
Contributor Author

Review request.

@jonboulle jonboulle added this to the v1.2.0 milestone Feb 29, 2016
mtu = config.MTU
}
nameTemplate := fmt.Sprintf("rkt-%s-vtap%%d", podID.String()[0:4])
nameTemplate := fmt.Sprintf("rkt-%s-vtap%d", podID.String()[0:4], interface_number)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like that it used to be some kind of a printf-template before (rkt-3729-vtap%d), but now it is not. Should the code expecting it as a template should be updated then (if there is such somewhere)? Also, the nameTemplate is misleading - it is not a template anymore, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right - the idea was to push template to kernel side (what is working with other network drivers, but not with macvtap) and was modified to prepare this name directly on rkt side.
So, I should update variable name.

@krnowak
Copy link
Collaborator

krnowak commented Feb 29, 2016

Reviewed, but it's not binding - not my area.

@jellonek jellonek force-pushed the jell/2023_fix_macvtap_naming branch from e17fb34 to 5d4a4fb Compare March 1, 2016 09:54
@iaguis
Copy link
Member

iaguis commented Mar 1, 2016

@steveej?

@jellonek
Copy link
Contributor Author

jellonek commented Mar 7, 2016

Review request.

@alban alban changed the title kvm: Fix macvtap using issue. Closes #2023 kvm: Fix macvtap naming issue. Closes #2023 Mar 7, 2016
return errwrap.Wrap(errors.New("failed to enable forwarding"), err)
}

// patch plugin type only for single IPAM run time, then revert this change
Copy link
Member

Choose a reason for hiding this comment

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

Why is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With this method I can run underlying IPAM plugin to obtain IP configuration.
Without reverting this value after process, we loosed information about original plugin (saved later in .json) and this was a reason why gc without that does not work correctly in this configuration.

@alban
Copy link
Member

alban commented Mar 18, 2016

@steveej do you have time for review?

@alban alban modified the milestones: v1.3.0, v1.2.0 Mar 18, 2016
@alban
Copy link
Member

alban commented Mar 31, 2016

@steveej ping?

@alban alban modified the milestones: v1.4.0, v1.3.0 Mar 31, 2016
@alban
Copy link
Member

alban commented Apr 5, 2016

I am not sure that patching n.conf.Type is the correct way to use IPAM from the kvm stage1 but it was already like that before this patch. Could you rebase the patch on origin/master? After that, LGTM if green.

@jellonek
Copy link
Contributor Author

jellonek commented Apr 5, 2016

I'll do this tomorrow.

@iaguis
Copy link
Member

iaguis commented Apr 8, 2016

rebase?

@jellonek jellonek force-pushed the jell/2023_fix_macvtap_naming branch from 5d4a4fb to ce059a7 Compare April 8, 2016 15:30
@jellonek
Copy link
Contributor Author

jellonek commented Apr 8, 2016

Done.

@alban alban merged commit a4b36e6 into rkt:master Apr 8, 2016
@alban
Copy link
Member

alban commented Apr 8, 2016

Thanks!

@mzylowski mzylowski deleted the jell/2023_fix_macvtap_naming branch August 1, 2016 13:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants