/srv/irclogs.ubuntu.com/2013/12/06/#maas.txt

=== CyberJacob is now known as CyberJacob|Away
=== freeflying_away is now known as freeflying
_bjorneis someone live here?02:23
_bjornei 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...02:25
=== CyberJacob|Away is now known as CyberJacob
=== EntropyWorks_ is now known as EntropyWorks
jtvbigjools, 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:46
jtvMaybe we could step outside that whole system for unknown power types.08:47
rvbaLet me have a look at the enum to refresh my memory.08:50
rvbajtv: I'm not entirely sure why you think we can get rid of that particular enum.08:52
rvbaThe DISTRO_SERIES enum we can probably get rid of.08:53
jtvJulian mentioned it as a potential work item.08:53
rvbaHum, then it's not very clear to me how we can do that.08:53
jtvNot to me either.  That's why I'm looking.  :)08:55
jtvrvba, could I beg you for a review of https://code.launchpad.net/~jtv/maas-test/check-for-dhcp-server/+merge/198001 ?08:56
rvbaSure, I'll have a look right now.08:56
jtvThanks.08:56
rvbajtv: btw, I've got a postgresql-related question for you.09:02
rvbajtv: it's about the backup/restore script allenap and I have worked on recently.09:03
rvbajtv: the backup/restore procedure for the pg db errors and I'd like your opinion about that.09:03
rvbajtv: can you ssh ubuntu@10.55.60.195 and join the byobu session there?09:04
jtvrvba: coming!09:05
jtvrvba: I'm in.09:05
rvbajtv: so I'm running backup and then restore and the pg restoration fails.09:06
jtvI wonder why plpgsql is even mentioned.09:07
=== mthaddon` is now known as mthaddon
melmothhi 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:29
jtvDon't think you can.  :/09:38
jtvUnless you can make your local syslog do it.09:38
melmothif i understand correclty, the people who asked me already have a centralised syslog server, so the maas boxes send any stuff there.09:39
melmoththat is, any stuff that should have ended in /var/log/syslog , but apparently not stuff that end up in /var/log/maas/*09:40
jtvAh, right — we don't send it to syslog yet.09:40
jtv...rsync?09:41
melmothi m not sure they would like that.09:42
melmothanyway, my main question was if there was a known way. wich is not the case, knowing that was helpfull anyway, thanks :)09:42
jtvSorry!09:42
rvbajtv: I don't see why we can't run the restore script as the postgres user.09:43
jtvBecause there's no peer authentication for that login in the hba config.09:44
jtvWe'd need some configuration to say "it's OK for <system user> to log into <database> as <DB user>."09:45
jtv(When using peer authentication, that is, but that's probably what we want here.)09:45
rvbaI 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
jtvBut I don't think it'd be desirable to twiddle that config here.09:46
jtvI'm not sure root is allowed to do that by default.09:46
rvbaBut the changes you've made seem to work already… ?09:46
rvbaWell, you've reverted them now.09:46
jtvThat was the switch from "directory" format.09:47
jtvI still don't know why that made the difference.  :(09:47
jtvYes, easy to reproduce.09:47
jtvAlso of course, the default format is pretty slow.09:47
jtvNo postgres "ident" entry for root→postgres by default.09:48
jtvThe way to get around that is to sudo to the postgres system user.09:48
jtvrvba: it's coming to the point where I think the database should simply be dropped before restoring.10:00
jtvThe dump can re-create the database, and then the maas user will be its owner.10:00
jtvAt that point the permissions errors will go away.10:00
jtvrvba: 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
rvbajtv: just checking, the dhcp stuff doesn't introduce any new dependency right?10:30
jtvNot any more.10:30
rvbajtv: cool, thanks for your help.  I'll incorporate your changes into the branch.10:30
rvbaAll right.10:30
jtvIt was going to import the code from maas, but that's what I took out today.10:30
Martin_____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:31
Martin_____I like that MAAS can handle power on and off.10:32
jtv(If you have the hardware for it, of course :)10:32
jtvDeploying Ubuntu to bare metal is exactly what MAAS does, so that sounds like a good match.10:32
jtvYou _can_ integrate with Juju to deploy actual software, but you don't have to.10:33
Martin_____jtv: I don't at the moment want to use juju as we have our stuff in puppet.10:34
jtvrvba: 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
rvbajtv: well, the db is kind of empty in the testing machine.10:34
rvbas/in/on/10:34
jtvMartin_____: 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:34
rvbajtv: I'm getting rid of the VM now.10:35
jtvrvba: "kind of" — not "completely."  :)  The dump will also re-create tables, set permissions, and so on.10:35
* jtv gets out of the VM10:35
Martin_____jvt: Whats with the linux bridge interfaces that are installed on the nodes. Is it for the LXC containers?10:37
rvbajtv: once your branch is merged, I'll give it a go in the lab.  Just for safety.10:53
jtvGood man.11:09
jtvAnd thanks for the review.11:10
gmbrvba: 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
rvbagmb: already done :)11:13
gmbSweet!11:13
rvbajtv: I found a problem with the dhcp stuff11:23
jtvThat was quick.11:24
rvbajtv: http://paste.ubuntu.com/6529295/11:24
rvbathe authbind problem.11:25
rvbaMaybe we should simply force the user to run maas-test with sudo…11:25
rvbaSince it's used everywhere.11:25
jtvThat's how I've been running it...  Completely forgot that it wasn't standard.11:26
jtvBut yes, we do sudo all over the place anyway...11:26
jtvWhen not ourselves, then inside uvtool.11:26
rvbaYes.11:26
jtvI can have a must-be-run-as-root patch up in no time.11:27
jtvSince main() is still fresh in my memory, and I've added a first test for it.11:27
rvbahttp://paste.ubuntu.com/6529316/11:27
jtvHey, don't I recognize that from the maas-backup code?  :)11:28
rvbaheh11:28
jtvWhy the args.test?11:28
rvbaOh, that's just a shortcut in maas-backup to simulate a run.11:29
=== jtv1 is now known as jtv
jtvrvba: 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
rvbajtv: definitely.  But in maas-{backup,restore} we have no tests (yet), hence the shortcut.11:31
jtvAh OK11:36
jtvSo I _did_ know that exact code.  :)'11:36
rvba:)11:36
jtvAnd before 2014 starts, I think I'll just update the copyright on main.py from 2012 to 2013.  :)11:38
jtvSorry, test_main.py.11:38
_bjorneDo 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:10
_bjornethe node dont pick up user-data and cloud-config for me.14:12
gmbrvba, 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/19806714:39
gmbSorry it's a bit lengthy.14:39
allenapgmb: \o/ I have to travel now, but I’ll take a look later unless rvba beats me to it (hint).14:41
* gmb -> also travelling; bbiab15:14
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
roaksoaxallenap: around?15:28
roaksoaxi guess he is not15:28
_bjornehow is cloud-init funtion in clients? can i debug it on some way manual?15:35
=== freeflying is now known as freeflying_away
allenaproaksoax: Hi there, what’s up?16:11
roaksoaxallenap: 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/12745816:12
roaksoaxso that pretty much answered my question16:12
allenapCool :)16:13
=== CyberJacob is now known as CyberJacob|Away
=== freeflying_away is now known as freeflying

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