=== 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 [06:47] bigjools: 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] Ubuntu bug 1338402 in MAAS "Static IP range can be changed with no checks that it would exclude currently allocated IPs" [Critical,Triaged] [06:47] gmb: I'm trying to fix Andreas' bug, not that one [06:47] I was thinking about that one on the side [06:47] bigjools: Okay, cool. [06:47] needs a cursor query I think [06:48] Sounds like it. Django’s magic is a distinct brand of weird sometimes. [06:48] select TRUE FROM blah HAVING MIN(min_range) AND MAX(max_range) etc... [06:49] Right. [06:49] so should get True/False depending on whether the min from existing addresses is outside the entered range [06:49] min/max [06:49] well that query as it stands is crap but you get the idea :) [06:50] bigjools: 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] heh [06:50] needs an ORDER in there too [06:50] possibly... not sure if PG DTRT here [06:52] I have NFI why Django is screwing with that other filter thing [06:52] that's totally hatstand === vladk is now known as vladk|offline === jfarschman is now known as MilesDenver === vladk|offline is now known as vladk [07:18] rvba: so Django is trying to be "helpful" again [07:19] bigjools: yeah, I just found where it's done… [07:19] rvba: there's loads of bugs filed in the django tracker about host() [07:19] bigjools: in django/db/backends/postgresql_psycopg2/operations.py:DatabaseOperations [07:20] def field_cast_sql(self, db_type): [07:20] right [07:20] if db_type == 'inet': [07:20] return 'HOST(%s)' [07:20] return '%s' [07:20] And GenericIPField = inet [07:20] cursor.... sigh [07:20] should be called a curser [07:21] heh [07:21] because it gets used after you swear a lot at ORM bugs [07:30] bigjools: there is a workaround [07:30] n [2]: print StaticIPAddress.objects.filter(ip__lte='10.0.0.96').query [07:30] SELECT "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.96 [07:30] what's the workaround? [07:31] bigjools: it's a bit ugly: [07:31] http://paste.ubuntu.com/7759034/ [07:32] how did I guess that was coming [07:32] I just took it from the bug report. === CyberJacob is now known as CyberJacob|Away [07:32] I'm going to use a cursor [07:32] bigjools: HOST is used only if get_internal_type return GenericIPField [07:32] it's ugly, but not as ugly as that [07:32] right - but what else would break? [07:32] The good thing with this workaround is that it's a one-off [07:37] o/ jtv [07:45] rvba: https://code.launchpad.net/~julian-edwards/maas/dup-static-ip-bug-1338452/+merge/225779 [07:45] bigjools: on it [07:45] TIA :) [07:54] thanks rvba [07:54] eating now, bbiab === jfarschman is now known as MilesDenver [08:29] BT have just arrived! [08:51] Who'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/225650 [09:00] gmb: one more thing that bug should have said - clearing those fields while an IP is allocated is just as bad [09:00] bigjools: I figured that based on what Raphers said, but yes. [09:00] gmb: tiptop === jfarschman is now known as MilesDenver [09:16] allenap: here is a canonistack instance for you: 10.55.32.228 [09:16] (With a MAAS package on it) [09:34] Also a slightly nontrivial lint branch: https://code.launchpad.net/~jtv/maas/lint-2014-07-07/+merge/225794 [09:35] jtv: I'll take it [09:35] Thanks. [09:35] Annoying lint. [09:35] Just didn't have the energy to address it Friday. [09:48] bigjools, 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:49] Maybe tomorrow 09:00 UTC? [09:49] WFM [09:49] allenap: Do not forget to create the symlink to /mnt before you import the images btw [09:50] rvba, jtv, that works for me too, I'll ask the others and send invites [09:50] thanks! [09:54] ok [09:57] allenap: well, you won't probably need that instance now that you've got a proper connection :) [09:58] rvba: I need to stress test it :) === jfarschman is now known as MilesDenver [10:54] rvba, have you seen a spurious test failure in maasserver.tests.test_dns.TestDNSConfigModifications.test_add_node_updates_zone? [10:54] rndc gets a "connection refused." [10:55] Unlucky port number? [10:57] jtv: no, never seen that one === jfarschman is now known as MilesDenver [11:06] It seems to be rare. === 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 [13:43] rvba: cleanup branch from the license key stuff [13:43] rvba: https://code.launchpad.net/~blake-rouse/maas/utils-osystems-cleanup/+merge/225828 [13:44] blake_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:45] blake_r, rvba: Yeah, I’ll review that. [13:45] rvba: alot will change when rpc is done but wanted to get it in there [13:47] blake_r: Fwiw, I’m working on the RPC stuff for OperatingSystemRegistry. [13:48] allenap: cool, you be better at it than me! === jfarschman is now known as MilesDenver [14:29] allenap: https://code.launchpad.net/~blake-rouse/maas/test-os-preseed-templates/+merge/225838 [14:42] rsyslogd-3000: Could not open dynamic file '/var/log/maas/rsyslog/10-1-56-17.cloud/2014/07/07/messages' [state -3000] - discarding message [14:42] Anyone know why that would be happening? [14:44] rvba, allenap: ^^ [14:45] Looks like rsyslog hilarity but I haven’t seen that happen first-hand [14:48] jpds: 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:49] rvba: It's not creating any directories under /var/log/maas/rsyslog [14:55] jpds: 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:59] allenap: Owned by maas:maas. [15:01] jpds: Yeah, on my machine it’s owned by syslog:syslog. [15:06] jtv: reviewing your discover-ipv6-interfaces branch now. [15:08] Thanks. [17:17] allenap: 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/225868 [17:20] blake_r: I have dinner now, but I’ll look at it in ~2 hours. Is that okay? [17:20] allenap: no rush, just wanted to inform you all [17:22] blake_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:23] allenap: 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 one [17:24] allenap: it shouldn't modify the cache, might have just been downloading all of the new hwe kernels === 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