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

Bug #1293676 reported by Tycho Andersen on 2014-03-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Critical
Gavin Panella
1.5
Critical
Gavin Panella
maas (Ubuntu)
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

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) on 2014-03-17
tags: added: cloud-installer
Graham Binns (gmb) wrote :

Crash, so triaged as critical.

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
milestone: none → 14.04
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) on 2014-03-28
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Julian Edwards (julian-edwards) wrote :

Gavin, did you fix this?

Gavin Panella (allenap) wrote :

Still in progress.

Gavin Panella (allenap) on 2014-04-02
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 14.04 → none
Raphaël Badin (rvb) on 2014-04-03
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  Edit
Everyone can see this information.

Other bug subscribers