[2.5] Rack DNS config Failed to update DNS configuration and showed an UNHANDLED error instead of a nice error message why

Bug #1782009 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

I have a 4 node MAAS configuration with:

2 Region/racks (maas00, node01)
2 rack controllers (node03, node04)

I upgraded all of the machines, however, maas00, node03, node04 upgraded first, and successfully connected to the main region/rack (maas00), which is what /etc/maas/rackd.conf points to in node03/node04.

After the upgrade, I noticed the following traceback in the rack controllers (node03, node04):

2018-07-16 19:06:53 provisioningserver.rackdservices.dns: [critical] Failed to update DNS configuration.
        Traceback (most recent call last):
        Failure: twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', "Unhandled Command: b'GetDNSConfiguration'")

Once the node01 finished installing , i continued to see this issue, even in the logs of the region/rack rack.log. To fix the issue I had to:

1. In maas00,node01 I stopped maas-regiond/maas-rackd. Once stoped, I started the services again.
2. In maas00,node01 I started services again
3. restarted maas-rackd on node02,node03
4. No longer see the error messages.

The expectation is that errors like this should have correct error handling and MAAS shouldn't have had an unhandled error. Instead MAAS should have checked for what it expected, and since it didn't find it, show an error that implies the version mistmatch

description: updated
Changed in maas:
milestone: none → 2.5.0
importance: Undecided → Critical
Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
Revision history for this message
Blake Rouse (blake-rouse) wrote : Re: [Bug 1782009] Re: [2.5] Rack DNS config Failed to update DNS configuration.

This would be an upgrade error. The issue is that the rack controller is
using a newer version of code than the region controller.

That is not a bad error the error is actually correct. The region
controllers should always be upgraded before the rack controllers.

On Thu, Aug 9, 2018, 6:02 PM Andres Rodriguez <email address hidden>
wrote:

> ** Changed in: maas
> Assignee: (unassigned) => Blake Rouse (blake-rouse)
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1782009
>
> Title:
> [2.5] Rack DNS config Failed to update DNS configuration.
>
> Status in MAAS:
> New
>
> Bug description:
> I have a 4 node MAAS configuration with:
>
> 2 Region/racks (maas00, node01)
> 2 rack controllers (node03, node04)
>
> I upgraded all of the machines, however, maas00, node03, node04
> upgraded first, and successfully connected to the main region/rack
> (maas00), which is what /etc/maas/rackd.conf points to in
> node03/node04.
>
> After the upgrade, I noticed the following traceback in the rack
> controllers (node03, node04):
>
> 2018-07-16 19:06:53 provisioningserver.rackdservices.dns: [critical]
> Failed to update DNS configuration.
> Traceback (most recent call last):
> Failure: twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED',
> "Unhandled Command: b'GetDNSConfiguration'")
>
> Once the node01 finished installing , i continued to see this issue,
> even in the logs of the region/rack rack.log. To fix the issue I had
> to:
>
> 1. In maas00,node01 I stopped maas-regiond/maas-rackd. Once stoped, I
> started the services again.
> 2. In maas00,node01 I started services again
> 3. restarted maas-rackd on node02,node03
> 4. No longer see the error messages.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1782009/+subscriptions
>

Changed in maas:
status: New → In Progress
milestone: 2.5.0 → 2.5.0alpha2
status: In Progress → Triaged
assignee: Blake Rouse (blake-rouse) → nobody
summary: - [2.5] Rack DNS config Failed to update DNS configuration.
+ [2.5] Rack DNS config Failed to update DNS configuration and showed an
+ UNHANDLED error instead of a nice message why
summary: [2.5] Rack DNS config Failed to update DNS configuration and showed an
- UNHANDLED error instead of a nice message why
+ UNHANDLED error instead of a nice error message why
Changed in maas:
importance: Critical → High
description: updated
Changed in maas:
milestone: 2.5.0alpha2 → 2.5.0beta1
Changed in maas:
milestone: 2.5.0beta1 → 2.5.0beta2
Changed in maas:
milestone: 2.5.0beta2 → 2.5.0rc1
Revision history for this message
Andres Rodriguez (andreserl) wrote :

The solution for this is to show a proper error implying/asserting that the versions mismatch and they need to upgrade.

Changed in maas:
milestone: 2.5.0rc1 → 2.5.0
Changed in maas:
milestone: 2.5.0 → 2.5.x
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

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