=== freeflying_away is now known as freeflying | ||
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 | 00:48 |
---|---|---|
=== freeflying is now known as freeflying_away | ||
=== freeflying_away is now known as freeflying | ||
freeflying | when does maas add CNAME, after enlist or after it be allocated? | 05:27 |
=== CyberJacob|Away is now known as CyberJacob | ||
bigjools | freeflying: after commissioning | 06:09 |
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:06 |
freeflying | bigjools, the CNAME record | 07:07 |
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:09 |
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:10 |
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:11 |
freeflying | bigjools, celeryd scans the lease of dhcp managed by maas only, right? | 07:13 |
bigjools | freeflying: yes | 07:14 |
bigjools | unless you have dhcp controlled by maas you won't get any CNAME | 07:14 |
freeflying | bigjools, but now we running a external dhcp server for enlisting/provisioning | 07:15 |
bigjools | freeflying: then you're out of luck, you need to use DDNS to update an external DNS server | 07:16 |
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:17 |
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:19 |
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:21 |
bigjools | freeflying: maas does not have its own dhcp server, it uses isc | 07:22 |
bigjools | I think its ok to have another isc running for a separate eth but I've never done that | 07:23 |
freeflying | bigjools, yes, and I run into problem that node's CNAME can't be added | 07:24 |
bigjools | freeflying: so you have maas-dhcp installed? | 07:26 |
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:27 |
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:28 |
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:30 |
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:32 |
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:37 |
bigjools | freeflying: that sounds reasonable | 07:38 |
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 | 07:39 |
=== CyberJacob is now known as CyberJacob|Away | ||
AskUbuntu | Not abel to destory service as agent state is down | http://askubuntu.com/q/346228 | 12:34 |
AskUbuntu | juju error: hook failed: "config-changed" | http://askubuntu.com/q/346276 | 15:12 |
=== CyberJacob|Away is now known as CyberJacob | ||
AskUbuntu | MAAS with external DHCP TFTP time out | http://askubuntu.com/q/346339 | 18:14 |
=== CyberJacob is now known as CyberJacob|Away | ||
=== kentb is now known as kentb-out | ||
=== bigjools_ is now known as bigjools |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!