Subnet update allows incorrect information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
When trying to create a new subnet (cidr=10.
Our code for subnet update/creation takes a subnet name and GETs a subnet id for the name. If an ID is returned, update the subnet with that ID with the given values, otherwise, create a new subnet with the given values. Similar for all other network components, actually.
maas-dhcpd failed on the config update, however, so it caught the issue.
MAAS version: 2.6.2 (7841-ga10625be
There are not a lot of helpful log entries, but
regiond.log
-----------
2020-10-22 13:17:49 maasserver.dhcp: [info] Successfully configured DHCPv4 on rack controller 'mrklx1005 (ff88am)'.
2020-10-22 13:17:49 maasserver.dhcp: [info] Successfully configured DHCPv6 on rack controller 'mrklx1005 (ff88am)'.
2020-10-22 13:17:59 maasserver.
maas-dhcp
---------
Oct 22 13:18:25 mrklx1005 systemd[1]: Stopping MAAS instance of ISC DHCP server for IPv4...
Oct 22 13:18:25 mrklx1005 systemd[1]: Stopped MAAS instance of ISC DHCP server for IPv4.
Oct 22 13:18:25 mrklx1005 systemd[1]: Starting MAAS instance of ISC DHCP server for IPv4...
Oct 22 13:18:25 mrklx1005 systemd[1]: Started MAAS instance of ISC DHCP server for IPv4.
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: bad range, address 10.86.112.111 not in subnet 10.86.112.0 netmask 255.255.255.192
Oct 22 13:18:25 mrklx1005 dhcpd[30524]:
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: If you think you have received this message due to a bug rather
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: than a configuration issue please read the section on submitting
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: bugs on either our web page at www.isc.org or in the README file
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: before submitting a bug. These pages explain the proper
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: process and the information we find helpful for debugging..
Oct 22 13:18:25 mrklx1005 dhcpd[30524]:
Oct 22 13:18:25 mrklx1005 dhcpd[30524]: exiting.
Oct 22 13:18:25 mrklx1005 systemd[1]: maas-dhcpd.service: Main process exited, code=exited, status=1/FAILURE
Oct 22 13:18:25 mrklx1005 systemd[1]: maas-dhcpd.service: Failed with result 'exit-code'.
Changed in maas: | |
milestone: | none → 2.9.x |
status: | Incomplete → Triaged |
importance: | Undecided → High |
Changed in maas: | |
milestone: | 2.9.2 → 2.9.x |
Changed in maas: | |
milestone: | 2.9.x → none |
More effect seen from this today: Filtering machines by the new fabric (where the new subnet belongs) returns all the machines in the old fabric (which holds the mistakenly updated subnet), as well.