Skip to content

Multiple DHCP network interfaces fail to initialize #205

@benok

Description

@benok

When configuring two or more network interfaces to use DHCP, the setup becomes very unstable:

rancher:
  network:
    interfaces:
      eth0:
        dhcp: true
      eth1:
        dhcp: true

Looking at the logs from sudo system-docker logs network, this appears to be caused by conflicts when multiple dhcpcd processes start simultaneously(by goroutine):

[            ] netconf:info: Apply Network Config
[            ] netconf:info: Running DHCP on eth1: dhcpcd -MA4 --timeout 10 -w --debug eth1
[            ] netconf:info: Running DHCP on eth0: dhcpcd -MA4 --timeout 10 -w --debug eth0
main: pidfile_lock: /var/run/dhcpcd/pid: Operation canceled
dhcpcd-10.0.1 starting
[            ] netconf:error: Failed to run dhcpcd for eth1: exit status 1
spawned manager process on PID 526

This issue appears to be related to rancher#2986.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions