Lost DNS entries for machines managed by MAAS

Jonas Wagner jonas.wagner at epfl.ch
Fri Mar 17 09:59:40 UTC 2017


Hello,

Any further advice on this issue? I've tried a few more things, but all
without success:

- Link the nodes' interfaces to a subnet. This doesn't work: Cannot link
subnet interface because the machine is not Ready or Broken.

- Update the dnsresource corresponding to the node's hostname. Trying the
command "maas foo dnsresource update 2 ip_address=10.0.10.114". This
returns "Success" but seems to have no effect.

- Create an ipaddress. Trying the command "maas foo ipaddresses reserve
ip=10.0.10.114 hostname=bar.maas mac=52:54:00:89:04:fb". This tells me "IP
address 10.0.10.114 belongs to an existing dynamic range. To reserve this
IP address, a MAC address is required. (Create a device instead.)"

Any more hints are appreciated. Cheers,
Jonas

On Thu, Mar 16, 2017 at 9:47 AM Jonas Wagner <jonas.wagner at epfl.ch> wrote:

> Hello,
>
> thanks a lot for the replies so far!
>
> My MAAS version: 2.1.3+bzr5573-0ubuntu1 (16.04.1)
>
> I believe, however, that the nodes in question where deployed using an
> earlier version of MAAS. We upgraded MAAS at some point. The amount of
> information that we have on the older nodes is different from the
> information available for newer nodes. I'm attaching two JSON files with
> node data; solo7 is a machine deployed recently, whereas solo8 was deployed
> before an upgrade of MAAS.
>
> The nodes are in "deployed" state. They both use DHCP. For newer nodes
> (those that still have DNS entries) the MAAS web interface shows an IP
> address labeled "(Auto assign)". For the other nodes, all interfaces are
> shown as "(Unconfigured)".
>
> Regarding DHCP: The machines are indeed requesting DHCP leases. For
> example, I can see the following in /var/lib/maas/dhcp/dhcpd.leases:
>
> lease 10.0.0.89 {
>   starts 4 2017/03/16 08:22:45;
>   ends 4 2017/03/16 08:32:45;
>   cltt 4 2017/03/16 08:22:45;
>   binding state active;
>   next binding state free;
>   rewind binding state free;
>   hardware ethernet 00:25:90:e9:a4:6e;
>   set clht = "solo8";
>   set cllt = "600";
>   set clip = "10.0.0.89";
>   set clhw = "0:25:90:e9:a4:6e";
>   client-hostname "solo8";
>   on expiry {
>     set clhw =
>        binary-to-ascii (16, 8, ":",
>                         substring (hardware, 1, 6)) ;
>     set clip =
>        binary-to-ascii (10, 8, ".", leased-address) ;
>     execute ("/usr/sbin/maas-dhcp-helper", "notify", "--action", "expiry",
>         "--mac", clhw, "--ip-family", "ipv4", "--ip", clip);
>   }
>   on release {
>     set clhw =
>        binary-to-ascii (16, 8, ":",
>                         substring (hardware, 1, 6)) ;
>     set clip =
>        binary-to-ascii (10, 8, ".", leased-address) ;
>     execute ("/usr/sbin/maas-dhcp-helper", "notify", "--action", "release",
>         "--mac", clhw, "--ip-family", "ipv4", "--ip", clip);
>   }
> }
>
> Let me know if more data is needed to troubleshoot this. Thanks again for
> the help so far!
>
> Best,
> Jonas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20170317/6b72ac49/attachment.html>


More information about the Maas-devel mailing list