-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
pod create doesn't set static mac address for shared network #8385
Comments
if not with
and it had another problem, it will disaply wrong value, fix this in #8386
|
@baude PTAL |
@zhangguanzhang Good to close since #8386 is merged? |
The code I submitted is only to fix the display problem. After joining the network, the mac setting fails. I debugged it and did not find the problem. |
OK - thanks for the update. |
The cni plugin `tuning` is required to set a custom mac address. This plugin is configured in the default cni config file which is packaged with podman but was not included the generated config form `podman network create`. Fixes containers#8385 Signed-off-by: Paul Holzinger <[email protected]>
@ericzolf I found the problem. The I opened #8467 to include this by default in the future. |
I can open a separate issue but: is there somewhere a documentation of the network plugins? I noticed that tuning was missing but I always thought it was something specific to the default network. |
Networking is handled by cni. Documentation is available here: https://www.cni.dev/docs/ |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The pod create command doesn't apply the static MAC address to the infrastructure container, even though it properly applies a static IP address, and does seem to store the MAC address.
Steps to reproduce the issue:
podman pod create --name mypod --network podnw [--ip 10.89.0.222] --mac-address 42:43:44:00:00:01
(with or without static IP doesn't make a difference)podman run --rm --pod mypod --name nginx nginx
podman inspect xxx-infra
Describe the results you received:
The MacAddress is random.
Describe the results you expected:
The output shows the static mac-address as described by the man page podman-pod-create.
Additional information you deem important (e.g. issue happens only occasionally):
The command
podman pod inspect mypod
shows the following output, which shows that some static mac address is stored, but apparently never used (the static IP address indeed works):(not sure about the MAC address but it looks like it)
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Vagrant VM as created with https://gitlab.com/EricPublic/miscericlaneous/-/tree/master/podman_playground (access is free, you just need a GitLab account).
The text was updated successfully, but these errors were encountered: