use early-commands fetch mac based user-data didnt work

Bug #1933404 reported by dahai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

Recently, I have been testing ubuntu-live-20.04 autoinstallation with PXE and a large amount of Servers.
so i need to customize user-data for every single Server when provisioning with PXE.here is my ipxe file:

autoinstall:
  version: 1
  identity:
    hostname: pxe-client
    password: $6$FhcddHFVZ7ABA4Gi$9l4yURWASWe8xEa1jzI0bacVLvhe3Yn4/G3AnU11K3X0yu/mICVRxfo6tZTB2noKljlIRzjkVZPocdf63MtzC0
    realname: pxe
    username: pxe
  keyboard: {layout: hr, toggle: toggle, variant: ""}
  early-commands:
    - set e
    - curl -G -o /autoinstall.yaml http://192.168.1.3:9030/api/current/templates/user-data.yaml -d "macs=6c:92:bf:b4:85:0a"
  locale: en_US
  network:
    network:
      version: 2
      ethernets:
        eth0:
          dhcp4: yes
          dhcp6: no

after PXE boot , it runs into autoinstallation environment then download my customized "auotoinstall.yaml" from my own server which defined my own user-data based on Server's PXE macaddress.then the subiquity goes wrong,so i use the customized "autoinstall.yaml" to test installation it was successfull, i ran out of my mind which went wrong ?

here is the crash logs:

 2021-06-24 03:37:35,124 DEBUG subiquitycore.netplan:111 config for eth0 = {'critical': True, 'dhcp-identifier': 'mac', 'dhcp4': True, 'match': {'macaddress': '6c:92:bf:b4:85:0a'}, 'nameservers': {'addresses': ['192.168.1.3']}, 'set-name': 'eth0'}
 2021-06-24 03:37:35,124 DEBUG subiquitycore.utils:74 arun_command called: ['systemctl', 'mask', '--runtime', 'systemd-networkd.service', 'systemd-networkd.socket']
 2021-06-24 03:37:35,130 ERROR subiquity.server.controllers.mirror:101 geoip lookup failed
 Traceback (most recent call last):
   File "/snap/subiquity/2280/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
     (self.host, self.port), self.timeout, **extra_kw)
   File "/snap/subiquity/2280/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
   File "/snap/subiquity/2280/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
 socket.gaierror: [Errno -3] Temporary failure in name resolution

 During handling of the above exception, another exception occurred:

dahai (zdahai)
description: updated
description: updated
description: updated
dahai (zdahai)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.