=== freeflying_away is now known as freeflying
=== CyberJacob is now known as CyberJacob|Away
=== CyberJacob|Away is now known as CyberJacob
rvbajtv: time for a tiny review? https://code.launchpad.net/~rvb/maas-test/unify-logging/+merge/20114109:02
=== freeflying is now known as freeflying_away
=== CyberJacob is now known as CyberJacob|Away
jtvrvba: ahem11:59
jtvTo continue...12:00
rvbajtv: we've got multiple migrations, not just one.12:00
jtvThat's fine, but the point is that if a migration creates the default zone, it needs to do so according to the prevailing schema at the time.12:00
jtvNot the schema as the model code sees it, which may have moved ahead.12:01
rvbaYeah, I know.12:01
jtvJust saying we can't call the same get_default_zone() function from the migration and the regular code.12:01
rvbaThat's true, we need to duplicate that (tiny bit) of code.12:02
rvbaAs always with data migrations.12:02
rvbaWell, the code will be initially duplicated.12:02
jtvOK, then that answers my question.12:02
rvbaLater on, if the model change it won't be an exact duplicate.12:02
rvbajtv: definitely.12:10
rvbajtv: see what some people have done: https://github.com/brightinteractive/django-test-extras/blob/master/test_extras/testcases.py12:10
rvbajtv: see the  DataPreservingTransactionTestCaseMixin class12:10
* jtv has toyed with the idea of 2pc for this, but restrained himself12:11
jtv(I think nowadays it would be possible to detect whether a test had modified the database, and skip the reset if possible — but I doubt it's quite worth the effort today)12:13
* gmb lunches12:18
rvbaHi roaksoax.  Did you get a chance to have a look at the packaging problem I was referring to in the email I sent you the other day?13:19
gmbrvba, allenap: Can I get some love for a branch/ https://code.launchpad.net/~gmb/maas-test/revert-reporting-changes/+merge/20114913:29
rvbagmb: sure, I'll have a look now.13:29
allenaprvba: Can you give me your thoughts on using something like https://github.com/petrounias/json-schema-toolkit for power_parameters validation?13:35
rvbak, having a look now.13:36
rvbaallenap: looks a bit like what we already have for power_parameters validation.  Looks better integrated though.13:41
allenaprvba: I’m thinking about how drivers can share their power schema with the region, and I stumbled on json schema and then this project.13:54
allenaprvba: It would be best if we don’t have to install hardware drivers both on the cluster and region, which we would need if each driver has its own DictCharField (i.e. like in POWER_TYPE_PARAMETERS).13:55
rvbaallenap: right, now I see what the problem is.13:56
allenaprvba: If you have time, can you estimate what it would take to try this out?13:57
rvbaallenap: I'll have another look later today (I want to finish the AZ branch today).  But trying it out, once we know exactly what we're looking for, should be pretty easy.13:58
allenaprvba: Tip top, thanks.13:59
allenaprvba: Can you also think about json schema in general? This code isn’t packages, and neither are its dependencies, but we might be able to satisfy our needs with something lighter. For example, https://python-jsonschema.readthedocs.org/en/latest/ is in main already.14:02
rvbaallenap: okay, I'll try to set aside some time to do that today.  If I don't make it, let's talk about this on Monday morning. Okay?14:04
allenapFor example, could we translate a subset of json schema into DictCharField and co. at runtime?14:04
rvbaYeah, I understand that's the goal.14:04
allenaprvba: Yeah, that’s grand. I don’t mean to derail what you’re doing right now.14:04
rvbaThe schema would be defined on the cluster, and it would then send it to the region.14:04
rvbaallenap: don't worry, I'm not letting anything derail me today.  I really wanna get rid of the AZ branch :).14:05
gmballenap: Can you think of a nice way to get identifying information for a system, such that we can use it for de-duping mass-test reports? We don't want it to be too verbose, but it'd be nice to have something human readable.14:23
=== freeflying_away is now known as freeflying
gmblshw would seem to do the trick, but it's a bit wordy.14:31
jtvrvba: even a review won't derail you?  I have one pending and am working on a follow-up. :)14:36
rvbagmb: maybe a combination of the humanly-readable part of what lshw returns plus /var/lib/dbus/machine-id would do the trick.14:38
gmbrvba: Ah, I didn't know about /var/lib/dbus/machine-id. That'd be perfect. Thanks!14:38
rvbagmb: hang on, now that I think of it, /var/lib/dbus/machine-id being purely software-defined, it won't stay the same.14:42
rvbagmb: you need something hardware-dependent.14:43
rvbagmb: maybe the main board product UUID, as set by the board manufacturer14:44
rvbai.e. /sys/class/dmi/id/product_uuid14:44
gmbrvba: That would work. However, another thought: we need to run this on the machine being tested... do we actually have any capacity to do that in maas-test?14:45
gmbI don't *think* we do.14:45
rvbaJust one sec…14:45
rvbaYes, actually, gathering lshw output is part of the commissioning process.14:46
rvbaAll the info you need is in there.14:46
gmbrvba: So that's fetchable from the MAAS instance?14:46
rvbaAll is in the db.14:46
gmbExcellent, that's fantastic.14:46
gmbI'll get working on that now.14:47
=== CyberJacob|Away is now known as CyberJacob

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