/srv/irclogs.ubuntu.com/2014/07/07/#maas.txt

=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== CyberJacob|Away is now known as CyberJacob
gmbbigjools: I was going to pick up https://bugs.launchpad.net/maas/+bug/1338402 but then I saw your thread about IP address filtering and Django weirdness… are you working on this bug already/?06:47
ubot5Ubuntu bug 1338402 in MAAS "Static IP range can be changed with no checks that it would exclude currently allocated IPs" [Critical,Triaged]06:47
bigjoolsgmb: I'm trying to fix Andreas' bug, not that one06:47
bigjoolsI was thinking about that one on the side06:47
gmbbigjools: Okay, cool.06:47
bigjoolsneeds a cursor query I think06:47
gmbSounds like it. Django’s magic is a distinct brand of weird sometimes.06:48
bigjoolsselect TRUE FROM blah HAVING MIN(min_range) AND MAX(max_range)   etc...06:48
gmbRight.06:49
bigjoolsso should get True/False depending on whether the min from existing addresses is outside the entered range06:49
bigjoolsmin/max06:49
bigjoolswell that query as it stands is crap but you get the idea :)06:49
gmbbigjools: Cool, thanks. I’d got as far as “cursor query” in my head and then was thinking about having another cup of tea before starting coding :).06:50
bigjoolsheh06:50
bigjoolsneeds an ORDER in there too06:50
bigjoolspossibly... not sure if PG DTRT here06:50
bigjoolsI have NFI why Django is screwing with that other filter thing06:52
bigjoolsthat's totally hatstand06:52
=== vladk is now known as vladk|offline
=== jfarschman is now known as MilesDenver
=== vladk|offline is now known as vladk
bigjoolsrvba: so Django is trying to be "helpful" again07:18
rvbabigjools: yeah, I just found where it's done…07:19
bigjoolsrvba: there's loads of bugs filed in the django tracker about host()07:19
rvbabigjools: in django/db/backends/postgresql_psycopg2/operations.py:DatabaseOperations07:19
rvba    def field_cast_sql(self, db_type):07:20
bigjoolsright07:20
rvba        if db_type == 'inet':07:20
rvba            return 'HOST(%s)'07:20
rvba        return '%s'07:20
rvbaAnd GenericIPField = inet07:20
bigjoolscursor.... sigh07:20
bigjoolsshould be called a curser07:20
rvbaheh07:21
bigjoolsbecause it gets used after you swear a lot at ORM bugs07:21
rvbabigjools: there is a workaround07:30
rvban [2]: print StaticIPAddress.objects.filter(ip__lte='10.0.0.96').query07:30
rvbaSELECT "maasserver_staticipaddress"."id", "maasserver_staticipaddress"."created", "maasserver_staticipaddress"."updated", "maasserver_staticipaddress"."ip", "maasserver_staticipaddress"."alloc_type", "maasserver_staticipaddress"."user_id" FROM "maasserver_staticipaddress" WHERE "maasserver_staticipaddress"."ip" <= 10.0.0.9607:30
bigjoolswhat's the workaround?07:30
rvbabigjools: it's a bit ugly:07:31
rvbahttp://paste.ubuntu.com/7759034/07:31
bigjoolshow did I guess that was coming07:32
rvbaI just took it from the bug report.07:32
=== CyberJacob is now known as CyberJacob|Away
bigjoolsI'm going to use a cursor07:32
rvbabigjools: HOST is used only if get_internal_type return GenericIPField07:32
bigjoolsit's ugly, but not as ugly as that07:32
bigjoolsright - but what else would break?07:32
rvbaThe good thing with this workaround is that it's a one-off07:32
bigjoolso/ jtv07:37
bigjoolsrvba: https://code.launchpad.net/~julian-edwards/maas/dup-static-ip-bug-1338452/+merge/22577907:45
rvbabigjools: on it07:45
bigjoolsTIA :)07:45
bigjoolsthanks rvba07:54
bigjoolseating now, bbiab07:54
=== jfarschman is now known as MilesDenver
allenapBT have just arrived!08:29
jtvWho's willing to review the "identify NGI by name instead of network interface" API branch?  It's a large diff but only a few dozen actual lines changed: https://code.launchpad.net/~jtv/maas/api-ngi-name/+merge/22565008:51
bigjoolsgmb: one more thing that bug should have said - clearing those fields while an IP is allocated is just as bad09:00
gmbbigjools: I figured that based on what Raphers said, but yes.09:00
bigjoolsgmb: tiptop09:00
=== jfarschman is now known as MilesDenver
rvbaallenap: here is a canonistack instance for you: 10.55.32.22809:16
rvba(With a MAAS package on it)09:16
jtvAlso a slightly nontrivial lint branch: https://code.launchpad.net/~jtv/maas/lint-2014-07-07/+merge/22579409:34
rvbajtv: I'll take it09:35
jtvThanks.09:35
jtvAnnoying lint.09:35
jtvJust didn't have the energy to address it Friday.09:35
dimiternbigjools, jtv, gmb, rvba, allenap, hey guys, we need to have a quick chat some time this week about networking in maas and juju, when will be a good time? (a couple of you for >1h g+ would be great)09:48
jtvMaybe tomorrow 09:00 UTC?09:49
rvbaWFM09:49
rvbaallenap: Do not forget to create the symlink to /mnt before you import the images btw09:49
dimiternrvba, jtv, that works for me too, I'll ask the others and send invites09:50
dimiternthanks!09:50
jtvok09:54
rvbaallenap: well, you won't probably need that instance now that you've got a proper connection :)09:57
allenaprvba: I need to stress test it :)09:58
=== jfarschman is now known as MilesDenver
jtvrvba, have you seen a spurious test failure in maasserver.tests.test_dns.TestDNSConfigModifications.test_add_node_updates_zone?10:54
jtvrndc gets a "connection refused."10:54
jtvUnlucky port number?10:55
rvbajtv: no, never seen that one10:57
=== jfarschman is now known as MilesDenver
jtvIt seems to be rare.11:06
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== ming is now known as Guest65048
=== jfarschman is now known as MilesDenver
=== Guest47111 is now known as jefferai
blake_rrvba: cleanup branch from the license key stuff13:43
blake_rrvba: https://code.launchpad.net/~blake-rouse/maas/utils-osystems-cleanup/+merge/22582813:43
rvbablake_r: Thanks… I'll have a look in a bit… I think allenap is working on this too, he might want to have a look as well.13:44
allenapblake_r, rvba: Yeah, I’ll review that.13:45
blake_rrvba: alot will change when rpc is done but wanted to get it in there13:45
allenapblake_r: Fwiw, I’m working on the RPC stuff for OperatingSystemRegistry.13:47
blake_rallenap: cool, you be better at it than me!13:48
=== jfarschman is now known as MilesDenver
blake_rallenap: https://code.launchpad.net/~blake-rouse/maas/test-os-preseed-templates/+merge/22583814:29
jpdsrsyslogd-3000: Could not open dynamic file '/var/log/maas/rsyslog/10-1-56-17.cloud/2014/07/07/messages' [state -3000] - discarding message14:42
jpdsAnyone know why that would be happening?14:42
gmbrvba, allenap: ^^14:44
gmbLooks like rsyslog hilarity but I haven’t seen that happen first-hand14:45
rvbajpds: never seen that one… like gmb said, it seems something is wrong with rsyslog;  if this happens consistently, I'd suggest changing rsyslog's log level to see if you can get more information about the error…14:48
jpdsrvba: It's not creating any directories under /var/log/maas/rsyslog14:49
allenapjpds: Check ownership of /var/log/maas/rsyslog and the user that rsyslog runs as. It might be that /var/log/maas/rsyslog has the wrong owner.14:55
jpdsallenap: Owned by maas:maas.14:59
allenapjpds: Yeah, on my machine it’s owned by syslog:syslog.15:01
rvbajtv: reviewing your discover-ipv6-interfaces branch now.15:06
jtvThanks.15:08
blake_rallenap: jtv: rvba: gmb: can I get a review of this for 1.6 upgrade https://code.launchpad.net/~blake-rouse/maas/cluster-upgrade-boot-resources/+merge/22586817:17
allenapblake_r: I have dinner now, but I’ll look at it in ~2 hours. Is that okay?17:20
blake_rallenap: no rush, just wanted to inform you all17:20
allenapblake_r: I’d like to review it, and I’m really happy you’ve worked on it. I was puzzled earlier trying to figure out why loads of new things were being downloaded to the cache so I want to see what I missed.17:22
blake_rallenap: i remember you all mentioning it on irc or email, that it was an issue, couldnt find a bug for it, so i reported a new one17:23
blake_rallenap: it shouldn't modify the cache, might have just been downloading all of the new hwe kernels17:24
=== vladk is now known as vladk|offline
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== jfarschman is now known as MilesDenver
=== jfarschman is now known as MilesDenver
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== mwhudson_ is now known as mwhudson
=== CyberJacob is now known as CyberJacob|Away
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline

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