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

requested IP address 172.18.24.103 is not available in range set 172.18.24.1-172.18.24.254 #8403

Closed
laf0rge opened this issue Nov 18, 2020 · 3 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue

Comments

@laf0rge
Copy link

laf0rge commented Nov 18, 2020

  • A fresh, plain, new installation of podman on Debian 10 using devel:/kubic:/libcontainers:/stable
  • a fresh, never used new docker network was created with the 172.17.24.0/24 range: podman network create --internal --subnet 172.18.24.0/24 ttcn3-gbproxy-test
  • no containers running on on the system (verified with podman ps)
  • trying to execute the container with a static IP well within that range of the network: podman run --rm --network ttcn3-gbproxy-test --ip 172.18.24.10 --ulimit core=-1 -v /tmp/tmp.sfWj6EpGoL/sgsn:/data --name nonjenkins-sgsn -d root/osmo-sgsn-master /bin/sh -c osmo-gbproxy -c /data/osmo-gbproxy.cfg >/data/osmo-gbproxy.log 2>&1

Result: Error: error configuring network namespace for container b2070138703930fdc35ea1367b0470c572dc3bd81758bf6e8fced27584fd7b36: failed to allocate for range 0: requested IP address 172.18.24.10 is not available in range set 172.18.24.1-172.18.24.254

# podman network inspect ttcn3-gbproxy-test
[
  {
    "cniVersion": "0.4.0",
    "name": "ttcn3-gbproxy-test",
    "plugins": [
      {
        "bridge": "cni-podman1",
        "hairpinMode": true,
        "ipam": {
          "ranges": [
            [
              {
                "gateway": "172.18.24.1",
                "subnet": "172.18.24.0/24"
              }
            ]
          ],
          "routes": [
            {
              "dst": "0.0.0.0/0"
            }
          ],
          "type": "host-local"
        },
        "isGateway": false,
        "type": "bridge"
      },
      {
        "capabilities": {
          "portMappings": true
        },
        "type": "portmap"
      },
      {
        "backend": "",
        "type": "firewall"
      },
      {
        "domainName": "dns.podman",
        "type": "dnsname"
      }
    ]
  }
]
@mheon
Copy link
Member

mheon commented Nov 18, 2020

Any chance you deleted/recreated a container using that static IP previously? We could have a leftover lease file for the IP.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@mheon
Copy link
Member

mheon commented Dec 19, 2020

Given the lack of any further info from the reporter, I'm going to assume this will be fixed in our next release via #8692 and close

@mheon mheon closed this as completed Dec 19, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue
Projects
None yet
Development

No branches or pull requests

2 participants