Unhelpful error when re-enlisting a previously enlisted node

Bug #1308292 reported by James Troup
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Raphaël Badin

Bug Description

While trying to commission a node, I got the following:

=== Wed, 16 Apr 2014 00:27:22 +0000: successfully enlisted to 'http://91.189.94.35/MAAS/api/1.0/nodes/' without hostname
{"mac_addresses": ["One or more MAC addresses is invalid."]}=============================================

This node has actually been commissioned previously; successfully,
even. The only change I've made since then is swapping PXE from an
on-board 1Gb NIC (eth0) to a 10Gb NIC (eth2).

This is with maas 1.4+bzr1693+dfsg-0ubuntu2.3~ctools0 on Ubuntu 12.04 LTS.

Tags: canonical-is

Related branches

Revision history for this message
James Troup (elmo) wrote :
tags: added: canonical-is
Revision history for this message
James Troup (elmo) wrote :

Right, so, after tcpdumping the traffic between the node and the region controller, I figueed out the problem. When it says invalid, what MAAS means is 'is a duplicate'. I deleted the old version of the node (from when it was PXE booting with eth0) in MAAS and the node was able to successfully declare and commission.

While, once again, there's a element of user error in this bug, at the very least, it'd be nice if the error message was more informative (and didn't consider a 400 response a 'success').

Graham Binns (gmb)
Changed in maas:
status: New → Triaged
importance: Undecided → High
summary: - 'One or more MAC addresses is invalid.' when commissioning
+ Unhelpful error when re-commissioning a previously commissioned node
Raphaël Badin (rvb)
summary: - Unhelpful error when re-commissioning a previously commissioned node
+ Unhelpful error when re-enlisting a previously enlisted node
Revision history for this message
Raphaël Badin (rvb) wrote :

I see another problem here. The script on the node shouldn't say "successfully enlisted" when the enlistment request fails.

Raphaël Badin (rvb)
Changed in maas:
milestone: none → 14.10
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Revision history for this message
Raphaël Badin (rvb) wrote :

I filed bug 1309601 about the faulty "successfully enlisted" output.

Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
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.