internal server error when marking nodes as using fast-path installer

Bug #1293676 reported by Tycho Andersen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Gavin Panella
1.5
Fix Released
Critical
Gavin Panella
maas (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I select a group of nodes in the node list and select 'Mark nodes as using the fastpath installer' I get an internal server error:

ERROR 2014-03-17 18:43:35,974 maasserver ################################ Exception: The use-fastpath-installer tag is defined with an expression. This expression must be updated to make this node boot with the Fast Path Installer. ################################
ERROR 2014-03-17 18:43:35,983 maasserver Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/views/nodes.py", line 223, in post
    return super(NodeListView, self).post(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 171, in post
    return self.form_valid(form)
  File "/usr/lib/python2.7/dist-packages/maasserver/views/nodes.py", line 235, in form_valid
    stats = form.save()
  File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1206, in save
    return self.perform_action(action_name, system_ids)
  File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1163, in perform_action
    action_instance.execute(allow_redirect=False)
  File "/usr/lib/python2.7/dist-packages/maasserver/node_action.py", line 198, in execute
    self.node.use_fastpath_installer()
  File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 872, in use_fastpath_installer
    "The use-fastpath-installer tag is defined with an "
RuntimeError: The use-fastpath-installer tag is defined with an expression. This expression must be updated to make this node boot with the Fast Path Installer.

Related branches

Revision history for this message
Tycho Andersen (tycho-s) wrote :

For the record, I created the tag myself with definition=true(), so the error is right (i.e. you are trying to set particular nodes on a tag with a definition); I just don't like getting dumped to a page that says "Internal Server Error".

Tycho Andersen (tycho-s)
tags: added: cloud-installer
Revision history for this message
Graham Binns (gmb) wrote :

Crash, so triaged as critical.

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
milestone: none → 14.04
Revision history for this message
Julian Edwards (julian-edwards) wrote :

This is related to bug 1293701. Both require a custom error to be printed when there's a problem with a bulk action. Additionally, this one needs to catch RuntimeError in BulkNodeActionForm.perform_action().

Gavin Panella (allenap)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Gavin, did you fix this?

Revision history for this message
Gavin Panella (allenap) wrote :

Still in progress.

Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 14.04 → none
Raphaël Badin (rvb)
Changed in maas:
milestone: none → 14.10
Changed in maas:
milestone: 14.10 → none
status: Fix Committed → Fix Released
Changed in maas (Ubuntu):
status: New → 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.