/srv/irclogs.ubuntu.com/2012/12/06/#maas.txt

=== shang_ is now known as shang
rvbarbasak: I'm enlisting ARM nodes all right, but when I try to deploy something with juju on them, juju is never able to connect to them.12:47
rbasakrvba: do you have serial output on the ARM nodes? You should be able to get this with ipmitool or freeipmi12:48
rvbarbasak: I'm using the package in the dailyppa on precise.12:48
rvbarbasak: this is happening in the lab12:48
smoserrvba, ping.15:58
smoseri'm playing aroudn with some stuff, and i'd liek a general bucke where i could put some information on start15:58
smoseris there anything like that ?15:58
smoserright now i can post to the api key value pairs with the start reqeust, but only 'user_data' and 'series' are paid attention to.15:59
smoseri'd like for other stuff i post to get somehow attached ot the node (probably removed on 'release')16:00
rvbasmoser: hey16:03
smoserthe end goal would be for me to be able to get at those key/value pairs inside the templates16:04
rvbasmoser: if you have a look at the api code for start (http://paste.ubuntu.com/1414975/), we pass the 'user_data' to the start_nodes method and the 'series' is attached to the node.  I don't know what you're trying to achieve really but looks like you might want to create new data attached to a node.16:04
smoseri'd like a general bucket16:05
smoserrather than "user_keys" or something. that everything got shoved into16:05
smoserin my installer templates, i can then read stuff from there16:05
smoserthe specific motivation would be to pass something like:16:06
smoser installer=fast_pass16:06
smoseror16:06
smoser installer=d-i16:06
smoserthat specific thing might make sense to have maas know about, but there are surely lots of other things that maas can just shuffle through.16:06
rvbaOne solution would be to create a new JSONField on the node with a meaningful name (:)) and use that to store your stuff.16:07
rvbaThis field would contain a json object that you could exploit in the installed templates.16:08
rvba(you would have to make it available to the templates of course)16:08
rvbasmoser: maybe a JSONField is overkill if you just want to have one string to store installer parameters that can be stored as one line of text.16:11
smoserjson is just text.16:11
smoserbinary blob is most "I dont care"16:11
smosersecond is text that "I dont care"16:12
smoserand if i'm suggesting that maas not care, then i'd suggest it really not care.16:12
smoser(ie, not insist on json)16:12
smoserrvba, i dont *hvae* to make it avaliable in the templates explicitly. as I can execute arbitrary python code there.16:32
=== matsubara is now known as matsubara-lunch
melmothis there a way in Maas to have several different preseed file used when a machine is being deployed ?16:39
melmothlike, on some box creating a new partition on the drive (so we can use them to deploy a swift storage or nova-volumes charms) ?16:40
melmoth(talking about maas on 12.04 btw)16:40
smosermelmoth, why would you not do that via user-data ?16:41
smoserwhat would be the value of doing it in the installer ?16:41
smoseryou *can* accomplish this (even in 12.04 most likely) by having the template execute whatever python code you want and call out to another service even more data).16:41
melmothi have no idea about the user-data thing.16:41
smoser?16:41
smoserwhen you deploy a node in maas, it takes user-data ( just like on ec2/openstack )16:42
melmothi understand user-data for vm, but for bare metal, once lcoud init runs , the machine is alreadt installed, so you cannot shrink / can you ?16:42
smoserand cloud-init acts on that user-data.16:42
smoserwell, you can shrink filesystems, yes.16:42
smoserbut generally having the installer not take all for / if you wanted to use less makes more sense here.16:42
melmothbut only for some machine.16:43
Aramhi, I need a little hint. My maas controller has two ethernet interfaces. I want to use maas-dhcp and maas-dns. how do I tell maas-dhcp only to use eth1? I don't need a full answer, just a manual page name.17:25
=== matsubara-lunch is now known as matsubara
Aramhmm... /etc/dhcp/dhcpd.conf does not get created by maas-dhcp. I was under the impression maas generates this files, do I need to create if by hand?18:51
AramI solved the eth1 problem, btw18:51
melmothany idea why bootstraping fail ? http://pastebin.com/gF72WSzq  summary: The requested URL /MAAS/api/1.0/tags/ was not found on this server.18:52
AramI guess I could use maas-provision generate-dhcp-config to generate it, but what omapi key to use?18:54
matsubaraAram, if you configure the controller through the web UI you'll be able to choose which interface is running the dhcp server19:05
matsubaraAram, or you can use the maas-cli19:06
Arammatsubara: thanks. found it. I feel stupid now. I didn't think of using the GUI at all.19:06
Aramdhcpd seems to work now, but it can't find the tftp server19:07
Aramdo I need to manually enable that as well?19:07
matsubaraAram, nope, the dhcpd.conf file is in /etc/maas/ can you paste that? the next_server parameter there is where the nodes will look for the tftp server19:08
Aramah, yes, the next server is wrong. it's on a different network interface19:08
matsubaraso, once you install maas, if you need to run dpkg-reconfigure maas to set the proper address for the pxe interface19:08
Aramhmm... dpkg-reconfigure mass doesn't do anything19:09
Arammaas19:09
Aramexists with status 019:09
Aramno output19:09
Aramsame with -p low19:10
Aramok, it was maas-region-controller, not maas, but dhcpd.conf is still wrong.19:17
Aramwell, when running dpkg-reconfigure maas-region-controller, I did get an error.19:18
Aramthis is the error19:19
Aramhttp://paste.ubuntu.com/1415395/19:19
Aramdon't know if the error is fatal or not, but it does rememer what I've set.19:20
Arambut dhcpd.conf has the old name19:20
Aramalso the dns is wrong in dhcpd.conf, not only next-server19:21
Aramthis is my dhcpd.conf: http://paste.ubuntu.com/1415399/19:22
Arammatsubara: any idea about that error ^ ^19:31
matsubaraAram, you can change that file manually and run sudo service maas-dhcp restart19:33
matsubaraand check if the node will boot properly19:33
Arammatsubara: I did that, am I correct in assuming my changed won't be overwritten? anyway, now it finds the TFTP server but it stops at 'Trying to load: pxelinux.cfg/default'20:21
Arams/changed/changes/20:21
AramUnable to locate configuration file20:23
matsubaraAram, did you run maas-import-pxe-files?20:24
Aramyes.20:25
Arambut in /var/lib/maas/tftp/amd64/generic there's only precise20:25
Aramand I set quantal in the web ui afterwards20:25
matsubaramaybe it failed to download the quantal images?20:30
Aramit only tries to download precise20:31
Aramran it again20:32
Aramprecise node seems to boot via pxe, whohoo20:32
Arambut I'd like quantas as well20:32
Aramquantal20:32
Aramhmm, the precise node didn't auto-enlist20:34
Aramyep, nodes boot alright but with no auto enlistment20:39
Aramam I doing something wrong?20:40
=== lifeless_ is now known as lifeless
Aramyes they do20:44
Aramit just took some time20:44
AramI see two nodes20:44
Aramso now only the quantal problem remains20:44
Aramwhy does it take so long for new nodes to appear in the maas interface?22:01

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