-
Notifications
You must be signed in to change notification settings - Fork 3k
podman: add support for specifying MAC #4451
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
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
7bc500c to
88b88d9
Compare
b6d6bdf to
ed27f2f
Compare
|
@rhatdan I've tried |
74236df to
e5ddfe5
Compare
libpod did not migrate to using go 1.13 for the vendor checks yet. You can run the following command and commit the changes which should unblock this PR: $ podman run --privileged --rm --env HOME=/root --env GOPROXY=https://proxy.golang.org -v `pwd`:/src -w /src golang:1.12 make vendor |
thanks for the black magic! It did the trick. I've updated the patch that adds |
cc6a756 to
e49488f
Compare
Signed-off-by: Giuseppe Scrivano <[email protected]>
`go get github.com/cri-o/ocicni@deac903fd99b6c52d781c9f42b8db3af7dcfd00a` I had to fix compilation errors in libpod/networking_linux.go --- ocicni.Networks has changed from string to the structure NetAttachment with the member Name (the former string value) and the member Ifname (optional). I don't think we can make use of Ifname here, so I just map the array of structures to array of strings - e.g. dropping Ifname. --- The function GetPodNetworkStatus no longer returns Result but it returns the wrapper structure NetResult which contains the former Result plus NetAttachment (Network name and Interface name). Again, I don't think we can make use of that information here, so I just added `.Result` to fix the build. --- Issue: containers#1136 Signed-off-by: Jakub Filak <[email protected]>
I basically copied and adapted the statements for setting IP. Closes containers#1136 Signed-off-by: Jakub Filak <[email protected]>
Signed-off-by: Giuseppe Scrivano <[email protected]>
| $(GO) mod verify | ||
|
|
||
| vendor-in-container: | ||
| podman run --privileged --rm --env HOME=/root -v `pwd`:/src -w /src docker.io/library/golang:1.12 make vendor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to move everyone to golang 1.13.
@vrothberg Correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need first to update the CI image, if I use golang:1.13 the vendor check fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI is currently using 1.12 already which means we can't use 1.13 on our dev machines. The change here is not needed.
|
tests are passing |
|
for reviewers: I've changed this chunk: https://github.com/containers/libpod/pull/4451/files#diff-39e56de7ab505f865271f02541bd0857R840-R855 |
|
LGTM |
| IPBefore.WaitWithDefaultTimeout() | ||
| Expect(IPBefore.ExitCode()).To(Equal(0)) | ||
|
|
||
| MACBefore := podmanTest.Podman([]string{"inspect", "-l", "--format={{.NetworkSettings.MacAddress}}"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a non-checkpoint test? Set --mac-address ab:cd:ef:gh and verify that it's set in the container?
|
Code LGTM but I would like another test |
Signed-off-by: Giuseppe Scrivano <[email protected]>
test added |
|
LGTM |
|
/lgtm |
|
Awesome job @filak-sap and @giuseppe |
|
Thank you @giuseppe ! BTW What did I do wrong? |
rebase of #4058
Signed-off-by: Jakub Filak [email protected]
Signed-off-by: Giuseppe Scrivano [email protected]