/srv/irclogs.ubuntu.com/2012/08/23/#maas.txt

roaksoaxallenap: any luck with the fix for maas-import-pxe-files? That's what I need to test in order to ceritify it is working16:04
allenaproaksoax: I'll do that now.16:05
roaksoaxallenap: cool thanks16:05
allenaproaksoax: Is that https://bugs.launchpad.net/maas/+bug/1040462? Or the MAAS_PROVISIONING_SETTINGS one?16:06
ubot5Ubuntu bug 1040462 in MAAS "maas-import-pxe-files blows up (packaged version)" [Critical,In progress]16:06
allenapBoth need to be done...16:06
roaksoaxallenap: right so running sudo maas-provisiong install-pxe-image alone fails too16:09
allenapThe latter bug is https://bugs.launchpad.net/maas/+bug/103246216:09
ubot5Ubuntu bug 1032462 in MAAS "MAAS_PROVISIONING_SETTINGS: required but not set and not documented?" [High,Triaged]16:09
roaksoaxsmoser: have you ever done something like: Package A version 1 Depends on B, then Package A version 2 no longer Depends on B. So on upgrade, remove package B automatically16:40
smoseri dont think you can cause the removal16:57
melmothis not aptitude suppose to do this kind of stuff on its own ?16:58
melmothi always use apt-get, but last time at a local lug, people told me that was one of the benefit of aptitude16:59
melmothi did not check if i understood correctly what i heard though.16:59
roaksoaxit is supposed to17:00
roaksoaxI was thinking that a simple COnflicts/Replaces woiuld do, but my tests failed, so I consulted, and it should actually work17:02
melmothif one can call dpkg -l from within a postinst script, one should be able to test wether package B is installed, and try to uninstall it.17:03
melmothbut i smell locking problems of some sort.17:03
melmothGrmblblbl... When i juju deploy a service (within maas if that matter), how does the new system decide to install the regular version of juju, or the ppa one ?17:05
melmothor, may be to ask it in a more clear way: "how does the new system decide to install some ppa or not". where does it get this information from ?17:06
roaksoaxmelmoth: right so using dpkg -i in my particular case was plain wrong :)17:07
roaksoaxallenap: alright, i'm only waiting that fix and everything else should be fine17:26
allenaproaksoax: Yeah, I'm having to put kids in bed and such.17:54
roaksoaxallenap: no worries17:56
allenaproaksoax: Simple fix! /usr/sbin/maas-provision, last line, should have "$@" appended.17:57
allenap(including quotes)17:58
allenapThat doesn't fix the MAAS_PROVISIONING_SETTINGS problem, but I'll do that later.17:58
allenaproaksoax: If you don't get to it in the next hour, I'll propose a merge against the packaging branch.17:59
roaksoaxallenap: lkike this? http://paste.ubuntu.com/1163087/18:01
roaksoaxallenap: btw.. maas-provision and its dependencies have to be removed on upgrade right? Otherwise, things like tftp will overlap18:02
allenaproaksoax: Yes, but you need to add "" quotes around the $@.18:58
roaksoaxallenap: ok, so on the other hand18:59
roaksoaxallenap: the tftp server doesn't seem to be working18:59
allenaproaksoax: Oh, jolly good :)18:59
roaksoaxallenap: DNS doesn't have access to do what it needs to do18:59
roaksoaxallenap: are we assuming that MAAS will handle both DNS/DHCP simultaneoulsy or can it do it separately19:01
allenaproaksoax: The TFTP port needs setting to 69 in /etc/maas/pserv.yaml.19:15
roaksoaxallenap: could you change that in trunk?19:16
allenaproaksoax: The tftp/generator setting in pserv.yaml needs setting too.19:16
allenaproaksoax: etc/pserv.yaml in trunk is configured for development. I can add another file, pserv.prod.yaml, or something like that. I can't change etc/pserv.yaml without upsetting several other things (i.e. it can be done, but it's not going to be quick).19:19
allenaproaksoax: One other thing: maas (the package) does not depend on wget, but the scripts need it.19:20
roaksoaxallenap: i'll do it in packaging19:42
roaksoaxallenap: could you provide a diff?19:42
roaksoaxallenap: IMHO, the settings file should all be production in trunk19:42
allenaproaksoax: Actually, I'm changing it in trunk. You'll still need to patch it, but it'll be more obvious.19:44
allenapHaving it all production in trunk makes development a little challenging.19:44
roaksoaxallenap: they shouldn't differ IMHO19:45
roaksoaxallenap: please, just send me a diff that I'll need to apply19:45
roaksoaxallenap: now, for the DHCP stuff, do we want to keep the debconf config like stuff?19:46
roaksoaxi thought this was gonna be done through the WebUI19:46
allenaproaksoax: I don't know. I haven't used the debconf stuff for that yet.19:47
roaksoaxallenap: right, but my point being is that how are we planning to configure DHCP19:47
roaksoaxsimply do it manually with maas-provision generate-dhcp-config?19:47
allenaproaksoax: Leave it at that for now.19:52
roaksoaxallenap: ok bigjools was pointint stuff about that19:55
roaksoaxso that's why I was checking19:55
allenaproaksoax: https://code.launchpad.net/~allenap/maas/default-to-production-config/+merge/121080 will make the default configuration production-ready. Then you can patch out the custom settings of tftp/port and tftp/generator, and it ought to work.20:05
roaksoaxallenap: ok20:06
allenaproaksoax: Once that's landed, you can apply the following additional patch: http://paste.ubuntu.com/1163300/20:07
roaksoaxallenap: shouldn't we uncomment the #port and #generator?20:09
allenaproaksoax: They'll default to the same things.20:09
roaksoaxallenap: ok, with that I get : "Unable to locate configuration file" while pxebooting20:10
allenaproaksoax: That /may/ be unrelated to this. Can you try: curl 'http://localhost/MAAS/api/1.0/pxeconfig/?mac=12:34:56:78:90:ab'20:11
roaksoaxallenap: No provided arch!20:12
allenaproaksoax: Ah, okay, the next branch hasn't landed yet ;) Try: curl 'http://localhost/MAAS/api/1.0/pxeconfig/?mac=12:34:56:78:90:ab&arch=i386&subarch=generic'20:13
roaksoaxallenap: http://pastebin.ubuntu.com/1163315/20:14
roaksoaxerro20:14
roaksoaxallenap: No provided arch too20:14
roaksoaxallenap: ok so we have a broken tftp server then20:17
roaksoaxallenap: also please check that the changes in python-tx-tftp in trunk20:17
roaksoaxare the same ones from the packaging20:17
allenaproaksoax: You didn't put "curl" before the URL ;)20:17
roaksoaxallenap: yeah, curl http://localhost/MAAS/api/1.0/pxeconfig/?mac=12:34:56:78:90:ab&arch=i386&subarch=generic20:17
roaksoaxgives the same20:17
roaksoaxNo Provided Arch20:17
allenaproaksoax: single quote it; the & is backgrounding the arch=... bit.20:18
allenapbackgrounding the bit *before* rather.20:18
roaksoaxallenap: that works20:18
allenapOkay, the problem is that there's a mismatch between the expectations of the TFTP server and what the pxeconfig view gives back. I'm still working on that.20:19
roaksoaxalright20:19
roaksoaxallenap: alright then, so I guess it is still not teasteable20:21
roaksoaxallenap: though I'm just trying to enlist20:21
roaksoaxallenap: and it doesn't work20:21
allenaproaksoax: I'm trying to fix it now.20:21
roaksoaxallenap: ah ok thought it was deployment wise only not any pxe booting20:22

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