maas-dhcpd 未开启,因为 bind9 127.0.0.1#954: 连接被拒绝

maas-dhcpd 未开启,因为 bind9 127.0.0.1#954: 连接被拒绝

有人知道如何解决这个问题吗?

Service 'maas-dhcpd' is not on, it will be started.
Service 'bind9' failed to start. Its current state is 'dead' and 'Result: exit-code'.
Reloading BIND failed (is it running?): Command `rndc -c /etc/bind/maas/rndc.conf.maas reload` returned non-zero exit status 1:#012rndc: connect failed: 127.0.0.1#954: connection refused

我有 2 个子网、一个桥接器和一个本地网络,其中有 3 个接口 eth0、eth1、br1,我的网络接口:

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers x.x.1.1
dns-search maas

# The primary network interface
auto eth0
iface eth0 inet static
address x.x.1.2
netmask 255.255.255.0
gateway x.x.1.1
dns-nameservers x.x.1.1 8.8.8.8 8.8.4.4
mtu 1500

auto eth1
iface eth1 inet manual
mtu 1500

auto br1
iface br1 inet static
address x.x.30.1
netmask 255.255.255.0
   bridge_ports eth1
   bridge_stp off
   bridge_fd 0
   bridge_maxwait 0

来自 UI 的 Maas 子网配置:以下托管分配被禁用:

Name x.x.1.0/24
CIDR x.x.1.0/24
Gateway IP x.x.1.2
DNS 172.16.1.1

已启用以下管理分配:

Name x.x.30.0/24
CIDR x.x.30.0/24
Gateway IP x.x.30.1
DNS x.x.1.1

运行sudo rndc -c /etc/bind/maas/rndc.conf.maas reload结果为:

rndc: connect failed: 127.0.0.1#954: connection refused

我不确定我错过了什么,这个 MaaS 版本是 2.5

附加说明:在我调查时,我注意到中有重复的条目named.conf.maas,如果我手动修复重复项,它将再次自动生成并回到同一个问题。

/etc/bind/maas/named.conf.maas:92: zone 'x.y.z.in-addr.arpa': already exists previous definition: /etc/bind/maas/named.conf.maas:56

上述问题与https://discourse.maas.io/t/facing-old-bug-lp-1683047-with-maas-2-5-stable-bind9-fails-to-start-duplicated-entry/314

答案1

我设法解决了这个问题https://discourse.maas.io/t/facing-old-bug-lp-1683047-with-maas-2-5-stable-bind9-fails-to-start-duplicated-entry/314/7?u=atdhrhs

我找不到重复的 IP,但是我删除了那些出现错误的 IP,然后它就起作用了。

相关内容