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

cannot unmarshal InspectNetworkSettings.NetworkSettings.SecondaryIPAddresses of type string" #401

Open
victorserbu2709 opened this issue Dec 16, 2024 · 0 comments · May be fixed by #402
Open

Comments

@victorserbu2709
Copy link

I encountered following error while trying to create a patch for hashicorp/nomad#11085

   2024-12-16T22:24:41.186+0200 [ERROR] client.driver_mgr.nomad-driver-podman: failed to inspect container: driver=podman @module=podman error="json: cannot unmarshal object into Go struct field InspectNetworkSettings.NetworkSettings.SecondaryIPAddresses of type string" timestamp="2024-12-16T22:24:41.185+0200"
    2024-12-16T22:24:41.186+0200 [DEBUG] client.driver_mgr.nomad-driver-podman: Cleaning up: driver=podman @module=podman container=2274a57f2913499b6ac48cfe6ca56e5418aa8b30e21790827e8bec731fb830da timestamp="2024-12-16T22:24:41.185+0200"
    2024-12-16T22:24:41.589+0200 [DEBUG] nomad: memberlist: Stream connection from=127.0.0.1:57566
    2024-12-16T22:24:44.847+0200 [DEBUG] http: request complete: method=GET path=/v1/agent/health?type=client duration="216.508µs"
    2024-12-16T22:24:49.292+0200 [DEBUG] http: request complete: method=GET path=/v1/agent/health?type=server duration=1.193728ms
    2024-12-16T22:24:51.600+0200 [DEBUG] nomad: memberlist: Stream connection from=127.0.0.1:42830

If I do podman inspect on a container with multiple network interface I obtain

...
          "NetworkSettings": {
               "EndpointID": "",
               "Gateway": "172.26.64.1",
               "IPAddress": "172.26.64.36",
               "IPPrefixLen": 20,
               "SecondaryIPAddresses": [
                    {
                         "Addr": "172.27.64.31",
                         "PrefixLength": 24
                    }
               ],
               "IPv6Gateway": "",
               "GlobalIPv6Address": "",
               "GlobalIPv6PrefixLen": 0,
               "MacAddress": "72:a4:c6:5c:3f:e8",
               "AdditionalMACAddresses": [
                    "72:b9:01:bf:9f:e1"
               ],
               "Bridge": "",
...
@victorserbu2709 victorserbu2709 linked a pull request Dec 16, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant