[00:48] <AskUbuntu> Does a MaaS region or Cluster controller going down mean the provisioned servers go down or only that new servers will not be provisioned? | http://askubuntu.com/q/346048
[05:27] <freeflying> when does maas add CNAME, after enlist or after it be allocated?
[06:09] <bigjools> freeflying: after commissioning
[07:06] <freeflying> bigjools, is there any clue on why some node can't be added after commissionning
[07:06] <bigjools> freeflying: what do you mean by added?
[07:07] <freeflying> bigjools, the CNAME record
[07:09] <bigjools> freeflying: you'd have to look a in a few places.  The path from commissioned node to dns cname is a long one, I'll try to explain:
[07:09] <freeflying> bigjools, thanks
[07:09] <bigjools> 1. the celeryd on the cluster controller periodically scans the dhcp leases file and reports active leases to the region controller
[07:10] <bigjools> 2. the region controller associates the lease (MAC/IP combo) with any known nodes
[07:10] <bigjools> 3. it sends a job to the celeryd-region daemon to write a new zone file
[07:10] <bigjools> 4. it sends a job to the celeryd-region daemon to reload the zone
[07:11] <bigjools> so check logs for both celeryd processes to start with and see if there's any errors
[07:11] <bigjools> also check the maas log
[07:13] <freeflying> bigjools, celeryd scans the lease of dhcp managed by maas only, right?
[07:14] <bigjools> freeflying: yes
[07:14] <bigjools> unless you have dhcp controlled by maas you won't get any CNAME
[07:15] <freeflying> bigjools, but now we running a external dhcp server for enlisting/provisioning
[07:16] <bigjools> freeflying: then you're out of luck, you need to use DDNS to update an external DNS server
[07:17] <bigjools> this is largely because maas needs to be able to force a static host mapping in the dhcp server
[07:17] <freeflying> bigjools, that explains I only have 2 nodes CNAME added by maas
[07:19] <bigjools> if the leases file is on the same server as the cluster controller it can scan the leases, but if the IP changes things will break
[07:21] <freeflying> bigjools, the leases file is on the same server, so we have isc-dhcp-server running, bind to one eth, and maas's dhcp bind to another eth on same server
[07:22] <bigjools> freeflying: maas does not have its own dhcp server, it uses isc
[07:23] <bigjools> I think its ok to have another isc running for a separate eth but I've never done that
[07:24] <freeflying> bigjools, yes, and I run into problem that node's CNAME can't be added
[07:26] <bigjools> freeflying: so you have maas-dhcp installed?
[07:27] <freeflying> bigjools, yes
[07:27] <bigjools> freeflying: then there must be an error in one of the logs somewhere to say what's going on
[07:27] <bigjools> freeflying: which version of maas?
[07:28] <freeflying> bigjools, 1.2+bzr1373+dfsg-0ubuntu1~12.04.2
[07:28] <bigjools> freeflying: did you set the cluster controller to manage dhcp/dns?
[07:28] <bigjools> in the web ui
[07:28] <freeflying> bigjools, yes
[07:30] <freeflying> bigjools, and I'm confused that we had 3 machines enlisted, and we successfully bootstrapped, and deployed ubuntu to another machine, I tried to add-unit, it fails, checked /etc/bind/maas/zone.maaslab.mast, only got 2 CNAME there
[07:32] <bigjools> freeflying: that is odd
[07:32] <bigjools> freeflying: can you look at the leases file and see if there is an entry
[07:32] <bigjools> then can you do this:
[07:32] <bigjools> $ maas shell
[07:32] <bigjools> > from maasserver.models import DHCPLease
[07:32] <bigjools> > for l in DHCPLease.objects.all():
[07:32] <bigjools> >     print l
[07:37] <freeflying> bigjools, only 2 entries can be found, I believe its because the third one hasn't boot up successfully after commissioning, so it never has a chance to get ip from dhcp managed by maas
[07:38] <bigjools> freeflying: that sounds reasonable
[07:39] <bigjools> I have to step out for a bit, back later
[07:39] <freeflying> bigjools, so to use external dhcp, I need set ddns?
[07:39] <freeflying> bigjools, ttyl
[12:34] <AskUbuntu> Not abel to destory service as agent state is down | http://askubuntu.com/q/346228
[15:12] <AskUbuntu> juju error: hook failed: "config-changed" | http://askubuntu.com/q/346276
[18:14] <AskUbuntu> MAAS with external DHCP TFTP time out | http://askubuntu.com/q/346339