WebUI became unresponsive after disconnecting Remote Cluster Controller (powered node off)

Bug #1376031 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

I powered a remote cluster controller, and right after I did the WebUI became unresponsive, meaning, I was no longer able to load the webui.

This is maybe relateD:

ERROR 2014-09-30 16:58:10,892 maasserver ################################ Exception: Unable to connect to cluster bc111c4d-5417-4d94-b548-7833b928678d; no connections available. ################################
ERROR 2014-09-30 16:58:10,907 maasserver Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 167, in __call__
    result = self.error_handler(e, request, meth, em_format)
  File "/usr/lib/python2.7/dist-packages/piston/resource.py", line 165, in __call__
    result = meth(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api/support.py", line 189, in dispatch
    return function(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/api/node_groups.py", line 183, in register
    nodegroup = register_nodegroup(request, uuid)
  File "/usr/lib/python2.7/dist-packages/maasserver/api/node_groups.py", line 107, in register_nodegroup
    cluster = form.save()
  File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1589, in save
    nodegroup = super(NodeGroupDefineForm, self).save()
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 446, in save
    construct=False)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 99, in save_instance
    instance.save()
  File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroup.py", line 216, in save
    return super(NodeGroup, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/models/timestampedmodel.py", line 55, in save
    return super(TimestampedModel, self).save(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
    update_fields=update_fields, raw=raw, using=using)
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/lib/python2.7/dist-packages/maasserver/signals.py", line 87, in post_save_callback
    callback(instance, original_values, deleted=False)
  File "/usr/lib/python2.7/dist-packages/maasserver/dhcp_connect.py", line 69, in dhcp_post_edit_name_NodeGroup
    configure_dhcp(instance)
  File "/usr/lib/python2.7/dist-packages/maasserver/dhcp.py", line 159, in configure_dhcp
    configure_dhcpv4(nodegroup, ipv4_interfaces, ntp_server)
  File "/usr/lib/python2.7/dist-packages/maasserver/dhcp.py", line 124, in configure_dhcpv4
    return do_configure_dhcp(4, nodegroup, interfaces, ntp_server)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 143, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/maasserver/dhcp.py", line 111, in do_configure_dhcp
    client = getClientFor(nodegroup.uuid)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 106, in wrapper
    return func_in_reactor(*args, **kwargs).wait()
  File "/usr/lib/python2.7/dist-packages/crochet/_eventloop.py", line 219, in wait
    result.raiseException()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/maasserver/rpc/regionservice.py", line 517, in cancelled
    uuid)
NoConnectionsAvailable: Unable to connect to cluster bc111c4d-5417-4d94-b548-7833b928678d; no connections available.

Changed in maas:
milestone: none → 1.7.0
importance: Undecided → Critical
Revision history for this message
Graham Binns (gmb) wrote :

Going to try and reproduce this now.

Revision history for this message
Graham Binns (gmb) wrote :

I can't seem to reproduce this. Can you tell me:

 - What version of MAAS you had installed
 - Specific steps to reproduce the problem?

Changed in maas:
status: New → Incomplete
Revision history for this message
Graham Binns (gmb) wrote :

Also: Please define "unresponsive"– Presumably you mean that you got an Internal Server Error or similar; "couldn't load the web UI" is a bit vague.

Revision history for this message
Graham Binns (gmb) wrote :

I have a feeling that this has been fixed — you never said what "unresponsive" meant, but if you meant that you were getting a white 500 error page, then that was probably related to the error you posted, which we now handle more elegantly.

I'll close this as Fix Committed; please reopen it if you're able to reproduce it.

Changed in maas:
status: Incomplete → 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.