Lease update is broken

Bug #2100477 reported by Jacopo Rota
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Committed
Critical
Jacopo Rota
3.6
Fix Committed
Critical
Jacopo Rota

Bug Description

Describe the bug:

There are multiple issues:

1) The agent can't parse dhcp notifications sent by the maas-dhcp-helper
2) The agent is using /v3internal/v3internal/leases to push notifications
3) The agent is sending a list of notifications and the handler expects a single notification instead
4) The LeaseService has a syntax error as it's passing a Subnet object to a function instead of the subnet_id
5) there is an unknown problem when storing the static address because the primary keys already exist - to be triaged

Steps to reproduce:

Just install MAAS, configure dhcp on a vlan and boot a machine

Expected behavior (what should have happened?):

The leases are properly processed

Actual behavior (what actually happened?):

Crash

MAAS version and installation type (deb, snap):

All

MAAS setup (HA, single node, multiple regions/racks):

All

Host OS distro and version:

Additional context:

Related branches

Jacopo Rota (r00ta)
Changed in maas:
assignee: jaku (jacopo) → Jacopo Rota (r00ta)
Jacopo Rota (r00ta)
Changed in maas:
milestone: 3.6.0 → 3.7.0
Changed in maas:
status: In Progress → Fix Committed
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.