Server reboot will make subnet entries disappear from zone.maas-internal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Christian Grabowski | ||
3.3 |
Fix Released
|
Undecided
|
Christian Grabowski |
Bug Description
MAAS Version: 3.3.0~rc1-
OS Version: Jammy
Problem:
--------
If the server is rebooted, MAAS will lose the subnet entries in /var/snap/
Before reboot:
; Zone file modified: 2023-01-03 16:41:58.535436.
$TTL 15
@ IN SOA maas-internal. nobody.example.com. (
600 ; Refresh
1800 ; Retry
15 ; NXTTL
)
@ 15 IN NS maas.
192-168-45-0--24 15 IN A 192.168.45.15
192-168-122-0--24 15 IN A 192.168.122.127
After reboot:
; Zone file modified: 2023-01-03 16:45:25.257343.
$TTL 15
@ IN SOA maas-internal. nobody.example.com. (
600 ; Refresh
1800 ; Retry
15 ; NXTTL
)
@ 15 IN NS maas.
Messages seen:
--------------
During enlisting / commissioning / deployment, the following messages are seen:
[ 66.898299] cloud-init[789]: 2023-01-03 16:55:43,848 - main.py[WARNING]: retrieving url 'http://
[ 95.597697] cloud-init[1571]: Can not apply stage config, no datasource found! Likely bad things to come!
[ 95.597771] cloud-init[1571]: -------
[ 95.597788] cloud-init[1571]: Traceback (most recent call last):
[ 95.597801] cloud-init[1571]: File "/usr/lib/
[ 95.597814] cloud-init[1571]: init.fetch(
[ 95.597933] cloud-init[1571]: File "/usr/lib/
[ 95.598443] cloud-init[1571]: return self._get_
[ 95.598598] cloud-init[1571]: File "/usr/lib/
[ 95.598783] cloud-init[1571]: (ds, dsname) = sources.
[ 95.598867] cloud-init[1571]: File "/usr/lib/
[ 95.598953] cloud-init[1571]: raise DataSourceNotFo
[ 95.599121] cloud-init[1571]: cloudinit.
Workaround:
-----------
Adding / Removing a subnet will force MAAS to regenerate the zone file, bringing back the entries.
Related branches
- MAAS Lander: Approve
- Christian Grabowski: Approve
-
Diff: 306 lines (+125/-28)5 files modifiedsrc/maasserver/region_controller.py (+2/-2)
src/maasserver/tests/test_region_controller.py (+20/-7)
src/maasserver/triggers/system.py (+42/-17)
src/maasserver/triggers/tests/test_init.py (+2/-0)
src/maasserver/triggers/tests/test_system.py (+59/-2)
- Adam Collard (community): Approve
- MAAS Lander: Approve
-
Diff: 306 lines (+125/-28)5 files modifiedsrc/maasserver/region_controller.py (+2/-2)
src/maasserver/tests/test_region_controller.py (+20/-7)
src/maasserver/triggers/system.py (+42/-17)
src/maasserver/triggers/tests/test_init.py (+2/-0)
src/maasserver/triggers/tests/test_system.py (+59/-2)
Changed in maas: | |
milestone: | 3.3.0 → 3.4.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Could you please provide the exact steps that are causing the issue for you?
Does restarting maas cause the internal zone file to disappear?