/srv/irclogs.ubuntu.com/2014/08/26/#juju.txt

veebersWhen I `juju ssh <unit name>` after a couple of seconds I get a dropped connection (Write failed: Broken pipe ERROR subprocess encountered error code 255). Can anyone point me in the direction to debug this?03:33
veebersthis is with an lxc local container03:34
stokachutrying to bootstrap into my private openstack cloud but juju is trying to communicate with the internal network rather than the floating ip04:00
stokachuit starts the instance which is given a 10.0.4.x address along with an associated 10.0.3.x address04:01
stokachu10.0.3.x is the floating ip04:01
stokachuah there it goes04:03
stokachuit switched to the floating ip this time04:03
stokachuso where i can view debug output for bootstrapping into openstack? http://paste.ubuntu.com/8146668/04:12
stokachuits just sitting at apt-get update04:12
=== CyberJacob|Away is now known as CyberJacob
=== JoshStrobl[ZZZ] is now known as JoshStrobl
=== melmoth_ is now known as melmoth
=== ashipika1 is now known as ashipika
gnuoymarcoceppi, I, err, seem to have missed the emails about my charmers membership expiring. Is it possible to get my membership reinstated please ?08:50
=== CyberJacob is now known as CyberJacob|Away
jcastromarcoceppi: I can do that11:53
jcastrowhat's your lp id?11:53
gnuoyjcastro, if that comment was aimed at me: Thanks ! It's 'gnuoy'12:16
jcastrognuoy: you're all set12:16
gnuoyjcastro, fantastic, thank you12:16
jcastroheya marcoceppi13:39
jcastrodo we have a plan for backporting charm-tools to trusty?13:39
jcastrogetting a bit stale over here13:39
marcoceppino, it needs a package not in archive13:40
marcoceppijcastro: I mean, I think it's possible? but it seems like it'll take a very very long time to do13:43
jcastrowhich package?13:43
marcoceppipython-charmworldlib13:43
stokachustupid question, wrt openstack private clouds, juju sync-tools does what juju metadata generate-* does?14:18
stokachuapparently not14:25
stokachuso for private openstack clouds you always have to do the juju metadata generate-* dance14:26
stokachujcastro, shouldnt the last two commands in http://askubuntu.com/questions/475348/juju-bootstrap-no-data-for-cloud be included in the https://juju.ubuntu.com/docs/config-openstack.html docs?14:28
jcastroI didn't even know that command existed. :-/14:28
jcastroso yeah, probably!14:28
stokachuunless im missing some obvious step to get juju to bootstrap in openstack14:29
stokachujcastro, heres more info on the subject http://blog.felipe-alfaro.com/2014/04/29/bootstraping-juju-on-top-of-an-openstack-private-cloud/14:33
stokachutalks about juju metadata generate-* at the bottom14:33
jcastrothat blog post looks more complete already than our docs.14:34
stokachuyea b/c right now the openstack portion won't get you into a bootstrapped openstack env14:35
stokachujcastro, oh someone pointed me to https://juju.ubuntu.com/docs/howto-privatecloud.html14:35
stokachuprobably should link that in the openstack-config doc14:35
jcastrogot time today to do a PR on the docs? they're markdown, very easy to edit14:36
stokachuyea ill update that14:36
stokachuthats on GH right?14:36
jcastroyeah, https://github.com/juju/docs14:40
jcastrobranch instructions in the readme14:40
stokachujcastro, ok thanks, https://github.com/juju/docs/pull/14714:49
jcastrothanks man!14:49
jcastroLoved the signed-off-by btw14:49
stokachujcastro, lol thanks :D14:50
ayr-tonHey there. If I make a change in a charm code, can I upgrade a unit in production deployed with the old version? Or, like, If I want to make some changes for add support to new relations or configs, can I update in production without lose my unit?14:59
mbruzekDo we have any documenation that talks about immutable configuration?15:41
mbruzekmarcoceppi, lazyPower, or anyone else?15:41
lazyPowermbruzek: not that i'm aware of15:41
mbruzekOne of the charms I am reviewing has immutable config and obviously didn't know about that15:42
=== kwmonroe_ is now known as kwmonroe
lazyPowermbruzek: its on the best practices document15:50
lazyPowerHas testing of changing all config options and verifying they get changed in the application (and applied, i.e. service reloaded if appropriate) been done?15:50
mbruzeklazyPower, I didn't see that15:50
mbruzekthanks lazyPower I will point them to this document.15:52
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk
=== scuttle|afk is now known as scuttlemonkey
whitjcastro, reviewing your bundle16:18
whitjcastro, deploys, passes proof, looks good16:18
whitjcastro, docs look good too16:19
whitjcastro, my only nit to pick w/ the doc is wrt to the statement kibana's query language16:20
whitjcastro, it's based on lucene.16:21
JoshStroblIs there a juju command to export a port for a particular service or charm, strictly for testing purposes.16:23
JoshStroblNevermind, found the issue I was having :D16:36
JoshStrobloh apache2, how I hate the fact you need a2enmod rather than just intelligently detecting what modules to use16:37
mbruzekJoshStrobl, yeah!16:37
JoshStroblmbruzek, if it wasn't for nginx not really having php-fpm configured out-of-the-box, I'd be more inclined to use it. Shouldn't be a problem though by mid next year, gonna switch all my PHP code to Go.16:38
JoshStrobland just use it's built in http package16:38
mbruzekJoshStrobl, Apache2 changed versions between precise and trusty, and the a2en version in trusty insists that the configuration must end in conf16:38
JoshStrobllovely16:39
mbruzekJoshStrobl, so many of our charms that use apache2 do not work on trusty because of the config file change.16:39
* mbruzek is working to fix that.16:39
JoshStroblwell it beats having to dig around in nginx configuration just to get php-fpm to work16:40
JoshStroblbut then again, I'm not really one for setting up web servers either16:41
marcoceppiJoshStrobl: I started a php-website charm that you can deploy on nginx16:41
JoshStrobl:o16:41
marcoceppiit's not done by any stretch of the imagination, but the concept is to make nginx and apache2 framework charms16:42
marcoceppihttps://jujucharms.com/~marcoceppi/trusty/php-website-1/?text=php-website#code16:42
marcoceppithis becomes a subordinate16:42
JoshStroblmarcoceppi, I get the feeling your installing of git-core will be used by something at some point?16:45
JoshStrobloh wait16:45
JoshStroblnvm16:45
JoshStroblconfig-changed uses it16:45
ayr-tonHey there. If I make a change in a charm code, can I upgrade a unit in production deployed with the old version? Or, like, If I want to make some changes for add support to new relations or configs, can I update in production without lose my unit?17:01
JoshStroblmbruzek, marcoceppi /\17:02
mbruzekHello ayr-ton.17:03
ayr-tonmbruzek, Hi o/17:03
mbruzekayr-ton, You are asking about the "juju upgrade-charm" command.17:04
mbruzekayr-ton, have you read this yet: https://juju.ubuntu.com/docs/authors-charm-upgrades.html17:04
ayr-tonmbruzek, Awesome \o/ Everytime I ask something about juju I start wondering if I will found something like juju deploy skynet soon.17:06
mbruzekshh!17:06
mbruzekDon't give away our future roadmap17:06
mbruzekayr-ton, Please let me know if you have specific questions about the upgrade-charm path.17:07
JoshStrobljuju deploy skynet...is that like "juju deploy google-infrastructure"?17:07
ayr-tonmbruzek, Okay. I will start learning this and I will be back to deploy any further question.17:08
ayr-tonahahaha17:08
JoshStroblhey mbruzek, I noticed the Joomla precise charm does a relation-set with the hostname as the public-address, meanwhile the wordpress precise charm uses the private-address. so...which one should I use?17:10
JoshStroblSince those deploying my charm need to rely on being able to hit the callback php file17:11
mbruzekJoshStrobl, charm to charm communication should use the private address (unless there is some reason that contradicts that).17:11
marcoceppiJoshStrobl: it depends, if it's for direct communictaion withing the cloud, private, if it's some ajax like stuff, public-address17:11
mbruzekJoshStrobl, charm to world communication use the public address.17:11
JoshStroblalright then I'll use public-address then.17:12
JoshStroblthought I'd ask, since I noticed the difference17:12
mbruzekJoshStrobl, things like clusters or peer communication would be an example of using the private addresses.17:12
JoshStroblmbruzek, so for instance, MySQL would be appropriate using private-address, since charms like phpMyAdmin would be privately calling the exposed private address and the charm itself exposing a public-address that allows interfacing with the UI17:14
mbruzekJoshStrobl, Yes I think so, marcoceppi is more the mysql expert.17:15
marcoceppiexactly17:15
JoshStroblYea, just trying to make sure I have a firm grasp on the private v.s. public address usage and in what situations one should be used v.s. the other.17:15
JoshStroblYea, thought so.17:16
JoshStroblCoolness.17:16
marcoceppiif communication doesn't have to go to the outside world, private-address17:16
=== scuttlemonkey is now known as scuttle|afk
gQuigshow can I see what versions of juju there are to upgrade to?17:23
marcoceppigQuigs: of a charm or the client?17:29
katcogQuigs: you can try juju upgrade-juju --dry-run17:29
=== roadmr is now known as roadmr_afk
gQuigsof a charm.. katco that will just do the latest right?18:18
marcoceppigQuigs: that will upgrade the juju client18:21
marcoceppithe only way to know if a charm upgrade exists, is to deploy the gui18:21
gQuigsmarcoceppi: interesting.. ok, thanks!18:22
jcastrolazyPower, hey, with that fix released for Wildfly18:28
jcastrodid you promulgate it yet?18:28
lazyPowerjcastro: beg pardon? the bundles whit linked were identical.18:29
lazyPowerlet me triple chekc before i discover i'm talking out my bum18:29
jcastroI'm just wondering if you promulgated it yet18:29
jcastroso I can fix the readme real quick18:29
lazyPoweroh you bet18:29
lazyPowerthe bundle was push back in march18:29
lazyPoweri didn't take any action aside from closing the bug18:29
jcastroOh!18:29
lazyPowerjcastro: https://launchpad.net/~charmers/charms/bundles/wildfly/bundle18:30
jcastrooh, I'll fix it.18:30
lazyPowersorry about the confusion.18:30
=== roadmr_afk is now known as roadmr
=== urulama is now known as urulama-afk
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
=== scuttle|afk is now known as scuttlemonkey
=== arosales_ is now known as arosales
ahasenackhi, does anyone know how i can checkout a specific charm store revision of a charm? Like, cs:trusty/swift-proxy-320:29
ahasenackcurrent one is -420:29
ahasenackcharm get only gets me trink20:29
ahasenacktrunk20:29
ahasenackmarcoceppi: hi, do you know?20:31
marcoceppiahasenack: yeah, charm get only does trunk20:31
marcoceppido you need source control tied to it?20:31
ahasenackmarcoceppi: I need to map a cs revision to a bzr revision20:31
ahasenackknowing it's not necessarily 1-120:31
marcoceppihah, good luck with that20:31
ahasenackbut cs:trusty/swift-proxy-3 certainly corresponds to a bzr revision20:32
marcoceppiwhat I can do is get you a way to download the files for rev 320:32
marcoceppiyou'd have to math out what bzr version that corrosponds to20:32
ahasenackmarcoceppi: that helps20:32
ahasenackmarcoceppi: there was a page somewhere showing recent changes to charms20:32
ahasenackmarcoceppi: that does this mapping I'm talking about, and shows it as long as what I need is recent20:32
ahasenackmarcoceppi: but I lost the url :(20:33
marcoceppiahasenack: oh right, the charmworld does this20:34
marcoceppiahasenack: here you go: https://manage.jujucharms.com/api/3/charm/trusty/swift-proxy-320:34
ahasenackahhh20:34
ahasenackbookmark fail20:34
ahasenackwill do it more carefully this time20:34
ahasenackmarcoceppi: thanks!20:34
JoshStroblSomeone mind giving me some pointers as to why I might be having issues? I set up the Vagrant Juju box and deploy my charm (https://code.launchpad.net/~truthfromlies/charms/trusty/metis/trunk) locally (I had it sitting in charms/trusty/metis) using juju deploy local:trusty/metis. It deploys successfully (http://paste.ubuntu.com/8152792/ and http://paste.ubuntu.com/8152787/), however even after apache2 is properly configured (wi20:35
JoshStroblth a site-enabled for the directory), including the test site, I still can't get it from 10.0.3.51:80/Metis/heartbeat.html. I destroyed the machine, service, tried again with a different I.P. and it obviously didn't help. Think it might be an issue with Vagrant interfacing with my local machine, apache2, something else?20:35
ahasenackmarcoceppi: https://manage.jujucharms.com/recently-changed20:35
ahasenackbut swift-proxy is gone already20:35
ahasenackbut no matter20:35
marcoceppilazyPower: you probably have the most vagrant experience of us all ^20:36
* lazyPower reads scrollback20:36
lazyPowerJoshStrobl: one sec, reading your pastes20:36
JoshStrobllazyPower, alright20:37
lazyPowerJoshStrobl: are you trying to reach your service from inside the vagrant box, or from your HOST thats running the vagrantbox?20:37
JoshStrobllazyPower, host20:37
lazyPowerdid you use sshuttle to forward your traffic inside the vagrantbox?20:37
JoshStrobloh god...20:37
JoshStroblno20:37
lazyPowerby default, we can't forward all requests in there. It would create a black hole for traffic20:38
JoshStroblfor hours...20:38
lazyPowerso using sshuttle as a VPN - you can achieve this20:38
JoshStroblI didn't even think about sshuttle20:38
lazyPowera quick and dirty test would be to curl the url in the CLI of your vagrantbox20:38
JoshStroblAnd this, sir, is why I'm glad you guys are around.20:38
JoshStrobllazyPower, yea I think I'll try that20:38
lazyPowerthere are details on the vagrant documentation page of the juju docs about getting moving with sshuttle.20:38
JoshStroblyea I know, I just didn't even think about that20:39
JoshStroblthanks lazyPower, I'll set up sshuttle and try :)20:39
JoshStroblI feel like an idiot :D20:40
lazyPowerhappens to the best of us :)20:42
lazyPowerthe local provider experience is just a little *too* easy at times.20:42
JoshStrobllazyPower, well, I'm able to hit apache now. So that is a fantastic start!20:44
JoshStroblit works!20:51
JoshStroblNote to self: mbruzek, lazyPower and marcoceppi now are owed beers.20:51
* lazyPower doffs hat20:52
=== mup_ is now known as mup
=== mup_ is now known as mup
=== TheRealMue is now known as TheMue
tiger7117HI23:05
tiger7117i installed JuJu-GUI and had access it through Browser (URL),  how can i remove that display message (The password is the admin-secret from the Juju environment found in … ) ?23:06
tiger7117any one ?23:09
sarnoldgood evening tiger7117, which message do you mean?23:10
tiger7117The password is the admin-secret from the Juju environment. This can be found by looking in …. path … jenv file searching for the password field. Note that using juju-quickstart (https://launchpad.net/juju-quickstart) can automate logging in, as well as other parts of23:11
sarnoldtiger7117: interesting.. I found the string here http://manage.jujucharms.com/~pmcgarry/quantal/juju-gui/config23:15
sarnoldtiger7117: .. but the default isn't included here: http://manage.jujucharms.com/charms/trusty/juju-gui/config23:16
sarnoldtiger7117: still, try setting the login-help property on the juju-gui charm23:16
tiger7117login-help: i had put some thing in it.. but still its showing that message23:17
sarnoldI wouldn't be surprised if you needed to set it before deploying .. or perhaps restart the webserver that runs it23:17
tiger7117webserver, which ?23:18
tiger7117i just installed juju and then now install its gui.23:19
sarnoldtiger7117: aha, from https://bazaar.launchpad.net/~juju-gui-charmers/charms/trusty/juju-gui/trunk/view/head:/HACKING.md23:22
sarnoldtiger7117: "service guiserver restart23:22
sarnold"23:22
tiger7117unrecognized service23:23
tiger7117i think first have to install charm-tools ?23:23
sarnoldtiger7117: you've got to run that command in the container or virtual machine that runs the guiserver; it might take a 'juju ssh' to whatever unit is running the gui... check juju status output to find out which23:24
tiger7117hmm.. yes, i tried to install GUI on another machine.23:25
tiger7117there are three Servers, one itself for JuJu-Core, Second for making enviroment/bootstrap and third for JuJu-GUI23:26
sarnoldokay, try that service guiserver restart in the juju-gui unit23:28
tiger7117aah, now its working :) yes had to re-start service at 3rd Server23:29
sarnoldsweet23:30
tiger7117well, i am new to JuJu, its my 2nd day :)23:30
sarnoldthanks tiger7117, this was fun for me to track down23:30
tiger7117i have tiny confusion.23:30
tiger7117Most Welcome !!23:30
tiger7117hmm.. as i have 3 servers, 1 for core Ok, 3rd for GUI.. can i use this 3rd for MySQL + Wordpress and then second for other service ?23:31
tiger7117one more thing that can i install services from this GUI to another machine (e.g 2nd) ?23:34
sarnoldtiger7117: the command line interface at least lets you specify --to  in order to co-locate services in a single unit..23:35
sarnoldtiger7117: .. and I think that same syntax can let you specify an lxc container on a specific hardware machine..23:35
tiger7117i have 3 physical servers.. so how lxc contrainer for it ?23:36
sarnoldtiger7117: some details here https://juju.ubuntu.com/docs/charms-deploying.html23:38
tiger7117i think we can't deploy/expose services to different machines from GUI ?23:38
tiger7117hmm.. i see23:39
tiger7117yes, we can do but from command line23:39
sarnoldyeah, I don't know if the gui can do that yet23:43
lazyPowernot yet23:45
lazyPowerthats going to be part of the machine view work that has been going on in the GUI or a bit now. i hear its getting there but not quite ready for release.23:45
sarnoldnice23:46
tiger7117hm..23:46
tiger7117LXC, why JuJu run on LXC ?23:46
lazyPowerLXC is a good containerization framework23:47
lazyPowerbut i cant speak as to why it was the choice when that was made many moons ago.23:47
tiger7117it create too many issues, if we want to run JuJu - Local Enviroment on Internet, means JuJu-GUI on LXC (10.0.3.233) and Eth0 is on 202.19.x.x .. how can then run this GUI in Live enviroment ?23:48
tiger7117Reverse proxy also don't give proper solution for it, what kind of configuration we can do for making it Live ?23:49
lazyPowerThe networking side of LXC has still yet to be resolved - as its dependent on where its being deployed, and a few other factors.23:51
lazyPowerif you're talking about the local provider - its intended use case is for development23:51
tiger7117i can understand that adding machine in JuJu pick IPs from DHCP range of LXC and Lxcbr0 control it ..?23:51
lazyPowerbut if you're tlaking about deploy --to lxc:2 (for example) thats whats being worked on.23:52
tiger7117hmm..23:52
tiger7117JuJu-GUI support latest MySQL version ?23:53
sarnoldtiger7117: you could also set up e.g. openstack or maas and deploy to either virtual machines or to hardware .. neither probably makes much sense for three machines, but it's an option to consider23:53
lazyPowersarnold: for 3 machines its almost more prudent to juse use a cloud provider, or go with a manual environment.23:53
lazyPowermy rule of thumb: if less than 10 machines - manual is a great option. if > 10 machines will be managed, you're looking at wanting to setup MAAS/OpenStack23:54
tiger7117sarnold; yes, i am just testing it, yes, virtual enviroment (VPS) will be proper way.23:54
lazyPowertiger7117: i'm not sure what you're asking, JujuGUI doesn't have a dependency on MYSQL. its a stand alone web app that works with the juju api socket server.23:54
tiger7117i heard about openstack, what is it ?23:54
lazyPowerif you mean does Juju Support the latest MySQL - i do believe its working with the 5.5 series, but i'd need to double check.23:54
sarnoldtiger7117: openstack is a pile of services that help you create something much like amazon's AWS yourself23:55
tiger7117ahan .. our own Cloud Enviroment23:55
tiger7117sarnold; what is the biggest advantage of this JuJu ?23:56
tiger7117or JuJu-GUI23:56
sarnoldtiger7117: juju feels like our best hope to take us out of the dark ages of managing servers and services -- with juju you can write down, once, all the things that are important to your organization, and then re-deploy it as needed when needed23:58
sarnoldtiger7117: it's sort of like the little scrap of paper with all the magic written on it, but checked into source control, so you can easily make changes in one place. if the charms are properly written, you can quickly scale your services as your needs change23:59
sarnoldtiger7117: and you can use pre-written charms to deploy services you're not an expert in -- so you can easily put e.g. an haproxy in front of a dozen web servers without having to actually know how to run haproxy yourself23:59

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