maas and curtin do not indicate failure reasonably

Bug #1237215 reported by Adam Stokes
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Newell Jensen
curtin
Fix Released
Medium
Newell Jensen

Bug Description

Adam had an issue where curtin was failing installation (due to bug 1236544), but he didn't know why. He reported it as failed running of late commands, but the late commands were not being run because curtin was failing and stopping execution.

There is no clear evidence of that on console or in maas in any way.

We really need to improve curtin and maas integration to get logging going back to maas syslog, and also make curtin clear on the console that something has gone wrong.

Related branches

Revision history for this message
Adam Stokes (adam-stokes) wrote :

Should note this is from cloud-tools pocket on cloud archive, here are my package versions

ubuntu@maas:~$ dpkg -l|grep maas
ii maas 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server
ii maas-cli 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Client Tool
ii maas-cluster-controller 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Cluster Controller
ii maas-common 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server
ii maas-dhcp 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server - DHCP Configuration (meta-package)
ii maas-dns 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server - DNS configuration (metapackage)
ii maas-region-controller 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server
ii python-django-maas 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server - (django files)
ii python-maas-client 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS API Client - (python files)
ii python-maas-provisioningserver 1.4+bzr1656+dfsg-0ubuntu2~ctools0 Ubuntu MAAS Server
ubuntu@maas:~$ dpkg -l|grep curtin
ii curtin-common 0.1.0~bzr87-0ubuntu1~ctools0 Library and tools for curtin installer
ii python-curtin 0.1.0~bzr87-0ubuntu1~ctools0 Library and tools for curtin installer

Revision history for this message
Raphaël Badin (rvb) wrote :

> [Wed Oct 09 01:56:36 2013] [crit] [client 192.168.122.1] configuration error: couldn't perform authentication. AuthType not set!: /MAAS/static/images/amd64/generic/precise/xinstall/root.tar.gz

The "configuration error" is suspicious… can you check is apache's config is all right?

Scott Moser (smoser)
summary: - late_commands in maas provision node fails
+ maas and curtin do not indicate failure reasonably
description: updated
description: updated
Scott Moser (smoser)
Changed in maas:
status: New → Confirmed
Changed in curtin:
status: New → Confirmed
Changed in maas:
importance: Undecided → Medium
Changed in curtin:
importance: Undecided → Medium
Changed in maas:
status: Confirmed → Triaged
importance: Medium → High
tags: added: debugging
Revision history for this message
Julian Edwards (julian-edwards) wrote :

This is possibly a dupe of bug 1235339 but I am leaving them separate as this may be Curtin-specific.

Revision history for this message
Mark Duncan (eattheapple) wrote :

I've been testing in 14.04 and I am unable to deploy either saucy or trusty using curtin (I haven't tried the others yet...importing the boot images is extremely time consuming). It always fails at the same spot when trying to run the part-001 script. See bug 1273296 which has been marked a duplicate of this one.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I tried a Curtin deployment yesterday and it worked, can you try again?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

See also bug 1303925, which is related and possibly also a dupe.

Revision history for this message
Mark Duncan (eattheapple) wrote :

Julian, I just rebuilt my MAAS server, imported pxe boot images, and deployed a Trusty image successfully using Curtin. Seems to work great now!

(only hiccup was with Wake-on-LAN...since it's not a dependency, the wakeonlan package doesn't get installed and there is no feedback in the MAAS interface about this, but that's a separate and minor issue)

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: none → 1.6.1
Changed in maas:
status: Fix Committed → In Progress
Raphaël Badin (rvb)
tags: added: robustness
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Changed in curtin:
assignee: nobody → Newell Jensen (newell-jensen)
Revision history for this message
Newell Jensen (newell-jensen) wrote :

Setting to "fix committed" for both MAAS (rev. 2683) and curtin (rev. 163) since all branches for this functionality have landed.

Changed in curtin:
status: Confirmed → Fix Committed
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Changed in curtin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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