/srv/irclogs.ubuntu.com/2015/04/07/#juju.txt

=== kadams54-away is now known as kadams54
skayI'm having trouble adding back a relation with python-django and postgresql00:33
skayhttp://paste.ubuntu.com/10755947/00:33
thumpermarcoceppi_, lazyPower: one of you around?01:31
thumperI was doing something last night that seemed to be way too hard for what I was trying to do01:32
thumperand I'm wondering if it really is that hard, or whether I should look to push some changes01:32
thumperI have a running postgresql unit and was wanting to download the daily db dump to my local machine01:32
thumperthe db dump has permissions 0600 and owned by the postgresql user01:33
thumperand in /var/lib/postgresql/backups by default01:33
thumperin order to scp it locally, I first had to log in to the machine and copy it (wanting to leave the original untouched) to the home dir and chown (or chmod) it01:34
thumperis there an easier way, or should we defer this until we have an action?01:34
thumperwe could have an action that is 'get me the latest db dump' right?01:34
thumperjw4: ^^ re action?01:35
rick_h_thumper: yea, you could do an action, though honestly I'd suggest the action is more 'put this in some public space' like an s3 bucket or the like01:50
rick_h_thumper: the other way to go would be a subordinate to do something like inotify and auto copy the db to a known location for you so you can pull it down and auto do it every time a backup is made01:52
rick_h_thumper: and then you could do stuff like longer term config in the service like s3 credentials/account and such as well which would be interesting since actions don't have persistent 'remember me' settings really01:53
thumperrick_h_: so the current answer is "no, it is kinda icky" ?01:53
rick_h_thumper: yep01:53
rick_h_thumper: in prodstack they have a convention of where to stick backups and then you ping them and they add it to a script that walks services copying dumps for you basically01:54
rick_h_thumper: just over ssh/scp01:54
rick_h_thumper: so even in our production it's icky01:54
* thumper sighs01:54
* thumper adds a TODO note to work out how to make this less icky01:54
thumperon the plus side...01:54
rick_h_thumper: storage + actions? :)01:54
thumperI managed to grab a backup (dump) of my prod database, and load it into my dev environment running in an lxc container01:55
thumperso I can test my charm upgrade with the prod data01:55
rick_h_nice01:55
rick_h_now you just need a restore action that takes the dump and auto loads it for you :P01:55
thumperhad to play around with 'pg_restore' a bit, but it was ok01:55
thumperyep, that too would be nice01:56
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== kadams54 is now known as kadams54-away
=== urulama__ is now known as urulama
stubthumper: We have been using subordinate charms to shuffle the files to their final locations, so it hasn't bitten us.  For a charm, making dump world readable so 'juju scp' works would be fine from a security POV.07:46
stubrsync subordinate, stuff-into-swift subordinate, and now the new backup system.07:46
arosalesmarcoceppi_, if you have an opportunity could you kick a test off on https://code.launchpad.net/~cbjchen/charms/trusty/ubuntu/lxc-network-config/+merge/25526209:11
schkovichwhere can i find docs on which ports need to be open to access juju state server?11:03
schkovichlets say that my state server is running on machine 011:04
schkovichif i enable ufw on that machine and allow ssh juju ssh 0 fails11:04
schkovichwhile i can still have standard ssh access eg ssh -i .ssh/mykey publiciip.of.machine.011:05
lazyPowerschkovich: i dont think those ports are documented - but thats a really good question11:26
lazyPowerlet me poke a core dev and see if i cant run that down for you11:26
lazyPowerschkovich: it appears all you need to have open is 17070 and 2211:29
luqasfreyes: hi, you there?11:41
schkovichlazyPower: thanks, let me try it :)12:12
schkovichlazyPower: tcp and udp?12:15
lazyPoweri do beleive its just TCP12:15
lazyPowerbut it wont hurt to unblock both protos12:15
schkovichlazyPower: opening 17070 for tcp only did the trick. thanks!12:31
lazyPowerCheers :)12:31
=== niemeyer is now known as niemeyer_
=== urulama_ is now known as urulama__
=== scuttle|afk is now known as scuttlemonkey
=== mattgrif_ is now known as mattgriffin
=== scuttlemonkey is now known as scuttle|afk
=== natefinch is now known as natefinch-afk
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== FunnyLookinHat_ is now known as FunnyLookinHat
=== kadams54 is now known as kadams54-away
freyesluqas, pong17:31
luqasfreyes: hi, I was having a look to https://bugs.launchpad.net/juju-deployer/+bug/138333617:32
mupBug #1383336: TypeError "takes exactly 2 arguments (4 given)" raised while deploying <cts> <juju-deployer:Fix Released by freyes> <https://launchpad.net/bugs/1383336>17:32
luqasand I changed the status by mistake17:32
freyesluqas, oh, got it, I'll change it back to 'fix committed'17:36
luqascool freyes, thanks a lot and sorry for the trouble17:36
luqasbtw, do you know in which version of juju-deployer has the fix been committed?17:37
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== natefinch-afk is now known as natefinch
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
jrwrena freshly bootstrapped environment, and I get: juju.rpc server.go:328 error closing code EOF  when I deploy: http://paste.ubuntu.com/10766678/  any recommendations?21:25
jrwrenbah nevermind trying again works. I'll bet it was typical azure.21:27
rick_h_jrwren: yea, bac got that yesterday21:29
rick_h_or maybe it was friday when a deploy failed for hime from the charmstore21:29
bacyeah, that went away.  never figured it out.21:30

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