maas-enlist-udeb fails enlistment because of missing curl

Bug #1492262 reported by Mathieu Trudel-Lapierre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-enlist (Ubuntu)
Fix Released
Medium
Mathieu Trudel-Lapierre

Bug Description

Looks like maas-enlist-udeb (the maas-enlist function for d-i, which gets run when one selects the ubuntu-server ISO menu option "Multiple server install using MAAS", has been failing at least since Trusty.

Attached are screenshots and logs for attempting a provisioning via MAAS, but the enlist step fails: curl is not found, even though the curl-udeb package is installed.

The system would normally silently fail to enlist and logs be somewhat hard to get since maas-enlist-udeb.postinst forces a shutdown at its end, regardless of the result of running /usr/bin/maas-enlist. The postinst file was modified to remove the shutdown in order to get the logs.

Sep 4 13:09:28 netcfg[11509]: DEBUG: Network config complete
Sep 4 13:09:28 netcfg[11509]: DEBUG: No interface given; clearing /etc/network/interfaces
Sep 4 13:09:28 netcfg[11509]: DEBUG: Writing informative header
Sep 4 13:09:28 netcfg[11509]: DEBUG: Success!
Sep 4 13:09:28 netcfg[11509]: DEBUG: Writing loopback interface
Sep 4 13:09:28 netcfg[11509]: DEBUG: Success!
Sep 4 13:09:28 netcfg[11509]: DEBUG: Writing DHCP stanza for ens3
Sep 4 13:09:28 netcfg[11509]: DEBUG: Success!
Sep 4 13:09:29 main-menu[224]: DEBUG: resolver (libavahi-common3): package doesn't exist (ignored)
Sep 4 13:09:29 main-menu[224]: INFO: Menu item 'maas-enlist-udeb' selected
Sep 4 13:10:05 main-menu[224]: (process:11620): /usr/bin/maas-enlist: line 215: curl: not found
Sep 4 13:10:05 main-menu[224]: DEBUG: resolver (libavahi-common3): package doesn't exist (ignored)
Sep 4 13:10:05 main-menu[224]: INFO: Menu item 'user-setup-udeb' selected
Sep 4 13:10:08 main-menu[224]: INFO: Menu item 'user-setup-udeb' succeeded but requested to be left unconfigured.
Sep 4 13:10:09 main-menu[224]: DEBUG: resolver (libavahi-common3): package doesn't exist (ignored)
Sep 4 13:10:14 main-menu[224]: INFO: Menu item 'save-logs' selected

Related branches

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

As you can see, the curl package is installed; but as logs show the binary is not available.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Changed in maas-enlist (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
status: In Progress → Fix Released
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I've already uploaded a fix to the archive, attaching a code branch which applies the same fix on the upstream branch.

Changed in maas-enlist (Ubuntu):
status: Fix Released → Triaged
Changed in maas:
status: New → Triaged
no longer affects: maas
Changed in maas-enlist (Ubuntu):
status: Triaged → Fix Committed
Changed in maas-enlist (Ubuntu):
status: Fix Committed → Fix Released
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.