=== CyberJacob is now known as CyberJacob|Away === freeflying_away is now known as freeflying [02:23] <_bjorne> is someone live here? [02:25] <_bjorne> i have some problem with maas clients.. only one client run dist-upgrade and install lxc and mongodb, the other one is not do that... can somone give some information? i have try in 12.04 and 13.10 and get same problem... === CyberJacob|Away is now known as CyberJacob === EntropyWorks_ is now known as EntropyWorks [08:46] bigjools, rvba: having a look at how to remove the POWER_TYPE enum. It does seem desirable, but we do encode a lot of knowledge about power parameters for each type. [08:47] Maybe we could step outside that whole system for unknown power types. [08:50] Let me have a look at the enum to refresh my memory. [08:52] jtv: I'm not entirely sure why you think we can get rid of that particular enum. [08:53] The DISTRO_SERIES enum we can probably get rid of. [08:53] Julian mentioned it as a potential work item. [08:53] Hum, then it's not very clear to me how we can do that. [08:55] Not to me either. That's why I'm looking. :) [08:56] rvba, could I beg you for a review of https://code.launchpad.net/~jtv/maas-test/check-for-dhcp-server/+merge/198001 ? [08:56] Sure, I'll have a look right now. [08:56] Thanks. [09:02] jtv: btw, I've got a postgresql-related question for you. [09:03] jtv: it's about the backup/restore script allenap and I have worked on recently. [09:03] jtv: the backup/restore procedure for the pg db errors and I'd like your opinion about that. [09:04] jtv: can you ssh ubuntu@10.55.60.195 and join the byobu session there? [09:05] rvba: coming! [09:05] rvba: I'm in. [09:06] jtv: so I'm running backup and then restore and the pg restoration fails. [09:07] I wonder why plpgsql is even mentioned. === mthaddon` is now known as mthaddon [09:29] hi there. I have been asked if there is a way to forward maas logs in a remote syslog server. Anyone knows if this can be done ? [09:38] Don't think you can. :/ [09:38] Unless you can make your local syslog do it. [09:39] if i understand correclty, the people who asked me already have a centralised syslog server, so the maas boxes send any stuff there. [09:40] that is, any stuff that should have ended in /var/log/syslog , but apparently not stuff that end up in /var/log/maas/* [09:40] Ah, right — we don't send it to syslog yet. [09:41] ...rsync? [09:42] i m not sure they would like that. [09:42] anyway, my main question was if there was a known way. wich is not the case, knowing that was helpfull anyway, thanks :) [09:42] Sorry! [09:43] jtv: I don't see why we can't run the restore script as the postgres user. [09:44] Because there's no peer authentication for that login in the hba config. [09:45] We'd need some configuration to say "it's OK for to log into as ." [09:45] (When using peer authentication, that is, but that's probably what we want here.) [09:46] I see. The backup/restore script must be run as root (there is even a check in the code for this) so we can switch to the postgres user. [09:46] But I don't think it'd be desirable to twiddle that config here. [09:46] I'm not sure root is allowed to do that by default. [09:46] But the changes you've made seem to work already… ? [09:46] Well, you've reverted them now. [09:47] That was the switch from "directory" format. [09:47] I still don't know why that made the difference. :( [09:47] Yes, easy to reproduce. [09:47] Also of course, the default format is pretty slow. [09:48] No postgres "ident" entry for root→postgres by default. [09:48] The way to get around that is to sudo to the postgres system user. [10:00] rvba: it's coming to the point where I think the database should simply be dropped before restoring. [10:00] The dump can re-create the database, and then the maas user will be its owner. [10:00] At that point the permissions errors will go away. [10:30] rvba: changes to use the default format are now in place (but cleaner than before). It'll be slow and bloated, but also simple. [10:30] jtv: just checking, the dhcp stuff doesn't introduce any new dependency right? [10:30] Not any more. [10:30] jtv: cool, thanks for your help. I'll incorporate your changes into the branch. [10:30] All right. [10:30] It was going to import the code from maas, but that's what I took out today. [10:31] If I only need to be able to deploy Ubnutu to bare metal. Is MAAS a good solution for me or should I take a look at Razor/Cobbler or Foreman? I will hand over the clients to puppet as soon as they are installed. [10:32] I like that MAAS can handle power on and off. [10:32] (If you have the hardware for it, of course :) [10:32] Deploying Ubuntu to bare metal is exactly what MAAS does, so that sounds like a good match. [10:33] You _can_ integrate with Juju to deploy actual software, but you don't have to. [10:34] jtv: I don't at the moment want to use juju as we have our stuff in puppet. [10:34] rvba: you'll want to try that restore in a situation where the database does not exist yet as well, or at least one where it's empty. [10:34] jtv: well, the db is kind of empty in the testing machine. [10:34] s/in/on/ [10:34] Martin_____: that's fine. You ask maas to allocate you a machine (optionally with constraints), and you get an installed and running machine that you can ssh into with your registered key. [10:35] jtv: I'm getting rid of the VM now. [10:35] rvba: "kind of" — not "completely." :) The dump will also re-create tables, set permissions, and so on. [10:35] * jtv gets out of the VM [10:37] jvt: Whats with the linux bridge interfaces that are installed on the nodes. Is it for the LXC containers? [10:53] jtv: once your branch is merged, I'll give it a go in the lab. Just for safety. [11:09] Good man. [11:10] And thanks for the review. [11:13] rvba: Before your EoD will you let Jeff know that maas-test is done and prod him re: testing? It'd be lovely if we could announce this internally at least next week. [11:13] gmb: already done :) [11:13] Sweet! [11:23] jtv: I found a problem with the dhcp stuff [11:24] That was quick. [11:24] jtv: http://paste.ubuntu.com/6529295/ [11:25] the authbind problem. [11:25] Maybe we should simply force the user to run maas-test with sudo… [11:25] Since it's used everywhere. [11:26] That's how I've been running it... Completely forgot that it wasn't standard. [11:26] But yes, we do sudo all over the place anyway... [11:26] When not ourselves, then inside uvtool. [11:26] Yes. [11:27] I can have a must-be-run-as-root patch up in no time. [11:27] Since main() is still fresh in my memory, and I've added a first test for it. [11:27] http://paste.ubuntu.com/6529316/ [11:28] Hey, don't I recognize that from the maas-backup code? :) [11:28] heh [11:28] Why the args.test? [11:29] Oh, that's just a shortcut in maas-backup to simulate a run. === jtv1 is now known as jtv [11:31] rvba: power loss. Amazing how little drama that is nowadays. Anyway... ISTM patching geteuid() in tests makes more sense than a test argument, no? [11:31] jtv: definitely. But in maas-{backup,restore} we have no tests (yet), hence the shortcut. [11:36] Ah OK [11:36] So I _did_ know that exact code. :)' [11:36] :) [11:38] And before 2014 starts, I think I'll just update the copyright on main.py from 2012 to 2013. :) [11:38] Sorry, test_main.py. [14:10] <_bjorne> Do someone know how im restart cloud-init script so i can debug it? i have some problem with some nodes, only one node run dist-upgrade and installs lxxc and mongodb for me. [14:12] <_bjorne> the node dont pick up user-data and cloud-config for me. [14:39] rvba, allenap: I have a branch for reporting, finally! It's not completely tested, but the bit that isn't tested is one small chunk, and I'm going to write tests for that this afternoon. But the functionality is done: https://code.launchpad.net/~gmb/maas-test/add-reporting/+merge/198067 [14:39] Sorry it's a bit lengthy. [14:41] gmb: \o/ I have to travel now, but I’ll take a look later unless rvba beats me to it (hint). [15:14] * gmb -> also travelling; bbiab === freeflying is now known as freeflying_away === freeflying_away is now known as freeflying [15:28] allenap: around? [15:28] i guess he is not [15:35] <_bjorne> how is cloud-init funtion in clients? can i debug it on some way manual? === freeflying is now known as freeflying_away [16:11] roaksoax: Hi there, what’s up? [16:12] allenap: just wante dto ask how does the mprovisioning server detect the architecture being pxe booted, but i found this : https://code.launchpad.net/~racb/maas/arch-detect/+merge/127458 [16:12] so that pretty much answered my question [16:13] Cool :) === CyberJacob is now known as CyberJacob|Away === freeflying_away is now known as freeflying