deckhouse / deckhouse/deckhouse

[network-gateway] Node can't get address from DHCP due to error "no address available"

Open
#7,155 1 comment 0 reactions 1 assignee View on GitHub

@apolovov is already working on this.

Since Feb 19, 2024.

area/network priority/backlog type/bug
Dominant language
Go
Stars
1.3k
Forks
162
Avg merge
1d 5h
Merged PRs (30d)
653

Description

Preflight Checklist
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
Version

v1.56.6

Expected Behavior

Node can always receive ip address.

Actual Behavior

If there are nodes in a cluster that constantly recreated or there are a lot of scaling operations, then DHCP server can run out of available addresses.

Steps To Reproduce

No response

Additional Information

Values are hardcoded or evaluated:

  rows.append('dhcp-range=' + ','.join(args) + ",24h")
...
  netCalc = ipcalc.Network(config['subnet'])
  network['pool']    = str(netCalc.host_first() + 49) + ',' + str(netCalc.host_last())
  network['netmask'] = str(netCalc.netmask())
  network['router']  = str(netCalc.host_first())
Logs
kubectl -n d8-network-gateway logs dhcp-0 --tail 30
Defaulted container "dhcp" out of: dhcp, render-etc-hosts-with-cluster-domain-aliases (init), init (init)
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:86:ad no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:7e:61 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:86:ad no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:a8:d5 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:7e:61 no address available
dnsmasq-dhcp: DHCPDISCOVER(ens224) 00:50:56:b9:86:ad no address available

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.