/srv/irclogs.ubuntu.com/2014/06/06/#juju.txt

=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== plars-away is now known as plars
=== revagomes_ is now known as revagoems
=== CyberJacob|Away is now known as CyberJacob
noodles775jcastro: Hi! Could you schedule my "Simpler re-usable charms with ansible" session when you get a chance? Weds 14UTC would suite me best (looks like DevOps1 is free then): http://summit.ubuntu.com/uos-1406/michael.nelson/meetings07:32
=== CyberJacob is now known as CyberJacob|Away
=== isviridov|away is now known as isviridov
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
thumperhi stub, got a few minutes?09:50
stubthumper: sure09:54
* thumper is trying to get the storage subordinate working09:58
thumperstub: any idea what values I should put in the block-storage-broker config for endpoint?09:59
thumperstub: using the default ec209:59
thumperus-east-1 according to the config09:59
thumpers3.amazonaws.com?10:00
stubthumper: I don't know EC2 sorry.10:00
thumperhmm... ok10:00
thumperstub: any idea what chad's irc nick is?10:00
thumperstub: the default precise postgresql charm now supports the storage subordinate?10:01
* thumper tries the deployer config he set up10:01
stubcsmith isn't around, but our we-bops or landscape could help10:03
stubthumper: yes, the default precise postgresql charm supports the storage subordinate (and only the storage subordinate)10:03
stubtrusty... not sure if that is live yet (in which case, I should push) or still being setup10:03
thumperkk10:04
thumperyeah, gone for precise10:04
thumperlikely to shoehorn everything onto machine 0 :-)10:04
thumperhmm... endpoint is wrong10:15
* thumper sighs10:21
thumperbugger10:22
=== isviridov is now known as isviridov|away
natefinchmarcoceppi_: are you up this early?10:35
marcoceppi_natefinch: I am!10:36
natefinchmarcoceppi_: cool10:36
marcoceppi_(un)fortunately?10:36
marcoceppi_what's up?10:36
natefinchhah10:36
natefinchI'm writing a charm!  WHich means I'll have a lot of questions :)10:36
natefinchthe charmtool outputs a README.ex .... if I make that README.md will it still work?10:37
marcoceppi_Fantastic!10:37
marcoceppi_natefinch: well, it "will" work but you'll get a bunch of proof errors about it being boilerplate10:37
marcoceppi_also, for the sake of the rest of this conversation, what verions charm tools are you running? charm version should tell you10:37
natefinchI just mean, if I change the extension it'll still show up.  I'll modify the contents10:38
marcoceppi_natefinch: oh, yeah, that's all you need to do10:38
marcoceppi_in fact, proof will complain if you have a .ex instead of a .md in your charm10:38
natefinchok10:38
natefinchcharm versoin says it's not a subcommand10:38
natefinchversion that is10:38
marcoceppi_natefinch: you're not using the ppa version10:38
marcoceppi_safe yourself a lot of time10:38
marcoceppi_add ppa:juju/stable10:39
marcoceppi_install charm-tools from there10:39
marcoceppi_its' the differences between 1.0.0 and 1.2.10 are huge10:40
marcoceppi_including the readme.ex going from RST to MD10:40
marcoceppi_so hopefully you haven't written too much code10:40
natefinchmarcoceppi_: barely any :)10:41
marcoceppi_whew, I'd go so far as to saying once updated, just run charm create again10:41
marcoceppi_you'll get like an icon template a better readme template, better metadata templates10:41
marcoceppi_better boilerplates10:41
marcoceppi_and better proof command10:41
marcoceppi_basically, better everything10:41
natefinchawesome,10:41
natefinchI'll do that once apt-get update finishes10:42
marcoceppi_\o/10:42
natefinchI wish adding a ppa always ran update-get update, at least to get the stuff from the ppa, sheesh10:42
natefinchbtw, is there a way to have different charms for different architectures?  I want to make the charm in Go, but you have to have a different executable for each architecture10:43
marcoceppi_yeah, like to a partial apt-get update for that source to get the delta10:43
marcoceppi_that's, no - not at the moment10:44
marcoceppi_You could just compile the hooks during the install hook10:44
natefinchyeah10:44
marcoceppi_to make the runtime for the hooks at deploy time10:44
marcoceppi_but that seems, heavy10:44
marcoceppi_otherwise you'd have to package /hooks/$ARCH/<file> and just build a light weight dispatcher for each in /hooks/10:44
natefinchyeah, that's what I was thinking.  Also kinda heavy, since you'd need an executable per architecture10:45
marcoceppi_but the execs wouldn't be very big10:45
marcoceppi_it's a trade off, "JIT"-ish compilation, or possible missing archs10:46
natefinchgo execs are bigger than normal, like 4 megs generally10:46
marcoceppi_could combine the two ideas10:46
natefinchhow bad is it to have an architecture-specific charm?10:46
marcoceppi_pretty bad considering it doesn't exist yet10:46
natefinchso.... here's the thing.  I'm writing a charm for discourse10:46
natefinchdiscourse says it requires 64 bit ubuntu10:46
natefinchmarcoceppi_: https://github.com/discourse/discourse_docker10:46
marcoceppi_well, it's a support requirement. I definitely have run discourse on i38610:47
natefinch*nod* I know, just sayin'10:47
marcoceppi_could do both, have hooks/$arch where arch is [amd64, i386] then have the install hook attempt to compile the src hooks if the arch isn't pre-loaded10:47
natefinchmarcoceppi_: that's not a bad idea10:48
marcoceppi_so, you could have arch dependant but that's going to be sad news for people running power, arm, i386, etc10:48
natefinchyep10:48
marcoceppi_and we try to avoid as many sad pandas as possible10:48
marcoceppi_can you compile go for, say i386 on an amd64 machine?10:49
natefinchyes... cross compile works 100% awesome10:49
natefinchexcept for power which requires gccgo10:50
marcoceppi_interesting. So, you /could/ and I mean it'd be beat up pretty badly in review, have it just for amd64 and provide instructions or a simple make file for people to pull the charm, build the hooks in their arch of choice, then deploy local10:50
natefinchnot my fault juju keeps supporting all these wacky-ass platforms :)10:50
marcoceppi_hah, well we strongly frown on provider specific charms, I think only one has made it past review10:51
marcoceppi_so I can only imagine (well I can imagine, actually) we'd really beat up a charm that only supported an architecture10:51
natefinchheh10:52
marcoceppi_but, I wouldn't let that slow you down10:52
natefinchyeah, but it would work on every provider!  And you're not supposed to care about the OS10:52
natefinchjust sayin' :)10:52
* marcoceppi_ places head on his hands, and looks dreamily in to the distance10:53
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
natefinchwhat is charm home?10:56
marcoceppi_in relation to?10:56
natefinchcharm create10:57
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
natefinchalso, are there no help docs?  charm help create doesn't seem to do anything10:57
marcoceppi_ah, that's just the directory you want the charm to be created in, for example `charm create foo /tmp/baz` will give you /tmp/baz/foo10:57
marcoceppi_charm create -h10:57
natefinchahh10:58
* marcoceppi_ needs to make a help helper10:58
natefinchI saw the -h under charm create usage, but it didn't say what -h was for, so I didn't realize it was for help :)10:58
* natefinch has chicken and egg problems10:59
natefinchgah... I want a way to spit out the charm in *this* directory, not a subdirectory :/11:01
natefinchapologies for the complain-a-thon :)11:01
marcoceppi_omit the charmhome11:01
marcoceppi_oh11:01
marcoceppi_you mean like, mkdir -p /charm/trusty/my-charm; cd $_; charm create .11:02
* marcoceppi_ narrows eyes at the complain-a-thon11:03
=== vladk is now known as vladk|offline
natefinchexacrtly... I expected charm create . to create it *here* not in a subdirectory.  If I wanted a subdirectory, I'd do charm create ./foo11:04
* natefinch does charm create ../11:05
natefinch...which doesn't work because the directory already exists11:05
marcoceppi_bugs are "welcome"11:06
natefinchmarcoceppi_: point me the way :)11:06
marcoceppi_though, I'm going to say this is more the operator cutting himself with paper11:06
marcoceppi_natefinch: http://launchpad.net/charm-tools :D11:06
natefinchI dunno... there's ought to be SOME way to dump a charm in the current directory11:07
marcoceppi_I can add a --natefinch-really-wanted-this flag :P11:09
natefinchit's like git clone ... git clone juju  creates a juju directory here, if you instead do git clone juju ., it dumps the repo in the current directory, and if you do git clone juju ./foo, it creates the foo subdirectory and dumps the files in there.11:10
* marcoceppi_ nods11:11
marcoceppi_we can make charm create smarter11:11
natefinchmarcoceppi_: btw, I love the charm tools logo.  That's clever.11:17
marcoceppi_natefinch: hah, thanks!11:17
natefinchbtw, what does this mean: Failed to find discourse in apt cache, creating an empty charm instead.11:18
marcoceppi_natefinch: it attempts to look the charm name up in apt, if it finds it charm create will pre-fill metadata.yaml with some details11:19
marcoceppi_it's something that was moved over from the original charm-tools. i'll probably drop it eventually because it just flat out doesn't work on mac or windows machines11:19
marcoceppi_and it's not a huge value add11:19
natefinchyeah.... I could see it being something that happens with a flag, like --apt or something, if you know that's what you want it to do, but I could see names that happen to match things in apt that would not be the correct behavior11:20
=== isviridov|away is now known as isviridov
natefinchthe instructions to install docker involve piping the output of wget https://get.docker.io to sh... seems legit12:11
marcoceppi_natefinch: yeah, I hate those. Same with RVM12:17
marcoceppi_there's not much you can really do. Security is a thing fo the pass when you got a `wget | sudo sh -` one liner12:18
marcoceppi_s/pass/past/12:18
natefinchyep12:18
natefinchle sigh12:18
lazyPowersecurity? thats still a thing?12:43
marcoceppi_no, nooo...12:45
* marcoceppi_ pulls the wool over lazyPower's eyes12:45
lazyPowerahhh ignorance is bliss12:46
* hazmat adds some bliss to morning coffee12:49
hazmatnatefinch, you can also grab from their deb repo..12:49
marcoceppi_that's a way friendlier idea12:51
natefinchhazmat: that sounds much nicer13:19
hazmatnatefinch yeah.. its wget | gpg --verify --sign | sudo sh - one liner ;-)13:30
lazyPowerhaha13:33
lazyPower#trolledhard13:33
=== vladk|offline is now known as vladk
mhshams_hi, got some basic questions about juju, i hope here is the right place to ask.14:17
mhshams_Does juju provides an API, (REST for example), so that one can use it from another application ?14:17
marcoceppi_mhshams_: yes, it's a websocket14:19
mhshams_@marcoceppi : where can I found some document or other info about it ?14:21
marcoceppi_mhshams_: https://github.com/juju/juju/blob/master/doc/api.txt14:22
marcoceppi_Not the friendliest of docs14:22
marcoceppi_mhshams_: if you're using Python, there's a jujuclient python package which does all that ofr you14:22
mhshams_@marcoceppi thanks for the hints.14:38
=== hatch__ is now known as hatch
=== isviridov is now known as isviridov|meetin
=== hatch__ is now known as hatch
jamespagesomeone was asking about the ceph charms and using different networks for client access vs cluster resyncs14:57
jamespageI have some branches ready for review that implement this if anyone wants to test14:58
lazyPowerdesignated: ^14:58
marcoceppi_jamespage: ah, awesome, yeah I told himto ask on the list14:58
marcoceppi_oh good he's around!14:58
=== isviridov|meetin is now known as isviridov
nuclearbobcan anybody here help me with something in the juju-tools branch?15:20
=== vladk|offline is now known as vladk
marcoceppi_nuclearbob: juju-tools?15:31
=== vladk is now known as vladk|offline
=== isviridov is now known as isviridov|away
nuclearbobmarcoceppi_, sorry, got distracted.  Can I use canonistack-sshuttle from a canonistack instance?  That seems to be causing me problems15:54
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
rbasakjamespage: looks like there are about ~21 bugs for Trusty SRU 1.18.1 -> 1.18.4.16:24
rbasakjamespage: do we want to individually do SRU paperwork for each of those then?16:24
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
designatedjamespage, where can i find those charms you wrote?16:38
jamespagedesignated, one sec16:41
jamespagedesignated, top three branches here - https://code.launchpad.net/~james-page16:41
jamespagedesignated, I have further work todo to enable all things that relate to ceph to use the public network addresses16:42
jamespagebut that should give you a feel on what's possible16:42
jamespagerbasak, I'd really hope we don't need todo that16:43
designatedjamespage, thank you17:01
marcoceppi_jose: I need ubuntu on air stuff setup17:34
=== roadmr is now known as roadmr_afk
josemarcoceppi_: I'm here now, what's up?18:32
lazyPowerjose: troubleshooting I on charm school schedule today18:34
lazyPowercan we get UoA setup for it?18:34
joselazyPower: yeah, I know18:34
joseerm, you want me to host the hangout?18:34
josesure, I can do that18:34
lazyPoweri know nothing of this UoA sorcery18:34
lazyPoweryou are the holder of the magic beans on that project sir18:34
* mbruzek wants to learn18:34
joselemme grab a quick snack and I'll be around18:35
mbruzekI want to learn how to do the UoA18:35
joseyou gotta have some secret codes for that ;)18:35
lazyPowerjose: we g2g?18:50
joselazyPower: I was having lunch, almost ready18:50
mbruzekUbuntu on Air18:50
mbruzekWith Jose !18:51
mbruzekwe need a url18:52
marcoceppi_mbruzek: looks like lazyPower is doing this one solo ;)18:57
lazyPowermarcoceppi_: you got an invite18:57
marcoceppi_lazyPower: can you pm me the URL, it's not ringing18:57
axisysis there a view only url?18:58
lazyPoweraxisys: ubuntuonair.com18:58
axisyshttp://ubuntuonair.com/ is showing the one from yesterday18:58
axisysI guess it will refresh when ready?18:59
lazyPowerYou will need to refresh the page, but it will update with teh current session when its active.18:59
axisysI see it now.. thanks18:59
mbruzekmarcoceppi_, are you OK?19:01
=== roadmr_afk is now known as roadmr
lazyPowerstream is live19:03
axisysyep19:03
lazyPowerFeel free to ask questions!19:03
arosalesstream looks good19:03
axisysI had to run this to make juju lxc work19:16
axisyshttps://gist.githubusercontent.com/allomov/11373534/raw/bd430c2c92116340f2fa5d124b769c555946609d/solution.sh19:16
axisyson Apr 2819:16
lazyPower axisys interesting. what was the use case that installing juju-local didn't resolve?19:16
axisysright19:17
axisysI am going to try again after this hangout19:17
axisyswith may be newer juju19:17
axisysreferring to this thread19:18
axisyshttps://lists.ubuntu.com/archives/juju/2014-April/003749.html19:18
axisysso what does bootstrap do? do you need to run bootstrap before doing any juju <environment> ?19:22
mbruzekhttps://juju.ubuntu.com/docs/config-LXC.html19:23
axisyswould be nice if you can start a hadoop local?19:25
axisysI was never been successful19:25
axisyshere is my thread from apr19:27
axisyshttps://lists.ubuntu.com/archives/juju/2014-April/003737.html19:27
axisysI have 8G ram19:27
axisysand 1TB disk19:27
axisysrunning trusty19:27
lazyPowerasanjar: axisys was asking about hadoop on local19:28
asanjaraxisys: how may I help19:28
joseaxisys: that's a fixed bug19:28
axisysok, I will try again.. thanks for your help19:30
axisysgood to know.. I use vagrant a lot19:31
lazyPowerDo any of our viewers have any burning issues they've run into that they would like to see how a ~charmer would debug?19:43
axisysthanks a lot!19:52
lazyPowerThanks everyone for attending. Great success of a charm school today.20:02
mbruzekjose you still there?20:04
=== roadmr is now known as roadmr_afk
=== hmatlock is now known as heath
=== roadmr_afk is now known as roadmr
=== vladk|offline is now known as vladk
dpb1Hi -- I'm trying to give a user permission to bootstrap and destroy a local env through sudo.  what command do I need to allow?21:05
=== CyberJacob|Away is now known as CyberJacob
roadmrdpb1: hm, my tests show that for the initial bootstrap, juju basically does "sudo /bin/bash -s"; so maybe you'll have to allow bash invocation like this21:17
roadmrdpb1: given that, the user will essentially be able to do anything as root, so you may as well give him access to everything I think :/21:17
dpb1roadmr: :(21:18
roadmrdpb1: I may be wrong, though, my investigation was a bit primitive21:18
dpb1roadmr: ok, thanks.  I will probably go another route then. :021:18
roadmrdpb1: (I just did a juju bootstrap and looked in /var/log/auth.log to see which commands get run by sudo)21:18
dpb1roadmr: thankfully the jenv files are portable (with some catches), so that works21:18
roadmrdpb1: cool :) sorry I couldn't provide a nicer answer21:19
dpb1roadmr: np, appreciate the help21:19
=== kentb is now known as kentb-out
themonkwhere should i put lock file so that between restarts of lxc it will persist22:15
=== CyberJacob is now known as CyberJacob|Away
themonklazyPower: hi22:57
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away

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