I am trying to enroll my nodes in my MaaS cluster.
I am doing this by booting them from the 12.04 installation CD, and choosing the MAAS installation option.
I'm only trying to set up one node right now. When i do the enrollment process, the node shutsdown, and I see 0 nodes on the MAAS homepage of my master node.
I tried adding the node from the MAAS web gui, when I do this, I get an error on the page that says:
Unable to create Node: Unknown problem encountered with the Cobbler server.
In the cobbler.log is the following:
Tue May 8 20:43:47 2012 - DEBUG | REMOTE maas authorization result: True; user(?)
Tue May 8 20:43:47 2012 - INFO | find_items; ['system']
Tue May 8 20:43:47 2012 - INFO | Exception occured: <class 'cobbler.cexceptions.CX'>
Tue May 8 20:43:47 2012 - INFO | Exception value: 'dns-name duplicated: node1'
Tue May 8 20:43:47 2012 - INFO | Exception Info:
File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 1944, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 910, in xapi_object_edit
self.modify_system(handle, 'modify_interface', imods, token)
File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 827, in modify_system
return self.modify_item("system",object_id,attribute,arg,token)
File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 820, in modify_item
return method(arg)
File "/usr/lib/python2.7/dist-packages/cobbler/item_system.py", line 644, in modify_interface
if field == "dnsname" : self.set_dns_name(value, interface)
File "/usr/lib/python2.7/dist-packages/cobbler/item_system.py", line 288, in set_dns_name
raise CX("dns-name duplicated: %s" % dns_name)
It seems like there is a chicken and egg game being played between dnsmasq's DNS server, and the cobbler's hostname database -- this is just a guess on my part.
Here is the contents of dnsmasq.leases: the MAC addr of node1 is 00:03:47:22:1c:e2
dbuttric@sid:/var/lib/misc$ more dnsmasq.leases
1336531172 00:03:47:22:1c:e2 192.168.5.119 * *
1336530695 00:90:27:32:3b:53 192.168.5.148 node3 *
1336530676 00:90:27:18:f2:0b 192.168.5.242 node2 *
How can I delete hostnames from cobbler, and retry my node adding activities?
Here is more: I can successfully register a node and the MAAS server shows that it has 1 node registered in it.
5 minutes later, I go back to the MAAS web gui, and it reports 0 nodes. I have not looked at error logs yet, but what can cause this to happen?
Should I just try re-installing the master node?