/srv/irclogs.ubuntu.com/2014/09/02/#maas.txt

=== jfarschman is now known as MilesDenver
=== CyberJacob is now known as CyberJacob|Away
=== jfarschman is now known as MilesDenver
=== CyberJacob|Away is now known as CyberJacob
=== jfarschman is now known as MilesDenver
jtvOops: the development environment is broken.02:10
jtvCluster won't start up because the startup code tries to create GNUPGHOME, which is now hard-coded to its production location in /var/lib.02:11
bigjoolsjtv: yeah rvb filed a bug about that02:21
bigjoolsanother critical that needs fixing.... we have so many all of a sudden02:22
bigjoolsbtw: https://code.launchpad.net/~julian-edwards/maas/update-mac-to-cluster-when-updating-leases/+merge/23296102:22
jtvbigjools: approved.02:54
bigjoolsjtv: thanks. BTW I am reviewing Gavin's branch03:00
bigjoolsI forgot to mark it03:00
jtvBrave.03:00
bigjoolsI feel follhardy03:00
bigjoolsfoolhardy, too03:00
jtvIt's all in the follicles.03:03
=== jfarschman is now known as MilesDenver
jtvbigjools: need pre-imp... are you free?03:24
bigjoolsjtv: not just yet, trying to finish reviewing gavin's branch and then I need to eat03:24
jtvOK.03:24
jtvI'll fill the time with something useful.03:24
bigjoolsI'll ping you when I can03:24
bigjoolsjtv: https://bugs.launchpad.net/maas/+bug/1363913 and https://bugs.launchpad.net/maas/+bug/136269303:25
bigjools:)03:25
ubot5Ubuntu bug 1363913 in MAAS "Impossible to remove last MAC from network in UI" [Undecided,New]03:25
ubot5Ubuntu bug 1362693 in MAAS "MAAS is providing 2 IP's even if there's only 1 NIC in the network" [Undecided,New]03:25
jtvSounds fun.03:25
bigjoolsbug 133076503:26
ubot5bug 1330765 in MAAS "If start_nodes() fails, it doesn't clean up after itself." [High,Triaged] https://launchpad.net/bugs/133076503:26
jtvWhy are you listing bugs at me?03:26
bigjoolsignore that one03:26
bigjoolsthat was for me03:26
bigjoolsI'm too lazy to go to LP03:27
=== jfarschman is now known as MilesDenver
bigjoolsjtv: ok call?04:44
jtvYay04:44
=== jfarschman is now known as MilesDenver
bigjoolsjtv: alert05:51
jtv?05:51
bigjoolsGPG home needed on maasserver as well :(05:51
bigjoolssee src/maasserver/start_up.py line 9505:51
jtvIs that a problem though?  We can have the Makefile set it on both sides.05:51
jtvAnd the maasserver can import it from the provisioningserver, no problem.05:52
bigjoolswhich imports from provisioningserver.upgrade_cluster, yegads05:52
bigjoolsthe dev ui is now almost useless without a cluster and image data :(05:56
jtvThe work I'm doing now should put us in a position to provide that though.05:59
jtvBecause a branch will have a natural place to put boot resources etc.05:59
bigjoolseven after blake's changes?05:59
jtvOh, does he still put them in /var/lib/maas..?05:59
bigjoolsno, they're going to be in the DB05:59
jtvWell never mind that then.06:00
bigjoolswe could just fudge the sample data for now06:00
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
jtvrvba, this looks like a question for you: is there, or should there be, a way for a signal handler to find the web request, if any, whose processing led to the firing of the signal?07:22
jtvBecause signal handlers may reconfigure DNS/DHCP, and any errors while doing that ought to be displayed.07:22
rvbajtv: there is no direct (as in built-in) way AFAIK.  The first thing that comes to mind is to make the current request available by storing it somewhere (i.e. as a global object) and letting anything (including signal callbacks) find it.07:25
jtvYeah.  It's a bit ugly though isn't it?07:26
rvbaA tad.  But AFAIK it's the only way.07:26
rvbajtv: I /seem/ to remember we've used this technique before… let me see if I can find it in the code.07:26
jtvWe do have the "register a message on the current page whatever it is" part.07:26
jtvAnother way to do it would be to make it run asynchronously (somehow) and register component errors.07:27
jtvOr, we could move the calls out of the signal handlers and into the forms.07:27
rvbaIf it's possible, moving things like that into the forms seems like the cleanest way to do it.07:28
jtvYeah.  In the long run I'd love to make it asynchronous, where we just set a "dirty" flag to say "this needs reconfiguring," but that sounds like a major project.07:29
jtvIf you take the error backchannel into account, at least.07:29
jtvAnyone able to review https://code.launchpad.net/~jtv/maas/bug-1363900/+merge/232982 ?07:45
rvbajtv: sure, I'll take it.07:46
jtvThanks.07:46
rvbajtv: I wonder why you felt we needed another mechanism to override variables in a dev env.  Don't we have a separate config for this (src/maas/development.py)?07:49
jtvrvba: provisioningserver.  :)07:50
jtvCan't import anything django-ey from there — that rules out the django configs as well, right?07:51
rvbaRight.07:51
jtvIt's annoying, but we're ditching the celery config so we need something in its place.07:51
rvbaIt seems to me that every time we ditch a part of Celery we introduce something more hacky instead.07:52
jtvI wouldn't really know — I've been assigned to other work while this was going on.  But I hope this can replace a bunch of it with a bit of system to it.07:54
jtvYou do a "make run" and you basically get a filesystem root in the "run" directory.07:54
rvbaRight.07:54
jtvAnd: if we stick to the pattern, we lose some side effects.07:55
rvbajtv: in get_path's docstring you say the call has side effects… which side effects?07:59
jtvReading the environment and the filesystem.07:59
jtvAh, not the filesystem — the current working directory.07:59
jtvThey're not very big side effects, but that's a slippery slope.08:00
rvbaIs reading the environment considered a dangerous side effect?08:00
jtvNo, just a side effect — the sort of thing we should avoid doing during import.08:00
rvbaReading the current working directory?  I don't see it, what am I missing?08:01
jtvIt's implicit in the abspath.08:01
jtvAs in, "reading what the current working directory is," not "reading the directory listing."08:01
rvbaReally?  I didn't know that.08:01
rvbaOh, I see, because you're using '.'08:02
jtvActually I think that one will be a simple text processing exercise.  But calling abspath with a relative path makes it get the current working directory.08:03
jtv(Not read the working directory's contents, but read what the cwd is.)08:03
jtvVery minor side effects, but we've been quietly accepting side effects and it leads to more.08:04
=== jfarschman is now known as MilesDenver
rvbajtv: branch approved with a couple of minor suggestions.08:15
jtvThanks!08:15
allenapjtv, rvba: There’s pserv.yaml, which is really not hacky (it has a _schema_). Modifying it from packaging though… that’s hacky.08:30
bigjoolsallenap: it doesn't have per-env settings08:30
rvbaallenap: what bigjools said08:30
=== jfarschman is now known as MilesDenver
bigjoolsallenap: there were a couple of critical pserv/rpc bugs09:09
bigjoolsone was where if it starts before the region, it never connects09:09
allenapbigjools: Ah yes, I’ll take a look at that.09:16
bigjoolsallenap: It would need a 1.6 backport as well09:22
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== dannf` is now known as dannf
=== jfarschman is now known as MilesDenver
rvbaallenap: about my bug-1359169 branch (thanks for the review btw), I'm not sure I can move away from using exception.message because piston and oauth both rely on this pretty heavily it seems.14:08
ramonskiehi i have upgraded to trusty on my cluster controller with maas 1.5.2 installed and i stumbled on this bug https://bugs.launchpad.net/maas/+bug/130777914:21
ubot5Ubuntu bug 1307779 in MAAS "fallback from specific to generic subarch broken" [Critical,Fix released]14:21
ramonskiei saw that this bug is solved in 1.6 but i can't find that package anywhere in the repo14:21
ramonskieany other suggestions?14:21
=== cmagina_ is now known as cmagina_airport
=== cmagina_airport is now known as cmagina_mobile
allenaprvba: Okay, it’s out of your hands, no worries.14:37
blake_rrvba: https://code.launchpad.net/~blake-rouse/maas/fix-1364062/+merge/23307014:42
rvbablake_r: I like the commit message of revision 2874 on https://code.launchpad.net/~blake-rouse/maas/fix-1364062/+merge/23307015:25
blake_rrvba: haha15:25
blake_rrvba: forgot to link the bug with --fixes15:26
blake_rrvba: thanks for the review15:26
rvbaMy pleasure.15:26
newellrvba, how was your flight back?15:33
rvbanewell: horribly bumpy.15:33
newellblake_r, I am fixing up what I have for the curtin-maas-install stuff and then I will push so you can take a look15:33
newellrvba, ah that sucks15:33
newellHopefully you both didn't feel like it was then last flight of your life15:34
blake_rnewell: okay, thanks15:34
newells/then/the15:34
rvbanewell: well, yes, at some point I did.15:34
newellrvba, roaksoax mentioned he wanted me to work with you on whatever you are doing.  Not sure what that is or if you talked with him about this or not.15:35
rvbanewell: yeah, I could use you help on the node event log work.15:36
blake_rrvba: didnt we use to get a traceback on api errors, finding errors in tests, is really hard now15:53
blake_rallenap: ^15:53
rvbablake_r: yes, now we only get tracebacks for real errors, not validation errors etc which, although handled internally as exceptions, are not errors per-se.15:54
blake_rrvba: can we change that so we get tracebacks when running tests?15:54
blake_rrvba: like debug=True return traceback15:54
rvbablake_r: I guess we could do that… what kind of errors are you interested in?15:55
blake_rrvba: i have something wrong in my code, I am running a unit test15:56
blake_rrvba: all i get is a oneliner says the exception error15:56
blake_rrvba: i would like to know where, so I can find it15:56
blake_rrvba: stack tracing through django code to find it takes forever15:56
blake_rrvba: i just want stack trace back15:56
blake_rrvba: on django side15:56
rvbablake_r: sure, but what *kind* of errors are you interested in?15:57
rvbaYou'll still get a stracktrace for a real error.15:57
blake_rrvba: 'NoneType' object has no attribute 'items'15:57
blake_rrvba: that would be a real error, that is all I get15:57
rvbaNot for a BadRequest error anymore.  Which makes sense, because it's not an error even if internally it uses exceptions.15:57
blake_rrvba: its a 500 error15:58
rvbablake_r: okay, this is a bug then.15:58
blake_rrvba: https://bugs.launchpad.net/maas/+bug/136448116:02
ubot5Ubuntu bug 1364481 in MAAS "http 500 error doesn't contain a stack trace" [Critical,Confirmed]16:02
rvbablake_r: cool, I'll take care of it.16:02
blake_rrvba: thanks16:02
rvbablake_r: https://code.launchpad.net/~rvb/maas/traceback-error-500/+merge/23308616:14
blake_rrvba: line 8-9 on the diff? dont you need that?16:16
rvbablake_r: no, it's integrated into ExceptionMiddleware now.16:17
blake_rrvba: okay16:17
ramonskiei have upgraded to trusty on my cluster controller and now i stumbled on this error https://bugs.launchpad.net/maas/+bug/1307779 so it seems that i need to upgrade to maas 1.6 but i can't find the package16:46
ubot5Ubuntu bug 1307779 in MAAS "fallback from specific to generic subarch broken" [Critical,Fix released]16:46
=== jfarschman is now known as MilesDenver
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
=== roadmr is now known as roadmr_afk
gQuigsanyone know if there is any way to get maas to dump all data about it's environment?  sosreport tries to collect "maas dumpdata" but that never works18:20
=== jfarschman is now known as MilesDenver
=== roadmr_afk is now known as roadmr
=== CyberJacob is now known as CyberJacob|Away

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