An unknown computer does not appear in Medulla or GLPI after Register PXE
Applies to: Medulla / Imaging / PXE
Version: All
Environment: On-Premise
Category: Imaging / PXE
Context
During a PXE deployment with Medulla, an unknown computer may sometimes fail to appear in Medulla or GLPI after the Register step.
Under normal operation, the PXE process creates an XML inventory file that is then automatically processed by the Medulla service responsible for registering computers.
Symptom:
The computer boots correctly via PXE, the Register menu runs, but no computer subsequently appears in Medulla or GLPI.
0. Overall flow
Here is the overall flow executed during a PXE registration.
- The computer boots via PXE: ipxe is called via the relay’s tftpd-hpa
- ipxe requests the menu: an HTTP request is sent to the relay’s apache2 server, which forwards it to the main server
- menu selection: davos is loaded
- davos opens the mount point to relay:/var/lib/pulse2/imaging/inventories
- request for the hostname
- generates the inventory and writes it to the mount point
- the pulse2-register-pxe service detects (via inotify) the creation of a new file in /var/lib/pulse2/imaging/inventories
- pulse2-register-pxe sends the inventory to pulse2-package-server
- pulse2-package-server sends the inventory to /usr/sbin/message-sender
- message-sender sends the inventory to substitute-inventory
- substitute-inventory processes the inventory registration
- pulse2-package-server asks mmc to create a menu for the new inventory
- mmc creates the menu
- End of registration.
1. Verify the presence of PXE inventory files
When a computer goes through the Register step, an XML inventory file is automatically created in the following directory:
/var/lib/pulse2/imaging/inventories/
From your Medulla server, run the following command:
ls -lah /var/lib/pulse2/imaging/inventories/
Normal case
The directory should be empty, or the files should disappear shortly after they are created.
This means that the PXE registration service is processing inventories correctly.
Abnormal case
If one or more .xml files remain in this directory, this generally means that the PXE processing service is no longer processing the inventory files.
Important:
The persistent presence of XML files in this directory usually indicates that the pulse2-register-pxe.service service has stalled.
2. Restart the PXE registration service
Restart the service responsible for processing PXE inventories:
systemctl restart pulse2-register-pxe.service
Once the service has restarted, check whether the XML files automatically disappear from the folder:
ls -lah /var/lib/pulse2/imaging/inventories/
Expected result
- The XML files should be processed and then automatically deleted
- The computer should then appear in Medulla
- Depending on your configuration, the device should also be synchronized in GLPI
3. Check the service status
To verify that the service has started correctly:
systemctl status pulse2-register-pxe.service
The service must appear in one of the following states:
active (running)
Caution:
If the service is in a failed or inactive state, or is restarting in a loop, check the logs to identify the error.
4. Check the service logs
The PXE registration service log is available here:
/var/log/mmc/pulse2-register-pxe.log
Display the latest log entries:
tail -f /var/log/mmc/pulse2-register-pxe.log
Or view the latest errors:
tail -100 /var/log/mmc/pulse2-register-pxe.log
Items to check in the logs
- XML parsing error
- Database connection error
- Communication problem with GLPI
- Permissions error on inventory files
- Registration process crash
5. Additional checks
If the problem persists after restarting the service, check the following:
| Item | Check |
|---|---|
| PXE boot | The computer reaches the Register menu |
| DHCP | The PXE options are correct |
| XML storage | The files are created in /var/lib/pulse2/imaging/inventories/ |
| PXE service | pulse2-register-pxe.service is active |
| Logs | No blocking errors in the log |
| GLPI | Synchronization is working if used |
Default values
| Item | Value |
|---|---|
| PXE inventory directory | /var/lib/pulse2/imaging/inventories/ |
| PXE service | pulse2-register-pxe.service |
| Log file | /var/log/mmc/pulse2-register-pxe.log |
| Restart command | systemctl restart pulse2-register-pxe.service |