For every interface MAAS is adding an A record for the name <machine>.<domain>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Jacopo Rota | ||
3.3 |
Fix Released
|
Critical
|
Jacopo Rota | ||
3.4 |
Fix Released
|
Critical
|
Jacopo Rota | ||
3.5 |
Fix Released
|
High
|
Jacopo Rota |
Bug Description
In different solqa runs (for example https:/
```
dig @localhost ciscom4.maas
; <<>> DiG 9.18.12-
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60108
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: f2c0be5af22ac4a
;; QUESTION SECTION:
;ciscom4.maas. IN A
;; ANSWER SECTION:
ciscom4.maas. 30 IN A 192.168.1.222
ciscom4.maas. 30 IN A 172.0.2.11
```
(172.0.2.11 is the address on the boot interface, 192.168.1.222 is the address on the second interface).
The expected behaviour is that MAAS creates only one A record for the boot interface that resolves <machine>.<domain>.
For all the other interfaces, MAAS should create a dns record like <nic>.<
In MAAS 3.2 the observed behaviour is correct:
```
r00ta@r00ta-
; <<>> DiG 9.18.12-
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12068
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: f229d1e1531ca4d
;; QUESTION SECTION:
;ciscom4.maas. IN A
;; ANSWER SECTION:
ciscom4.maas. 30 IN A 172.0.2.11
;; Query time: 0 msec
;; SERVER: 127.0.0.
;; WHEN: Tue Dec 12 13:58:16 CET 2023
;; MSG SIZE rcvd: 85
r00ta@r00ta-
; <<>> DiG 9.18.12-
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42539
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 103a5f56c262636
;; QUESTION SECTION:
;enp1s0f1.
;; ANSWER SECTION:
enp1s0f1.
;; Query time: 0 msec
;; SERVER: 127.0.0.
;; WHEN: Tue Dec 12 13:58:19 CET 2023
;; MSG SIZE rcvd: 94
```
### STEPS TO REPRODUCE
1) install maas
2) commission a VM or a server with 2 interfaces
3) Once the machine is commissioned, assign a static IP to the non-boot interface
4) try to resolve <machine>.<domain> with dig
Related branches
- Jacopo Rota: Approve
- MAAS Lander: Approve
-
Diff: 1146 lines (+630/-79)8 files modifiedsrc/maasserver/region_controller.py (+25/-5)
src/maasserver/tests/test_region_controller.py (+11/-6)
src/maasserver/triggers/models/__init__.py (+0/-0)
src/maasserver/triggers/models/dns_notifications.py (+51/-0)
src/maasserver/triggers/models/tests/__init__.py (+0/-0)
src/maasserver/triggers/models/tests/test_dns_notifications.py (+43/-0)
src/maasserver/triggers/system.py (+271/-33)
src/maasserver/triggers/tests/test_system.py (+229/-35)
- Jacopo Rota: Approve
- MAAS Lander: Approve
-
Diff: 1146 lines (+630/-79)8 files modifiedsrc/maasserver/region_controller.py (+25/-5)
src/maasserver/tests/test_region_controller.py (+11/-6)
src/maasserver/triggers/models/__init__.py (+0/-0)
src/maasserver/triggers/models/dns_notifications.py (+51/-0)
src/maasserver/triggers/models/tests/__init__.py (+0/-0)
src/maasserver/triggers/models/tests/test_dns_notifications.py (+43/-0)
src/maasserver/triggers/system.py (+271/-33)
src/maasserver/triggers/tests/test_system.py (+229/-35)
- Jacopo Rota: Approve
- MAAS Lander: Approve
-
Diff: 1146 lines (+630/-79)8 files modifiedsrc/maasserver/region_controller.py (+25/-5)
src/maasserver/tests/test_region_controller.py (+11/-6)
src/maasserver/triggers/models/__init__.py (+0/-0)
src/maasserver/triggers/models/dns_notifications.py (+51/-0)
src/maasserver/triggers/models/tests/__init__.py (+0/-0)
src/maasserver/triggers/models/tests/test_dns_notifications.py (+43/-0)
src/maasserver/triggers/system.py (+271/-33)
src/maasserver/triggers/tests/test_system.py (+229/-35)
- MAAS Lander: Approve
- Christian Grabowski: Approve
-
Diff: 1146 lines (+630/-79)8 files modifiedsrc/maasserver/region_controller.py (+25/-5)
src/maasserver/tests/test_region_controller.py (+11/-6)
src/maasserver/triggers/models/__init__.py (+0/-0)
src/maasserver/triggers/models/dns_notifications.py (+51/-0)
src/maasserver/triggers/models/tests/__init__.py (+0/-0)
src/maasserver/triggers/models/tests/test_dns_notifications.py (+43/-0)
src/maasserver/triggers/system.py (+271/-33)
src/maasserver/triggers/tests/test_system.py (+229/-35)
description: | updated |
description: | updated |
Changed in maas: | |
milestone: | 3.5.0 → 3.5.0-beta1 |
status: | Fix Committed → Fix Released |