/srv/irclogs.ubuntu.com/2013/03/10/#maas.txt

mattraehi, when i destroy-environment and then redeploy to the same machines they aren't reinstalled. I have to delete the machines and re-enlist to get a fresh installation.22:00
mattraei couldn't find a bug for this. sounds like a bug though22:00
mattraei think whenever i terminate a machine, it should be reinstalled when that hardware is used again22:06
bigjoolsmattrae: I have seen one other person say this too, however I can't re-create it.  Which version of maas are you using?22:11
mattraehi bigjools i'm using 1.2+bzr1360+dfsg-0ubuntu1~ppa1 from http://ppa.launchpad.net/maas-maintainers/stable/ubuntu/22:13
bigjoolsmattrae: which version of juju, and what do you see happening on the machines' consoles that's different to normal?22:19
mattraebigjools: i'm using juju 0.6.0.1+bzr618-0juju2~precise1. for example i do juju destroy-environment. then when i do juju bootstrap ubuntu is not reinstalled. i can do juju status and see my old environment22:21
bigjoolssounds like a bug in juju?22:21
mattraei see the machines being returned to 'ready' when i terminate the environment22:22
bigjoolscan you see the destroy request in the maas log?22:22
mattraesure i'll check for the request in the log22:22
bigjoolsso the machines are ready, yet when you do a status, you see them in use?22:28
mattraebigjools: i'm looking in maas.log and i see a number of these errors from around the time i destroyed the environment: "PermissionDenied: Not authenticated as a known node."22:28
bigjoolsew22:28
bigjoolscan you paste the log somewhere for me plesae22:28
bigjoolsplease22:28
mattraethe machines are ready, then i do juju bootstrap, the machine starts but doesn't reinstall. then i do juju status and i see my previous environment22:29
bigjoolswhat does it do instead of re-installing?22:29
mattraeit appears to just boot the machine with whatever was on it previously22:30
bigjoolswhat state does maas show it in at that point?22:30
mattraesince i see my old environment22:30
mattraeat that point its allocated22:30
bigjoolsthe machine will do a local boot if anything goes wrong with the pxe boot22:31
bigjoolsso I suspect your PermissionDenied errors have got something to do with this22:31
mattraehere's the error i see a few times i the log. yeah i don't know whether it is related or not http://pastebin.com/zu16ETvW22:32
mattraethat error could be related to me trying to re-enlist the machines. re-enlisting doesn't seem to be working22:33
mattraeonly worked for one node :/22:34
bigjoolsyeah it's a metadata server error22:34
mattraesounds like i need to reinstall maas :/22:34
bigjoolsthe metadata server IDs the requesting node so it knows which data to send it22:35
bigjoolsdon't re-install, let's investigate22:35
mattraeok cool :)22:35
bigjoolsok this will take a while, sorry, but can you remove all your nodes, shut down maas, wipe your logs and start again22:36
bigjoolsthen re-enlist, bootstrap22:36
mattraenow it seems that even though i deleted the machines from maas. then rebooted them, they aren't re-inlisting. only one node re-inlisted.. the rest just booted up with whatever they had on them previously22:36
bigjoolssend me the log22:36
mattraei'll try rebooting them again22:36
bigjoolsthen destroy-env and send me the log again22:36
mattraeok sounds good22:37
bigjoolsthis will get me a clean log22:38
mattraebigjools: hrm, so i deleted all nodes from maas and shut down the machines. i power on one machine and it boots up with what it had previously and I get that same "permissionDenied: Not authenticated as a known node" error22:42
mattraethe nodes never show up in the maas web interface22:43
bigjoolshmm22:43
bigjoolsso there's 0 nodes registered?22:43
mattraeyeah "0 nodes in maas"22:44
bigjoolsok22:44
bigjoolscan you send me the pserv log22:44
mattraesure, want the whole thing? the most recent message in pserv.log is 40 min ago22:45
bigjoolsoh22:46
bigjoolsdarn22:46
bigjoolsthat's odd22:46
bigjoolsyou don't have more than one dhcp server on your network do you?22:47
mattraewould it make sense to try restarting the maas server?22:52
mattraeor is there a way to check the health?22:52
mattraei see maas-pserv, maas-cluster-celery, maas-txlongpoll, maas-region-celery, and maas-dhcp-server are running22:52
mattraei can try reinstalling maas too and report if i see this issue again22:52
mattraenormally deleting nodes works, so i wonder if something got corrupted22:52
mattraedeleting/re-inlisting works i mean22:52
mattraenope22:53
bigjoolswhen you boot the node, can you see it pxe booting from maas?22:54
bigjoolsor does it time out?22:54
bigjoolsit looks to me like it is not pxe booting, and the previous installation boots and tries to contact the metadata server with predictable results22:54
mattraehmm i'll check22:54
bigjoolsthe most obvious reason for that is usually that there's another dhcp server22:57
mattraebigjools: ahh yeah looks like my vm's are set to boot from the hd. that is weird because i'm not sure how i would have got them deployed previously22:59
bigjoolsaha22:59
mattraethese are libvirt vms.. does maas set a node to not pxe once there is an installation?22:59
bigjoolsyes23:00
bigjoolsoh wait23:00
bigjoolsno, sorry23:00
mattraeor maybe it was pxeing because there was no installation23:00
mattraecool, i should at least be able to set these back to pxe23:01
bigjoolsthe tftp server gives a different config based on what state we think it's in23:01
bigjoolsquite likely, yes23:01
bigjoolsmaas does not touch bios boot order23:01
bigjoolsyou need to make sure pxe is first23:01
bigjoolsgreat, good luckj23:01
mattraegreat, thanks for the help23:02
bigjoolswelcome23:02

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!