[00:04:29] 3Wikimedia-Labs-wikitech-interface: Many "(Cannot contact the database server: Too many connections (208.80.154.18))" errors - https://phabricator.wikimedia.org/T78492#847171 (10Aklapper) p:5Triage>3High [01:31:29] Is there any way to increase the size of a volume on a labs instance? I've got only 2gb for /var and logs are eating that up even with logrotate ... [01:32:14] twentyafterfour: why are your logs eating so much space? [01:33:06] Betacommand: someone's got atop raw binary logging, those files are pretty big ... [01:33:08] twentyafterfour: there is a large var role I think you can switch on but it only affects var log I think [01:33:28] if you know how to add a role it's called large logs or something [01:33:38] I had to poke at this awhile ago for similar reasons [01:33:41] chasemp: and that automatically resizes the volume? [01:33:45] twentyafterfour: why not just turn that off, or change how it works [01:33:50] that is a question to which I don't know that answer [01:34:05] Betacommand: it's not my thing to shut off [01:34:26] 2gb of /var is pretty tight, really. increasing the size is the right solution IMO [01:35:05] other things on /var take a bit of space, so logs is left with just less than 1.5gb to work with [01:36:26] wikitech.wikimedia.olrg is down? [01:36:32] (Cannot contact the database server: Too many connections (208.80.154.18)) [01:37:39] seems yes [01:37:40] duh.. already reported T78492 [01:38:19] does that use it's own mysql server or is it part of the main mysql cluster? [01:38:50] I think it's a shared db server but not part of main mysql cluster either :) [01:38:58] honestly I've not touched it [01:39:03] cc'd springle there [01:39:37] I'd poke at it but I don't think I have enough access/knowledge to really do much good [01:40:50] in leiu of a "suggested tickets" thing I wouldn't mind doing a maniphest field that is like "Known issues and outages" [01:41:03] that links to kind of big-ish on going things like when oauth is out or wikitech i down [01:41:14] make it easy to find ongoing outages that don't need dupe reports [01:41:40] 3Wikimedia-Labs-wikitech-interface: Many "(Cannot contact the database server: Too many connections (208.80.154.18))" errors - https://phabricator.wikimedia.org/T78492#847207 (10Andrew) Looks like we're getting crawled. 208.80.154.18 - - [15/Dec/2014:01:40:57 +0000] "GET /w/api.php?action=query&prop=revisions&f... [01:46:51] twentyafterfour: Regarding /var, it kind of depends on how old your instance is. Very recent instances use lvm so you can resize the partition. [01:47:16] Older instances are messier -- you can create a new partition for /var/log but that will break lots of things since they're all expecting particular subdirs to already exist. [01:47:34] So, yeah, reducing your log usage is probably the easiest :( [01:48:02] chasemp: the outage is because of a DOS by a web crawler. I don't immediately know how to block that but if the problem persists I'll dig in [01:48:37] andrewbogott: thanks for looking man! [01:49:01] chasemp: do you know offhand how to troubleshoot something like that? I used to maintain the robots.txt myself but now that we use the upstream wiki config... [01:49:47] well at my last place we would ngrep for the offending user agent [01:49:57] and then you could block by user agent in the load balancers [01:50:06] here I don't know where the place to do that would be [01:50:24] I don't even know where wikitech is running :) [01:50:25] 3Wikimedia-Labs-wikitech-interface: Many "(Cannot contact the database server: Too many connections (208.80.154.18))" errors - https://phabricator.wikimedia.org/T78492#847208 (10Andrew) Most likely the issue here is that the main cluster robots.txt is more tolerant of crawlers than wikitech can afford to be. I'... [01:50:41] chasemp: virt1000 is a stand-alone server, no balancers involved. [01:50:50] oh, wikitech = virt1000 [01:54:28] a few things I know to do are, figure out where it's sucking up time and resources and crawling and disallow the path, or setting a crawl delay to throttle it, but all depend on well mannered bots [01:54:32] which this may very well be [01:56:14] andrewbogott: https://gerrit.wikimedia.org/r/165212 is a patch for labs [01:56:32] chasemp: these are not well mannered bots [01:57:34] hm, 'You do not have permission to view this object.' that shouldn't happen [01:57:41] Betacommand: I think we're talking about two different things... [01:58:09] andrewbogott: I thought it might be relevant [02:00:46] andrewbogott: let me see if I can dig something else useful up [02:01:00] At least one of the crawlers is from yahoo, 68.180.228.125 [02:02:19] andrewbogott, you know about MediaWiki:Robots.txt ? [02:02:42] Krenair: I do. Wikitech is a weird case where it uses the standard mw robots but is running on its own tiny, feeble server. [02:02:51] ah [02:03:06] It may be possible to have server-specific config, but I'm not sure. [02:03:10] umm [02:03:24] don't you just want to append more entries to wikitext's MediaWiki:Robots.txt then? [02:03:39] Looks like the storm has passed for the moment. I will try to bug Bryan or Timo about this in the morning. [02:03:50] there is like a mod_qos for cutting the knees out from under any crawler as a hard nosed crawler delay but it's not a trivial thing I want to get into on a late sunday night :) [02:03:51] Krenair: yes, but that file is /managed/ by the upstream mw config. [02:03:54] wikitech's* [02:04:20] So, the problem exists in the realm of deployment/customization, not so much in 'what to do' [02:05:15] andrewbogott: sorry man, usually it's just throttle or block them :) [02:05:27] no good answer if it's coupled with the mw config atm [07:09:35] andrewbogott: morning (or what ever it is by you) [07:09:50] 3pm -- almost morning :) [07:10:02] the daily poke about debian image and more horse power :) [07:11:14] andrewbogott: you said that if you need help with the hp's you will ask, since you didn't, i guess you don't need [07:11:39] matanya: yeah, I'm seldom stumped but it just takes hours between tests. [07:11:50] And I think you already declined to work on partman, right? :) [07:12:01] I haven't, but now i do :) [07:12:33] I have a few patches pending for https://github.com/andsens/bootstrap-vz. I haven't addressed lvm yet, though, which is supported in our latest trusty image. [07:12:48] If you're interested in contributing to that project, that's probably the next big thing that we'll want. [07:13:17] (Which, I should add: I barely know how lvm works with ubuntu now, I just know that Coren wrote some crazy hoop-jumping code to make resizeable partitions.) [07:14:34] probably a dumb question: why not use btrfs instead, and get rid of the need for lvm ? [07:15:13] Does kvm support btrfs? [07:15:55] it does, iirc [07:17:04] At the moment, bootstrap-vz only supports ext2, ext3, ext4, xfs. I'd be happy to use btrfs if that turns out to be easier to add than lvm. [07:17:43] andrewbogott: from 2012 but: http://serverfault.com/questions/390810/linux-on-linux-kvm-which-filesystem-should-i-use-for-guest-and-host [07:17:53] What I did last week was create bugs for that project like "would you like me to add feature X" and Anders was pretty responsive. [07:18:26] Don't use the linux filesystem btrfs on the host for the image files. It will result in low IO performance. The kvm guest may even freeze when high IO traffic is done on the guest. [07:19:31] Yeah, but we weren't talking about the host, were we? [07:21:22] no, just claryifing that part [07:22:00] i guess you can assign storage pools and grow them as needed [07:22:18] There's nothing in that thread that strictly rules out using btrfs for guests... [07:22:32] right [07:22:46] The current system is that we allocate a certain amount of space for an instance, but then partition only a smaller section of that. Ideally we'd be able to expand those partitions after the fact, as needed. [07:23:10] so btrfs sounds ideal in this use case [07:23:37] Oh, another (simpler) thing that's missing from bootstrap-vz is the option to make a separate partition for /var or /var/log. It has three hard-coded partition mappings; there's no reason why it wouldn't take arbitrary ones in addition. [07:23:56] btrfs partitions are resizable on the fly, I take it? [07:24:18] https://andsens.github.io/bootstrap-vz/manifest.html, section 'Volume' [07:24:36] yes, it is [07:25:32] andrewbogott: what did you want your backing to be? raw ? [07:26:59] We've been using '"disk_format="qcow2" container_format="ovf"' [07:27:06] Um… I'm not sure if that answers your question [07:27:47] backing: Specifies the volume backing. This setting is very provider specific. ebs,s3,vmdk,vdi,raw [07:27:59] it is required [07:28:24] ebs and s3 are for amazon, vmdk and vdi are virtualbox and vmware [07:28:32] so you ar left with raw [07:28:52] oh yes, raw [07:28:57] Here's the manifest I'm using: https://gerrit.wikimedia.org/r/#/c/179765/2/modules/labs_bootstrapvz/files/labs-jessie.manifest.yaml [07:28:59] (work in progress) [07:30:03] do yourself a favor and use gpt and not msdos [07:30:18] the install_sudo bit is not working yet. [07:30:34] ok -- what's the difference? (I've been using msdos because that's what all the example manifests use) [07:31:12] first of all, support for larger than 2 TB drives [07:31:48] well, /that's/ not likely to come up :) [07:32:42] https://en.wikipedia.org/wiki/GUID_Partition_Table [07:33:40] The latest: https://gerrit.wikimedia.org/r/#/c/179765/3/modules/labs_bootstrapvz/files/labs-jessie.manifest.yaml [07:35:20] andrewbogott: are you using grun <2 ? [07:35:23] *grub [07:36:00] matanya: I don't think so, but on the other hand those lines to edit the menu don't work. [07:36:05] So, I'd welcome a fix for that [07:36:09] Speeds up boots a bit [07:36:30] it won't work if you are on grub 2 or higher [07:36:39] menu.lst was replaced [07:37:20] I'm sure that's the case then -- I copied that stuff blindly from our old vmbuilder setup (which /did/ use grub 1) [07:38:02] https://help.ubuntu.com/community/Grub2 [07:38:47] Do you know how to fix the meny properly? [07:39:34] if i understand what you tried to do there, is inserting the console into grub menu ? [07:40:16] Oh, maybe? I honestly don't know what it's trying to do, I should probably just scrap it. [07:40:23] Although I guess adding a console boot option might be nice for debugging. [07:41:16] ['chroot', '{root}', 'sed', '-i', '/^kernel/s/$/ console=ttyS0/', '/boot/grub/menu.lst'] [07:41:37] this looks to me like sawpping a kernel menu with a console menu [07:43:06] and now i verified jessie ships with grub2 [07:43:19] so this clearly won't work [07:45:37] andrewbogott: the right way to do this would something like: [07:45:50] adding an entry in: /etc/default/grub [07:45:56] GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200n8' [07:45:56] GRUB_TERMINAL=serial [07:45:56] GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" [07:46:04] and run grub2-mkconfig -o /boot/grub2/grub.cfg [07:46:29] we do this in puppet [07:46:37] I changed this to augeas recently too, for >= jessie systems [07:47:01] oh, master is here [07:47:12] andrewbogott: you don't need me anymore :) [07:47:40] matanya: yes I do, you should just move on to the next obvious problem! [07:47:59] matanya: are in you interested in coding on bootstrap-vz? Trying to get btrfs or lvm working? [07:48:18] interested, yes. have time, not really :/ [07:48:27] ok [07:48:40] Well, you may have saved me time anyway, since setting up btrfs is probably easier than lvm. [07:48:50] it sure is [07:49:32] andrewbogott: what is in /root/install_sudo.sh ? [07:49:47] matanya: I believe that file is in that same patch. [07:50:07] You can't just apt-get install ldap-sudo without some hoop-jumping. Hence, a script. [07:50:15] This may also be entirely unneeded these days. [07:55:51] andrewbogott: yes, tested. #apt-get install -y sudo-ldap works [07:56:00] it removes sudo, though [07:56:06] matanya: that works if there's a root passwd [07:56:09] it errors out if not [07:56:43] but you have one, you set it up just two lines above [07:59:04] -ld? [07:59:53] or am i missing something ? [08:00:39] -ld clears the password. Or, effectively disables it. [08:00:44] and somemore hints, you are using sysvinit commands in firstboot.sh [08:01:24] yes andrewbogott, that is what i was refering to, why are you disabling the password ? [08:02:15] matanya: we always disable all passwords for labs instances. ssh only. [08:02:28] Might be we could disable it /after/ installing sudo-ldap... [08:02:46] but, anyway, I think that part of the script is working. I'll look again next run. [08:02:54] Tell me more about sysvinit? [08:03:01] where is the need for that, since you only allow keys ? [08:03:16] e.g: /etc/init.d/nslcd restart [08:03:27] and /etc/init.d/ssh stop [08:03:27] what's systemd-speak for that? [08:03:38] systemctl restart [08:03:54] systemctl restart nslcd? Or systemclt nslcd restart? or... [08:04:10] same as in line 7 [08:04:13] systemctl restart rsyslog.service [08:05:06] it might work though, if you have systemd_sysvinit_compat, but i wouldn't go in that direction [08:06:27] updated -- is that better? [08:07:23] yes [08:07:25] OK, regarding the root password… I'm clearly missing something fundamental. It looks to me like the manifest disables the root password (which is enabled previously due to the behavior of bootstrap-vz), and then installs sudo-ldap. [08:07:31] andrewbogott: salt as well [08:07:33] So, what's inconsistent about that? [08:08:23] andrewbogott: i'm suggesting you disable root password as the last command, not first [08:08:35] oh, sure. That's reasonable. [08:08:53] and remove the script [08:08:55] I think either way we need a script to install ldap, though, unless we implement '-y' as an option in the bootstrap manifest. [08:09:32] echo yes ? [08:09:42] or pipe y [08:09:49] oh, I meant... [08:10:02] well, I was thinking of moving it to the packages section. [08:10:12] even better [08:10:17] If we install it via a custom command, sure, there are many options. [08:10:35] What I mean is -- I thought /you/ wanted me to move it to the packages section. Which won't work because of the 'y' [08:11:02] so how the rest work ? [08:11:09] they don't need y ? [08:11:16] I presume not [08:11:22] i doubt it [08:11:33] I just know that installing sudo tools is always twitchy. [08:11:47] And because running a full test takes hours, I'm reluctant to prune code that is working :) [08:12:14] Once I have an image that actually builds and runs I will worry about such tidying [08:12:45] if you want to be on the safe side, you can remove sudo, and then sudo-ldap installs cleanly [08:13:02] but yeah, tiding later [08:13:26] 3Wikimedia-Labs-wikitech-interface: Many "(Cannot contact the database server: Too many connections (208.80.154.18))" errors - https://phabricator.wikimedia.org/T78492#847326 (10yuvipanda) All the Hiera hits are from the puppetmaster [08:13:52] what else andrewbogott ? [08:13:58] Hm... [08:14:24] Last time I tested (which, I'm in the process of setting up a new one, with code from a couple hours ago), I got one working VM (size 'medium') and one non-working VM (size 'small'). [08:14:40] If you stick around for 15, I'll have new logs for you to look at, we can see what's going wrong with the small one [08:14:41] if it fails again [08:15:09] sure, poke me when you need. i'll go to a short breakfest [08:15:23] andrewbogott: ^^ most of those requests you pasted seem to come from the puppetmaster [08:15:44] YuviPanda: yeah, I think it was a combination of things. [08:15:58] there was definitely a crawl happening (you can see an entry in the paste from yahoo slurp) [08:16:03] but also there may've been a puppet storm [08:16:35] there was definitely a puppet storm, but that ended a while ago [08:16:40] as in a few days ago [08:17:03] YuviPanda: if you want to look in the access log on virt1000, maybe you'll see something more obvious to blame? [08:17:10] yeah, let me look [08:19:39] thanks [08:24:28] andrewbogott: I don’t actually think we have a botstorm. Don’t actually have that many requests coming in [08:24:41] YuviPanda: you mean, now? Or during the outage? [08:24:54] oh, now. I’m not sure when the outage was. [08:25:02] outage seemed intermittent over the last few days. [08:25:24] When I made that last comment on the bug about the crawler… that was in the middle of an outage. [08:25:32] about 5 minute's worth. [08:26:30] oh, right [08:26:36] maybe puppet storms cause outages [08:26:57] andrewbogott: did it subside by itself or did you have to restart mysql? [08:27:04] by itself [08:28:29] hmm, ok [08:28:36] I”ll keep an eye out if it happens again [08:46:25] matanya: ok, bootstrap-vz-small and bootstrap-vz-med. As before, one works and one doesn't, although it's the other way 'round this time. So clearly a race of some kind. [08:46:30] You should be able to log into -small. [08:46:48] And, the first boot logs are visible on wikitech, project 'openstack'. [09:38:54] matanya: Stepping away for a while. Feel free to mess with those instances as much as you like. [09:40:39] meanwhile, I'm building yet another base image... [09:41:47] andrewbogott: also, any news on the new hosts? [09:42:02] YuviPanda: lots! But they're still broken. [11:16:13] 3Wikimedia-Labs-wikitech-interface: Many "(Cannot contact the database server: Too many connections (208.80.154.18))" errors - https://phabricator.wikimedia.org/T78492#847630 (10scfc) … and they come from the Puppet extension, so that's fine. I think the problem lies in the interface MediaWiki/MySQL. 7 hits/11... [12:25:14] PROBLEM - Puppet failure on tools-exec-06 is CRITICAL: CRITICAL: 100.00% of data above the critical threshold [0.0] [12:51:37] matanya: I'm back for a few minutes… any thoughts? [12:51:53] (If not, I'll build fresh VMs with the image that includes your suggested cleanup) [12:55:10] RECOVERY - Puppet failure on tools-exec-06 is OK: OK: Less than 1.00% above the threshold [0.0] [13:10:43] 3Tool-Labs: oAuth on Labs does not work - https://phabricator.wikimedia.org/T78247#847840 (10Aklapper) p:5Triage>3High [14:17:54] 3Tool-Labs-tools-tsreports: Clean up old toolserver.org references - https://phabricator.wikimedia.org/T67832#847970 (10valhallasw) a:5valhallasw>3None [14:17:55] 3Tool-Labs-tools-tsreports: REPORTS-63 Query errors are not shown - https://phabricator.wikimedia.org/T60829#847973 (10valhallasw) a:5valhallasw>3None [14:17:57] 3Tool-Labs-tools-tsreports: Possible wikidata merges - https://phabricator.wikimedia.org/T63881#847971 (10valhallasw) a:5valhallasw>3None [14:17:58] 3Tool-Labs-tools-tsreports: nlwiki: list of all anon talk pages with a last edit > 3 years ago - https://phabricator.wikimedia.org/T63800#847972 (10valhallasw) a:5valhallasw>3None [14:18:00] 3Tool-Labs-tools-tsreports: catswithoutinterwiki: work around wikidata caching - https://phabricator.wikimedia.org/T61960#847974 (10valhallasw) a:5valhallasw>3None [14:18:01] 3Tool-Labs-tools-tsreports: Allow filtering of the final report - https://phabricator.wikimedia.org/T61764#847976 (10valhallasw) a:5valhallasw>3None [14:18:03] 3Tool-Labs-tools-tsreports: REPORTS-2 should be possible to translate field titles - https://phabricator.wikimedia.org/T60845#847978 (10valhallasw) a:5valhallasw>3None [14:18:04] 3Tool-Labs-tools-tsreports: REPORTS-9 Document machine-readable report output - https://phabricator.wikimedia.org/T60842#847975 (10valhallasw) a:5valhallasw>3None [14:18:05] 3Tool-Labs-tools-tsreports: REPORTS-1 Italian translation for Reports - https://phabricator.wikimedia.org/T60846#847977 (10valhallasw) a:5valhallasw>3None [14:18:06] 3Tool-Labs-tools-tsreports: REPORTS-7 Add a thumbnail field - https://phabricator.wikimedia.org/T60844#847979 (10valhallasw) a:5valhallasw>3None [14:18:08] 3Tool-Labs-tools-tsreports: REPORTS-20 Use translatewiki for message translations - https://phabricator.wikimedia.org/T60840#847982 (10valhallasw) a:5valhallasw>3None [14:18:09] 3Tool-Labs-tools-tsreports: REPORTS-16 Show the replication lag on the results page - https://phabricator.wikimedia.org/T60841#847981 (10valhallasw) a:5valhallasw>3None [14:18:10] 3Tool-Labs-tools-tsreports: REPORTS-8 Add a variable type for page name - https://phabricator.wikimedia.org/T60843#847980 (10valhallasw) a:5valhallasw>3None [14:18:11] 3Tool-Labs-tools-tsreports: REPORTS-35 Add a pager for long reports - https://phabricator.wikimedia.org/T60838#847984 (10valhallasw) a:5valhallasw>3None [14:18:12] 3Tool-Labs-tools-tsreports: REPORTS-35 Add a pager for long reports - https://phabricator.wikimedia.org/T60839#847983 (10valhallasw) a:5valhallasw>3None [14:18:14] 3Tool-Labs-tools-tsreports: REPORTS-47 create a css class - https://phabricator.wikimedia.org/T60837#847985 (10valhallasw) a:5valhallasw>3None [14:18:15] 3Tool-Labs-tools-tsreports: REPORTS-48 Tables should have a different color on hover - https://phabricator.wikimedia.org/T60836#847986 (10valhallasw) a:5valhallasw>3None [14:18:16] 3Tool-Labs-tools-tsreports: REPORTS-52 Add option to output report results to a wiki page - https://phabricator.wikimedia.org/T60833#847989 (10valhallasw) a:5valhallasw>3None [14:18:17] 3Tool-Labs-tools-tsreports: REPORTS-49 IP block SQL Query on en-wiki - https://phabricator.wikimedia.org/T60835#847987 (10valhallasw) a:5valhallasw>3None [14:18:18] 3Tool-Labs-tools-tsreports: REPORTS-51 Add history function to reports - https://phabricator.wikimedia.org/T60834#847988 (10valhallasw) a:5valhallasw>3None [14:18:20] 3Tool-Labs-tools-tsreports: REPORTS-62 RSS output - https://phabricator.wikimedia.org/T60830#847992 (10valhallasw) a:5valhallasw>3None [14:18:21] 3Tool-Labs-tools-tsreports: REPORTS-60 webstats are broken - https://phabricator.wikimedia.org/T60831#847991 (10valhallasw) a:5valhallasw>3None [14:18:22] 3Tool-Labs-tools-tsreports: REPORTS-57 Create API documentation - https://phabricator.wikimedia.org/T60832#847990 (10valhallasw) a:5valhallasw>3None [14:18:23] 3Tool-Labs-tools-tsreports: REPORTS-71 1226, "User 'reports' has exceeded the 'max_user_connections' resource (current value: 15)" due to worker processes not closing their connection to the user database server - https://phabricator.wikimedia.org/T60825#847994 (10valhallasw) a:5valhallasw>3None [14:18:24] 3Tool-Labs-tools-tsreports: REPORTS-68 Implement dynamic cache duration - https://phabricator.wikimedia.org/T60826#847993 (10valhallasw) a:5valhallasw>3None [14:18:25] 3Tool-Labs-tools-tsreports: REPORTS-73 Show a list of recently finished queries (possibly also via RSS) - https://phabricator.wikimedia.org/T60823#847995 (10valhallasw) a:5valhallasw>3None [14:18:46] valhallasw`cloud: heh, not going to maintain it anymore? :) [14:19:08] YuviPanda|brb: well, at least not giving the impression I'm going to pick up those tasks soon :-p [14:19:18] heh [14:19:25] I should really make Quarry subsume these soon [14:19:41] but yeah, I'd like to merge with Quarry as much as possible, really. [14:19:51] mainly because the tsreports code is teh horror, mostly [14:19:56] pre-flask WSGI [14:19:57] *brr* [14:20:33] valhallasw`cloud: oh wow [14:20:44] valhallasw`cloud: I wonder if I added some way to make wikilinks + canonical namespace names... [14:21:15] anyway, off now, brb [14:38:12] YuviPanda|brb: I'll make a note to myself to create some bugs for 'tsreports parity' [14:41:06] 3Quarry, Tool-Labs-tools-tsreports: Quarry-TSreports feature parity - https://phabricator.wikimedia.org/T78549#848037 (10valhallasw) 3NEW [18:16:25] 3Tool-Labs: SQL server is not responding .. responsive - https://phabricator.wikimedia.org/T76930#848392 (10Aklapper) @GerardM: What are the exact steps to reproduce this problem? [18:33:00] 3Tool-Labs: SQL server is not responding .. responsive - https://phabricator.wikimedia.org/T76930#848468 (10GerardM) Hoi, I create a ticket when this happens. Typically it is something that is wrong at that time... I suffer from it and it does not go away with rebooting my system or clearing the cache. Some iss... [19:18:48] valhallasw`cloud: around? [19:20:13] YuviPanda: ta [19:20:36] valhallasw`cloud: so… i was thinking of adding ‘Quarry Pads’, which will be associated with a query, and run a template of some sort. only output will be visible [19:20:40] similar to tsreports [19:21:10] yes, that was something going around my brain, too. [19:21:38] valhallasw`cloud: so from a query, you just click ‘create pad’ and it shows up a way for you to configure how to view it. [19:22:00] valhallasw`cloud: the other option is to make pads be associated with any number of queries [19:22:55] nah, just a simple configuration mapper is better, I think. [19:23:14] yeah, but I suspect the same pad (outputconfig) can be used for multiple queries easily [19:23:36] YuviPanda: from my tsreports experience I can tell you: not as often as you'd hope [19:23:41] often it's slightly different [19:23:52] and it's dead simple to build a new one anyway [19:23:54] true, but quarry already has like, a few thousand queries... [19:23:59] true, but they drift... [19:24:07] ? [19:24:08] also I’m not sure how exactly to make the ‘run on any wiki’ possible [19:24:25] just add use dbname; in front of the query [19:24:27] valhallasw`cloud: think of this as templates on wiki. Wouldn’t it have been wonderful if they were on a central wiki from the start? [19:24:30] if it breaks whatever. [19:24:50] YuviPanda: I don't think that comparison works. [19:24:58] why not? [19:25:05] YuviPanda: you don't have 100s of queries where you want the exact same output [19:25:10] you want templates for *fields* [19:25:12] not for queries [19:25:18] hmmm [19:25:21] so a 'page' field and an 'image preview' field [19:25:30] right [19:25:37] so if this is jinja2 that should just be custom filters [19:25:41] which should be trivial [19:25:48] I suppose, yes. [19:26:19] YuviPanda: ahh, you're going for full jinja support [19:26:25] valhallasw`cloud: yes. [19:26:29] then indeed some sort of default 'table' template would be useful, yeah [19:26:34] with helpers for normal common layouts [19:26:44] yeah, table, ‘summary’ and stuff like that [19:26:49] sounds good [19:27:22] valhallasw`cloud: still not sure how exactly to avoid XSS [19:27:30] YuviPanda: XSS? [19:27:42] as in 'someone dumps html in the jinja template to steal cookies'? [19:27:43] avoid people making jinja2 output random