BMC could not save extracted IP address '192.168.122.1': 'duplicate key value violates unique constraint "maasserver_staticipaddress_ip_key"#012DETAIL: Key (ip)=(192.168.1 22.1) already exists.#012'

Bug #1551376 reported by Andres Rodriguez
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Jeffrey C Jones

Bug Description

My system is configured to provide DHCP on virbr0, which is 192.168.122.1. This IP addres is *also* the IP address of the BMC, since it is a libvirt endpoint to provide power management to machines.

The errors I saw are below:

==> /var/log/maas/maas.log <==
Feb 29 13:25:00 unleashed maas.node: [INFO] BMC could not save extracted IP address '192.168.122.1': 'duplicate key value violates unique constraint "maasserver_staticipaddress_ip_key"#012DETAIL: Key (ip)=(192.168.1
22.1) already exists.#012'
Feb 29 13:25:00 unleashed maas.dns: [INFO] Generating new DNS zone file for maas

==> /var/log/maas/regiond.log <==
2016-02-29 13:25:01 [-] Unhandled failure dispatching AMP command. This is probably a bug. Please ensure that this error is handled within application code or declared in the signature of the b'CreateNode' command. $unleashed:pid=12574:cmd=CreateNode:ask=56]
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 1203, in mainLoop
            self.runUntilCurrent()
          File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 798, in runUntilCurrent
            f(*a, **kw)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 434, in errback
            self._startRunCallbacks(fail)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/twisted/protocols/amp.py", line 1150, in checkKnownErrors
            key = error.trap(*command.allErrors)
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 342, in trap
            self.raiseException()
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
            raise self.value.with_traceback(self.tb)
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 197, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 448, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 275, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.5/contextlib.py", line 30, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/rpc/nodes.py", line 226, in create_node
            raise ValidationError(form.errors)
        django.core.exceptions.ValidationError: {'architecture': ["'i386/generic' is not a valid architecture. It should be one of: 'amd64/generic'."]}

==> /var/log/maas/maas.log <==
Feb 29 13:25:01 unleashed maas.region: [ERROR] Unable to create node on region: Region does not support the CreateNode RPC method.
Feb 29 13:25:01 unleashed maas.dns: [INFO] Generating new DNS zone file for maas
Feb 29 13:25:02 unleashed maas.dns: [INFO] Generating new DNS zone file for maas
Feb 29 13:25:03 unleashed maas.dns: [INFO] Generating new DNS zone file for maas
Feb 29 13:25:03 unleashed maas.drivers.virsh: [ERROR] node03: Failed to set network boot order
Feb 29 13:25:04 unleashed maas.dns: [INFO] Generating new DNS zone file for maas
Feb 29 13:25:26 unleashed maas.service_monitor: [INFO] Service 'maas-dhcpd' is not on, it will be started.

Related branches

Changed in maas:
importance: Undecided → Critical
milestone: none → 2.0.0
Changed in maas:
assignee: nobody → Jeffrey C Jones (trapnine)
status: New → In Progress
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.