Comment 0 for bug 2008454

Revision history for this message
Nobuto Murata (nobuto) wrote : Commissioning intermittently fails with No such file or directory: '/var/run/lldpd.socket'

maas: 1:3.3.0-13159-g.1c22f7beb-0ubuntu1~22.04.1

For example in my test bed, 2 out of 7 machines fail at commissioning with the same error.

[maas-capture-lldpd]
Traceback (most recent call last):
  File "/tmp/user_data.sh.4Jn6tY/scripts/commissioning/maas-capture-lldpd", line 53, in <module>
    lldpd_capture("/var/run/lldpd.socket", 60)
  File "/tmp/user_data.sh.4Jn6tY/scripts/commissioning/maas-capture-lldpd", line 41, in lldpd_capture
    time_ref = getmtime(reference_file)
  File "/usr/lib/python3.8/genericpath.py", line 55, in getmtime
    return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: '/var/run/lldpd.socket'

Interestingly enough, I only see the "Installing apt packages for 20-maas-01-install-lldpd" message from the 5 succeeded machines in rsyslog although all 7 machines should have an identical commissioning configuration.

$ sudo grep -i 'Installing apt packages for 20-maas-01-install-lldpd' -l /var/log/maas/rsyslog/*/*/messages
/var/log/maas/rsyslog/crack-chow/2023-02-22/messages
/var/log/maas/rsyslog/enough-camel/2023-02-22/messages
/var/log/maas/rsyslog/open-bee/2023-02-22/messages
/var/log/maas/rsyslog/quick-gopher/2023-02-22/messages
/var/log/maas/rsyslog/wanted-louse/2023-02-22/messages