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

=== CyberJacob|Away is now known as CyberJacob
=== freeflying_away is now known as freeflying
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
smosermaas in ubuntu is still using old import_ephemerals ?12:46
smoser:-(12:46
smoserroaksoax, jtv thats correct, right?12:47
smoserwe *really* need to get that fixed, as we want to be delivering updated fast path installer images and the old import_ephemerals does not delete content, meaning guaranteed filesystem full over time.12:48
roaksoaxsmoser: yup... they told me it was not ready12:48
smoserimo that has to land.12:50
smoserjtv, allenap ? is there a bug that explicitly addresses this? if not I'll open one.12:52
roaksoaxsmoser: i dont disagree but if BBBthe tools is not ready we cant uae it12:53
allenapsmoser: jtv will need to answer that one.12:53
roaksoaxsmoser: and there are merge proposals already so it is being taken care od12:53
jtvsmoser: I think it falls under the s-cloud-maas-maintainability blueprint.12:53
smoserit also falls under grave-security-issue if you want me to push that route.12:56
smoserhow far are we from that being functional? i really had thought that this landed. sorry for not raising earlier.12:56
roaksoaxsmoser: the tool has landed not the use of it12:56
jtvWhat roaksoax said.12:57
roaksoaxjtv: whats the status on the user configurable settibgs?12:57
jtvWhat settings specifically?12:57
roaksoaxi raised to rvba that imho disnt seem like a good idea to put everuthibg on pserv.yalm12:57
roaksoaxjtv: maas-import-ephenrals?12:57
jtvNo, we're ditching that.12:57
jtvYes, we're talking aboutg maas-import-ephemerals.12:58
roaksoaxjtv: so....?12:58
roaksoaxjtv how will a user select what releases wants to import and so on?12:58
jtvThere's three ways:12:58
jtv1. Command-line option.12:58
jtv2. yaml config — but we didn't like the way the script rewrote pserv.yaml, so we're moving that to a separate file.12:59
jtv3. The existing shell-style config still works.  The script converts it to yaml config.12:59
roaksoaxok12:59
roaksoaxi guess 2/3 is what i meant13:00
jtvI guess.13:00
roaksoaxjtv: so if 3 currently works... why add yaml?13:00
roaksoaxjtv: and... what is now preventing its usage?13:00
jtvThe fact that we have changes we want to make to the config.13:01
smoserroaksoax, consuming shell from python is non ideal. i'd support moving away from that.13:01
jtvRight now, if you run the script (even with --help!) it writes its new config.  After that it gets harder to move things around the way we intend to.13:01
jtvWhat smoser said.13:01
roaksoaxsmoser: roght i agree in the meantime it wouldnt hurt would it?13:01
jtvWe've already moved away from that, but we've got some changes we want to make to how we migrate away from it.13:01
roaksoaxjtv: ok13:02
roaksoaxjtv: ETA?13:02
smoserand how is this planning to be run?13:03
smoserpreviously the user could run 'maas-import-ephemerals' and when it returned they knew that the system was ready for use.  while that may not be an ideal interface, it does allow you to actually determine when maas was usable.13:04
smoserafter installation, there needs to be a way to basically block until usable.13:04
jtvHoping to be done with the config changes by Wednesday.  But hard to predict, given the state of documentation etc.13:04
jtvsmoser: it's still run in the same way — whether from the CLI or the UI.13:05
smoserjtv, so in packaged version is this runnable now?13:06
smoseris that what you're saying ?13:06
jtvThe packaged version still uses the old script.13:07
jtvBut you run it in the same way: CLI or web UI13:07
roaksoaxsmoser: the new version is not being installed13:07
smoserwell, i opened bug 1236361.13:22
ubot5bug 1236361 in maas (Ubuntu) "need new simple streams based maas-import-ephemerals" [Critical,Confirmed] https://launchpad.net/bugs/123636113:22
smoseri consider this critical to release of 13.10.13:23
jtvsmoser: by the way, I noticed that the old ephemerals script only seems to download the oldest versions of images.13:25
smoser?13:25
smoseri dont think thats the case.13:25
jtvIt was downloading only beta versions of precise & quantal.13:26
smoseras i'm running it right now against dailies and its dowlnoading saucy 2013100713:26
jtvCould you check your precise & quantal versions?13:27
smoserthe *new* ehpemerals script was broken (due to server data being broken)13:27
smoserin that way13:27
smoserserver data is now fixed.13:27
smoserserver data had 'beta' as the "serial" version which C locale sorts to > YYYYMMDD, so simplestremas code was correctly considering those to be the latest13:27
smoserjtv, i certainly do not want to delay anything, but if you're consuming shell code as 'config' with python, https://gist.github.com/smoser/6466708 does that safely.13:29
jtvsmoser: if you see any specific problem that it would help with, by all means do.13:34
jtvWe do have some advantages that generic code doesn't have though: a statically known set of variables, and an existing relationship between the application and the config file.13:35
smoserjtv, you dnot actually have a know set of variables.13:37
smoseryou exposed a shell program as a config mechanism.13:38
smoserwhich then, users could quite reasonably use however they wanted.13:38
jtvWe have a known set of variables we are interested in.13:38
smoserbut you dont know how they're set.13:38
smoser(note, you can pass in the list of variables you're interested in to that method, and it will correctly get their values)13:39
smoseranyway. i'm fine if you dont use it. but it is as close to "correct" a way as I can come up with to solve the "shell was used as config" problem.13:40
jtvThat's nice.  By all means, once you have the tests done, propose a branch that uses this in MAAS!13:40
=== kentb-out is now known as kentb
=== freeflying is now known as freeflying_away
stokachuwill python-curtin be backported to raring, quantal, and precise?14:58
rbasakstokachu: AIUI it's destined to go into the cloud-tools pocket of the cloud archive15:01
stokachurbasak: ok thanks15:04
smoserstokachu, no.15:12
smosernot necessary15:13
stokachuso funny story if you run make install-dependencies in the maas code tree it removes all network-manager related packages15:13
stokachuleaving you without internet15:13
smosergood times.15:13
smoseryou didn't need that interweb stuff anyway15:13
stokachulol15:13
smoserstokachu, you dont need to port python-curtin to raring/quantal or precise.15:15
smoserbecause pytho-curtin is installed on the maas server15:15
smoserit is packed up into a self extracting tarball, and shoved across to the installing node.15:16
smoserand then invoked over there.15:16
stokachuin the control file it depends on python-curtin15:16
smoserthats right.15:16
smosermaas does depend on that.15:16
smoseryou will not get maas with curtin support on Q or R.15:17
smoseryou get it on P through cloud-archive tools15:17
stokachuso are all maas developers running saucy at this point?15:17
stokachuor will buildout handle getting a maas development instance up locally15:17
smoseroh. i see.15:18
smoseri dont know the answer to that question.15:18
stokachui tried following the hacking.txt file but it left me without network connectivity15:18
smoserstokachu, my response to any software package that says "hey, run this as root" is "run this in a lxc container or new cloud instance".15:20
smoserwhich makes running saucy or precise easy, and alleviates the network manager hardship.15:21
smoseri'm not saying thats a good thing, but its a general purpose solution to the problem.15:21
stokachuok15:21
smoserroaksoax, https://bugs.launchpad.net/ubuntu/+source/maas/+bug/123643315:51
ubot5Ubuntu bug 1236433 in maas (Ubuntu) "maas-cluster-celery did not survive upgrade" [Undecided,New]15:51
roaksoaxsmoser: did you only upgrade maas or rabbitmq or something else too?15:55
roaksoaxsmoser: you are also upgrading upstart: upstart:amd64 (1.10-0ubuntu3, 1.10-0ubuntu6)15:55
roaksoaxsmoser: might be related?15:55
smosersee bug.15:56
smoserroaksoax, fwiw, it still seems unable to power on nodes for me :-(15:56
smoser(even after starting the daemon)15:57
roaksoaxsmoser: weird, I have been running a server myself without issues15:58
roaksoaxsmoser: i'll check in a bit15:58
stokachuso user provided preseed files are only available for enlist and commissioning? is there a way to override generic preseed during install?16:17
roaksoaxstokachu: you can modify the preseed as you wish16:19
stokachuroaksoax: directly modifying the generic preseed or through a user supplied preseed?16:20
roaksoaxstokachu: directly modifying the preseed. you can create your own preseeds there and they will be added to the path, and you will have to add what you want to be added to the generic preseed from those user supplied ones16:20
roaksoaxstokachu: for example, preseed_master imports from generic, so you could techniclally create another preseed similar to generic, and in preseed_master you would need to "call" what's in your preseed16:21
stokachuso generic inherits preseed_master so wouldnt i need to create a generic_custom?16:23
stokachuor is this the problem with Tempita16:23
stokachuthe documentation states Tempita's inheritence is 'weird'16:24
strikovhey guys. i just switched my toy maas server from 12.04 to 13.04 and met very strange issue. when i accept the node (either using dashboard or maas-cli) system doesn't create anything in pxelinux.cfg (in fact this folder is not created) and my nodes can't start commissioning. any ideas on how to fix that? thanks16:27
stokachuso if i wanted to reconfigure the network on the node during installation do i edit generic or preseed_master16:27
stokachuso creating amd64_generic_saucy will override generic, but i would still need to modify preseed_master to accept new network defintions, is that correct?16:29
stokachuroaksoax: ah i see now what you meant by calling whats in my preseed16:31
roaksoaxstokachu: :)16:32
stokachuroaksoax: so in the web ui when a preseed is created for a node it'll pick up amd64_generic_precise if the commissioning is set to that os image?16:33
stokachuos image being precise16:33
roaksoaxstokachu: huh?16:38
stokachuroaksoax: when commissioning a node will it pickup amd64_generic_precise if it exists?16:40
strikovwell, i figured out that maas from 13.04 uses python/twisted-based tftp server instead of original tftpd. it mean that it can handle requests w/o pxelinux.cfg folder. but my nodes are stopped trying to pull pxelinux.cfg/<mac> which means that this tftp server doesn't work well.16:42
roaksoaxstokachu: you added a preseed from the webui?16:44
roaksoaxstokachu: for commissioning/enlistment you can only add scripts that will do different taskls, not preseeds16:44
stokachuroaksoax: where does the installer pick up amd64_generic_precise from if it exists?16:45
stokachupreseed_master hardcodes the network, i need to override that16:45
roaksoaxstokachu: what's amd64_generic_precise?16:45
stokachuroaksoax: that is my user-provided preseed16:46
stokachufrom the doc: As you can see this mechanism is also used to calculate the base preseeds for16:46
stokachuall of installation, enlistment and commissioning.  It allows end users to16:46
stokachuadd, for example, a file named ``amd64_generic_saucy`` that would be used16:46
stokachuinstead of the ``generic`` template at installation time.16:46
roaksoaxstokachu: idk how will affect curint installation method which uses the style of enlistment/commissioning, but if you are using d-i16:47
roaksoaxcommissioning/enlistment are completely different from installation preseeds16:47
stokachuroaksoax: that i understand, i am more concerned with how to override the preseed during installation16:47
roaksoaxstokachu: ok, so have you added your preseed to /etc/maas/preseeds?16:48
stokachubefore the actuall install procedure16:48
roaksoaxstokachu: and defined a section16:48
roaksoaxand called it in preseed_master?16:48
stokachuso thats my question do i create a amd64_generic_precise and inherit preseed_master16:48
roaksoaxstokachu: if you'd show me a diff of what you are trying to do maybe I could understand better :)16:49
stokachuok one sec16:49
stokachuroaksoax: http://paste.ubuntu.com/6205699/16:51
stokachupreseed_master call self.network_conf, but that only exists in amd64_generic_precise16:52
stokachuis this the correct way to override the installation for a amd64 precise install via maas?16:52
roaksoaxstokachu: yeah that should work, but if network_conf is only for mad6416:52
roaksoaxthen you would need to do stuff like: {{if node.architecture in {'i386/generic', 'amd64/generic'} }}16:53
stokachuput that in the preseed_master right?16:53
roaksoaxstokachu: http://pastebin.ubuntu.com/6205703/16:54
stokachuah ok16:54
stokachuroaksoax: thanks this clears up some stuff for me to work on16:55
stokachuroaksoax: because i named it amd64_generic_precise this will only be read during a precise install correct?16:56
stokachueverything else uses generic16:56
roaksoaxstokachu: i don't know if the naming convention works that way16:59
roaksoaxstokachu: better ask Ruetobas16:59
roaksoaxerr16:59
roaksoaxrvba:16:59
roaksoaxsorry16:59
roaksoax:)16:59
stokachuroaksoax: im referencing the preseeds.rst documentation17:00
roaksoaxstokachu: I have not tested that, but if that what the documentation says then I would give it a try17:00
stokachuthere also doesn't seem to be a way to just create a install preseed for a series without defining the architecture17:00
stokachuok ill do some more testing on this17:01
smoserstrikov, i think likely the tftp server is not listening on the right interface17:17
strikovsmoser: i had pretty the same thought first, but my node can pull pxelinux.0 w/o any problems17:22
strikovsmose: i assume it pulls this file through tftp as well17:22
smoserstrikov, its od..17:24
smoseri've seen this before.17:24
smoseris your node virtual ?17:24
strikovyes, the whole environment is vbox based17:24
smoserhttps://bugs.launchpad.net/maas/+bug/105162617:24
ubot5Ubuntu bug 1051626 in MAAS "PXE boot not working in virtual environment" [High,Expired]17:24
strikovsmoser: interesting, but it looks like guys in the bug can't pull pxelinux.0 as well17:25
strikovsmoser: we may observe different sides of the same issue though17:26
smoserstrikov, no. se my coments in line 13.17:26
smosercomment 1317:26
smoserand even 7.17:26
strikovah, i see17:27
strikovmaas from 12.04 worked fine for me in the same environment17:27
strikovi need to check if pxe binary changed a lot17:28
smoserstrikov, its not the pxe binary17:28
smosersee my other comments there. . i basically tested everything hardy -> 12.0417:28
strikovaha, well it looks like the issue began when maas switched to its own tftp server, right?17:31
strikovbecause 12.04 was the last maas with original tftp17:31
strikovdid you try gavin's solution with restarting pserv?17:32
smoserstrikov, i have tried many things. and i'm not sure if i hit this or not any more.17:35
strikovokay, i'll give it a try now. thanks for pointing to the bug.17:35
smoserstrikov, could you try adding 'next-server' entry in /etc/maas/dhcpd.conf17:35
smoserand setting it correctly17:35
smoseri'm just curious.17:35
strikovokay, my virtual machine is reinstalling now, i'll check when it is ready17:36
strikovsmoser: restaring pserv doesn't help18:14
strikovsmoser: what did you mean by next-serv, do you want me to put my original server ip there or to setup external tftpd and put it there?18:15
smoseradd an entry in /etc/maas/dhcpd.conf for 'next-server YOUR.SERVER.IP.HERE'18:17
smoserright underneith the 'filename' entry18:17
strikovsmoser: i see and actually i found tons of errors in /var/log/maas/pserv.log while doing pxe boot18:19
strikovsmoser: it can't find some images, trying to understand what's happening18:19
strikovsmoser: actually it can't find i386 images because i disabled pulling them18:22
smoserstrikov, yeah... so that sucks.18:23
smoseri think this is basically  unavoidable.18:23
strikovsmoser, next-server doesn't help18:23
smoserthat you have to have the i38618:23
smoserfor enlistment at least18:23
smoseras maas doesn't know the arch at tha tpoint.18:24
strikovi did enlistment18:24
strikovwith the bootable cd18:24
strikovat this point maas should know my arch i think18:24
strikovsmoser: eod for me. i'll keep trying tomorrow and let you know if i find the solution18:26
strikovsmoser: thanks for helping, ttyl18:26
smoserstrikov, i agree, it shoudl know18:28
smoserroaksoax,18:51
smoser<adam_g> smoser, [Mon Oct 07 18:50:06 2013] [crit] [client 127.0.0.1] configuration error:  couldn't perform authentication. AuthType not set!: /MAAS/static/images/amd64/generic/precise/xinstall/root.tar.gz   <- any hint?18:51
roaksoaxsmoser: that's apache?18:59
adam_gdropping 'Require all granted' from maas-cluster-http.conf helps19:01
adam_groaksoax, yea19:01
adam_gsmoser, curtin worked fine otherwise \o/19:03
roaksoaxadam_g: weird, before that required all granted was needed otherwise it wouldn't work19:04
roaksoaxadam_g: hold done, is this precise?19:04
roaksoaxadam_g: is this precise?19:05
adam_groaksoax, it is 1.4+bzr1656+dfsg-0ubuntu2~ctools0  on precise19:05
roaksoaxadam_g: that's the problem them, for saucy the http ocnfig is different19:05
roaksoaxwhich is why it fails in precise19:05
roaksoaxdue to different apache19:05
adam_goh hum19:06
adam_gthat stinks19:06
smosergah.19:06
smoserthat does stink.19:06
roaksoaxsmoser: i guess we could try fix that in postinst19:06
smoserwell, you probably shouldnt edit a conffile postinst19:06
smoserthough, right?19:07
roaksoaxsmoser: yeah but that is a config file being shipped by maas btw19:07
smoserright.19:07
smoserbugger19:07
roaksoaxyup19:08
adam_gsome good pointers in https://wiki.debian.org/Apache/PackagingFor24 for supporting both apaches19:08
roaksoaxok i think i know how to fix it19:09
smoseroh nice.19:10
smoserIfVersion19:10
roaksoaxyup19:10
smoserroaksoax, i'll file a bug19:11
roaksoaxsmoser: ok19:11
smoserroaksoax, https://bugs.launchpad.net/cloud-archive/+bug/123654419:17
ubot5Ubuntu bug 1236544 in MAAS "canot access static images over http with apache 2.2 (precise)" [Critical,Confirmed]19:17
roaksoaxsmoser: thank you19:19
sconklinI'm unable to bootstrap the juju environment on my raring maas server. Best I can tell from searching, it's because all my nodes are "allocated to root", and not "ready". How can I return them to ready status19:22
smosersconklin, maas-cli $MAASNAME node release "$nodeid"19:24
roaksoaxsmoser: makes sense? http://paste.ubuntu.com/6206324/19:25
roaksoaxadam_g: could you pelase test: http://paste.ubuntu.com/6206324/19:25
sconklinsmoser: what is $MAASNAME?19:26
smosersconklin, however you use maas-cli19:26
smoserif you've not used maas-cli you need to set that up.19:27
sconklinnever used it19:27
smoserhttp://paste.ubuntu.com/6206336/19:28
smoseryou can do the same stuff in the web ui, click 'release' for each of the nodes.19:29
sconklinI don't see 'release' in the UI19:29
smoseror 'stop node' i guess.19:29
sconklinor stop node19:29
smoserfor the node?19:30
smoseryou have to go to the node' spage.19:30
roaksoaxsmoser: proposed fix... just need someone to test it: https://code.launchpad.net/~andreserl/maas/lp1236544/+merge/18969219:32
adam_groaksoax, works but two things: should be closed with </IfVersion>, not </If> and you need to enable the 'version' module for that tag to work19:32
smoseradam_g, you have a funny definiton of "works"19:33
stokachudoing a clean upgrade from maas 1.2 to maas 1.4 in cloud-tools shows this error http://paste.ubuntu.com/6206361/19:36
stokachuany way around that other than removing and installing maas 1.4?19:36
stokachuhmm i did a clean install of maas and get that same error during the migration19:44
smoserwow.19:47
smoserstokachu, please file a bug.19:47
guntbertdid anybody see my report about http://maas.ubuntu.com/docs/install.html ?19:48
smoseradam_g, did you test roaksoax config change at https://code.launchpad.net/~andreserl/maas/lp1236544/+merge/18969219:48
AskUbuntuCan MAAS install non-ubuntu operating system | http://askubuntu.com/q/35499619:49
adam_gsmoser, i tested the equiv manually, but only works when the version module is enabled. there's a corresponding packaging change that needs to happen19:50
stokachusmoser: figured it out, maas build depends on python-django and doesn't set a min version requirement as maas 1.4 needs at least django 1.419:51
stokachuill file a bug with a patch19:51
smoserroaksoax, ^19:51
roaksoaxadam_g: yeah typo :)19:52
stokachuor i can just do a MP19:52
roaksoaxadam_g: is the module called 'version'? (a2enmode version)19:52
adam_groaksoax, yeah19:52
smoserstokachu, we need a bug.19:52
roaksoaxadam_g: k thanks19:52
smoserthen you can do a MP19:52
roaksoaxsmoser: i think we can drop the build-dep in python-django19:53
smoserbut we have to have a bug at this point in the ubuntu cycle19:53
smoserroaksoax, id ont follow. stokachu is explicitly stating we need runtime depends (i think)19:53
stokachusmoser: ok ill create it too19:53
stokachubug that is19:53
roaksoax15:54 < stokachu> smoser: figured it out, maas build depends on python-django and doesn't set a min version requirement as maas 1.4 needs at least django 1.419:54
stokachuGenericIPAddressField was introduced in django 1.419:54
smoserroaksoax, yeah, how would we drop the build-dep ? i'm confused.19:54
roaksoaxsmoser: we don't really build anything (binaries and such)19:55
smoseryou could remove a 'Build-Depends' possibly, but who cares. the problem is that we are missing a 'Depends'19:55
smoserwell, roaksoax generally speaking i think the "best practice" is to build-depends on everything you Depends on and run 'make test' and use dh-python magic to determine your runtime depends wherever you can.19:56
roaksoaxsmoser: we are missing versioning, not a depends19:56
smoserright.19:56
smoserso how would dropping a build-depends change anything.19:56
roaksoaxsmoser: http://paste.ubuntu.com/6206456/19:57
roaksoaxmakes sense?19:57
stokachuroaksoax: yea that works19:57
smoserroaksoax, is it 'maas-region-controller' that depends on it? or is it python-django-maas.19:59
smoseri suspect the first, but just checking.19:59
roaksoaxsmoser: the first one19:59
smoserk. then that change sems to make sense to me.19:59
roaksoaxsmoser: https://code.launchpad.net/~andreserl/maas/packaging_lp1236544/+merge/18969420:04
roaksoaxhttps://code.launchpad.net/~andreserl/maas/lp1236544/+merge/18969220:04
roaksoaxall yours20:04
smoserroaksoax, you need the packaging change alos20:05
smoserright?20:05
smoserto enable the config mod20:05
roaksoaxsmoser: i did that already, check both MP's20:05
smoseroh i see.20:05
smoser:)20:05
smosersorry20:05
roaksoax:)20:05
roaksoaxno worries20:05
smoserbut you need sconklin's bug number for your debian/control change20:05
smoserrelease team will want the bug number20:05
sconklinsmoser: ??20:06
smoseroh. sorry.20:06
roaksoaxstokachu: what's the bug number20:06
smoserstokachu's bug20:06
roaksoaxadam_g: what did you install to get the version module:20:06
roaksoaxroaksoax@pursue:/etc/openvpn$ sudo a2enmod version20:06
roaksoaxERROR: Module version does not exist!20:06
stokachui need to create the bug20:06
stokachulemme do that right now20:07
stokachuroaksoax: 123657220:09
roaksoaxstokachu: thank you sir!20:10
stokachuroaksoax: np :D20:10
guntbertguys I can understand that you don't want to deal with apparent errors in the documentaion - in the meantime I filed a bug report - but it would have been nice if someone had said so :-)20:11
stokachuguntbert: did you associate an MP with it?20:12
guntbertstokachu: MP?20:13
stokachuguntbert: a merge proposal with the documentation changes20:13
smoserguntbert, i personally don't agree with bigjools' statement there.20:13
roaksoaxstokachu: yep20:13
adam_groaksoax, i didn't install anything to have that module available20:14
roaksoaxadam_g: weird... I don't seem to have it20:15
guntbertno, I didn't have any proposal yet, atm I am just trying to follow some guide and stumbled over that discrepancy - anyway the bug I filed is #123657120:16
stokachuguntbert: cliking import boot images really just shells out to maas-import-pxe-files20:17
stokachuafaics20:18
guntbertstokachu: I see, so the instructions still apply - and it was only a misunderstanding20:19
stokachuguntbert: i think you have a valid bug20:19
stokachuguntbert: just needs some better wording on the docs is all20:19
roaksoaxadam_g: ok that module seems to be available in precise but not in suacy20:20
roaksoaxsmoser: ^^20:20
guntbertstokachu: well there are always the same problems with docs for a fast moving project :-)20:21
stokachuguntbert: agreed -- i recently fixed a few just a few days ago20:21
smoserroaksoax, really?20:21
roaksoaxy20:21
smoserwhat is the module name ?20:21
roaksoaxsmoser: version20:21
roaksoaxsmoser: you give it a try to see im not crazy20:21
smoserpackage ?20:22
roaksoax the package has to a2enmod version if 2.2 is installed. For 2.4, we will compile mod_version in statically.20:22
guntberthave a nice time - bed time here :-)20:23
smoserroaksoax, so you ahve a fix?20:29
smoserwho is "we" ?20:29
smoseri'm confused20:29
roaksoaxsmoser: i read that somewhere20:31
roaksoaxsmoser: i don't have a fix yet20:32
roaksoaxsmoser: we should probably be carrying a delta otherwise20:32
roaksoaxsmoser: https://wiki.debian.org/Apache2Transition#Should_we_support_a_transitional_fallback_configuration_which_allows_web_apps_to_work_with_both_2.2_and_2.4_packages20:32
adam_groaksoax, you should only need to 'a2enmod version' from postinst if running apache2.220:33
adam_ghttps://wiki.debian.org/Apache/PackagingFor24 has a good example for detecing that from postinst20:34
roaksoaxadam_g: ok so this should be it: http://paste.ubuntu.com/6206625/20:38
roaksoaxsmoser: http://paste.ubuntu.com/6206625/20:38
adam_groaksoax, looks reasonable20:41
roaksoaxsmoser: https://code.launchpad.net/~andreserl/maas/packaging_lp1236544/+merge/18969420:42
roaksoaxadam_g: ty20:43
smoserroaksoax, alternatively you just dont care if the a2enmod fails20:45
smoserright?20:45
roaksoaxsmoser: better? http://paste.ubuntu.com/6206668/20:47
smoserwell, thats not really waht i was saying.20:47
smoseryours is fin ei thikn20:47
smoseri was saying you can just only 'a2enmod version || true'20:48
smoseron apache2 it runs fine.20:48
smosererrr on 2.2 tha tworks20:48
smoseron 2.4 it will fail, but you dont care20:48
roaksoaxsmoser: right20:53
roaksoaxsmoser: either way works i guess20:53
roaksoaxsmoser: do you want me to change it?20:57
smoseryours is fine. i think.20:59
smoserif you've tested it.20:59
roaksoaxsmoser: i haven't21:06
smoseralright. i have to run for a couple hours. ill be in later.21:07
roaksoaxsmoser: k enjoy!21:09
smoserroaksoax, thanks for your work on this.21:09
roaksoaxsmoser: np21:09
=== CyberJacob is now known as CyberJacob|Away
roaksoaxsmoser: i think maas-signal or maas are broken :/22:43
bigjoolso/ roaksoax22:43
roaksoaxbigjools: howdy22:43
roaksoaxbigjools: back from holidays?22:44
bigjoolsyes, 15m ago22:44
roaksoaxbigjools: hope you enjoyed it !22:44
bigjoolsETOOMUCHEMAIL22:44
bigjoolsI did, thanks!22:44
bigjoolsmight not do so much driving next time22:44
roaksoaxbigjools: heh! the fun of driving22:45
roaksoaxbigjools: so now that you are here.. you can help me debug this22:46
roaksoaxbigjools: :P22:46
bigjoolsroaksoax: normally it's fine but not so much with 4 kids22:46
bigjoolsroaksoax: I can try but I am considering turning off IRC so I can catch up with email22:46
bigjoolsso just to warn you :)22:46
roaksoaxbigjools: haha i think that might be a bad idea.. FinalFreeze on Thrusday :)22:47
bigjoolsI know ...22:47
bigjoolsI need to write release notes22:47
roaksoaxbigjools: ok so just quickly. I'm enabling moonshot to hopefully land it in saucy22:47
bigjoolscool22:47
roaksoaxbigjools: so the issue seems that maas doesn't seem to be updating the power params in maas22:48
roaksoaxbigjools: on commissioning22:48
roaksoaxbigjools: the power_type gets set, but not power_user,power_pass,power_address22:48
roaksoaxbigjools: where can I debug this?22:48
bigjoolsroaksoax: turn on http debugging using the API call to change settings22:49
roaksoaxbigjools: (if i change power tyupe of ipmi the same result, so I know this is not only a moonshot thing)22:49
bigjoolsand you can see the message that maas-signal sends22:49
bigjoolsif you're not familiar with it I can tell you how22:50
roaksoaxbigjools: yeah i just need to know how to enable the logging fro apache222:50
roaksoax(http debugging)22:51
bigjoolsoh it's changed in my absence....22:51
bigjoolsroaksoax: it dumps at log level DEBUG22:52
bigjoolsyou might be able to change that in the web UI22:52
bigjoolsbut I don't know offhand how to set it in the API22:52
stokachuwhat log file contains information about what happens after i press 'start node'22:53
stokachuive setup ssh keys and have virsh configured over ssh for the power type22:53
roaksoaxbigjools: uhmmm22:53
roaksoaxbigjools: can't we do this in apache2?22:53
bigjoolsno22:53
bigjoolsit's better to do it in Django22:54
bigjoolsyou get a nice formatted dump22:54
bigjoolsjust hack the log level at the end of src/maasserver/middleware.py22:54
bigjoolsand restart apache22:54
bigjoolswe're supposed to be able to set this on the fly but I don't know how now that someone changed this code22:54
roaksoaxbigjools: /etc/maas/maas_local_settings.py has the logging22:54
roaksoaxbigjools: so is this for handlers or loggers or what?22:54
roaksoaxadh dah22:55
roaksoaxhandlers22:55
bigjoolsall http comms are logged at DEBUG by default22:55
bigjoolsso turn on DEBUG22:55
roaksoaxno luck doing it in the config22:57
roaksoaxbigjools: so this would output to maas.log right?22:58
bigjoolsroaksoax: yes22:59
bigjoolsdid you restart apache after changing the config?22:59
roaksoaxbigjools: yup22:59
roaksoaxbigjools: no nothing23:04
roaksoaxi even restart the machine23:04
bigjoolsroaksoax: just hack the log level in that source so it's at INFO23:04
bigjoolsthen restart apache23:04
bigjoolsyou'll see stuff in either apache's log or maas.log, can't remember which23:05
roaksoaxbigjools: logger.debug("%s\n%r\n%s", header, request, request.content)23:05
roaksoaxi changed that from logger.info to logger.debug23:05
bigjools    log_level = logging.DEBUG23:05
roaksoaxbigjools: i can't find that in maasserver/middleware.py23:06
bigjoolsyou have an old source23:06
bigjoolstrunk is newer23:06
roaksoaxbigjools: this is trunk from last week23:06
roaksoax-_-'23:06
roaksoaxanyway,. gonna get a newer maas then23:07
bigjoolsthis change is in r166023:07
roaksoaxbigjools: i have 1655 or so23:08
roaksoax:)23:08
bigjoolsthe old code is changable with an API call then23:08
roaksoaxbigjools: what's the api call? :)23:08
bigjoolsroaksoax: set "request_log_debug" in settings23:09
roaksoaxbigjools: that crashes the UI23:13
bigjoolssigh23:13
bigjoolsprobably why the code got changed :)23:13
roaksoaxprobably23:22
roaksoaxok i'll let this build and re-test23:22
roaksoaxbigjools: because if this is really a bug23:22
roaksoaxthen is critical23:22
bigjoolssure23:22
roaksoaxbigjools: ok im in newer trunk23:55
bigjoolsroaksoax: ok so look for "log_level = logging.DEBUG" near the bottom of middleware.py23:55
roaksoaxbigjools: changed from debug to info23:55
bigjoolsand s/DEBUG/INFO/ then restart apache23:55
roaksoaxand don't really see any log23:56
bigjoolssomething must be logged somewhere23:56
bigjoolsdo some UI or API requests23:56
roaksoaxbigjools: i just see the normal stuff23:57
bigjools:/23:57
bigjoolsI know this stuff works, I've seen it23:57
bigjoolsas I said, not sure which log though23:57
roaksoaxbigjools: i'm tailing apache logs, all of maas' logs23:57
roaksoaxetc23:57
roaksoaxbigjools: this is the only thing i see: ==> /var/log/apache2/access.log <==23:59
roaksoax10.18.1.40 - - [07/Oct/2013:18:58:51 -0500] "POST /MAAS/metadata//2012-03-01/ HTTP/1.1" 200 181 "-" "Python-urllib/2.7"23:59
bigjoolsroaksoax: ah bugger,  this logging only works for maasserver, there's a different api for metadata23:59
roaksoaxplop23:59
roaksoaxbigjools: how can we see that then :)23:59

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