Page MenuHomePhabricator

Installer assumes eth0 is the used interface
Closed, ResolvedPublic

Description

As part of the ulsfo cache hosts refresh, it was found by @BBlack and @RobH that our current installation process assumes eth0 as the used interface, see modules/install_server/files/autoinstall/scripts/early_command.sh:6:

IP=$(ip address show dev eth0 | egrep '^[[:space:]]+inet ' | cut -d ' ' -f 6 | cut -d '/' -f 1)

and it fails if the host is cabled on a different interface. We should probably implement there the same logic of modules/base/lib/facter/interface_primary.rb.

Details

Event Timeline

Change 357608 had a related patch set uploaded (by Faidon Liambotis; owner: Faidon Liambotis):
[operations/puppet@production] autoinstall: avoid hardcoding eth0

https://gerrit.wikimedia.org/r/357608

Change 357611 had a related patch set uploaded (by Filippo Giunchedi; owner: Filippo Giunchedi):
[operations/puppet@production] grafana: unhardcode eth0 from server-board

https://gerrit.wikimedia.org/r/357611

Change 357608 merged by Faidon Liambotis:
[operations/puppet@production] autoinstall: avoid hardcoding eth0

https://gerrit.wikimedia.org/r/357608

faidon claimed this task.

Fixed, as above.