/srv/irclogs.ubuntu.com/2015/01/29/#juju.txt

=== CyberJacob is now known as zz_CyberJacob
axwnoodles775: I couldn't say, sorry. I'm not sure who prioritises things like that... maybe check with sinzui?00:46
noodles775axw: yep, will do. Thanks.00:49
axwnoodles775: probably also a good idea to create a bug in launchpad.net/juju-core, so it's on his radar00:49
noodles775axw: ack, will do too :)00:52
thumperjlondon: how are you creating the lxc containers?00:55
* thumper wanders off for a bit, bbs00:55
jlondonthumper: Just via juju+maas. Juju is spinning up a physical host in maas and then attempting to create them inside that host.00:55
jlondonand then the containers just get stuck in the 'pending' state with no network information that I could see.00:57
thumperjlondon: hmm...01:04
thumperjlondon: using juju to create the containers? or ssh'ing in and doing it by hand?01:04
jlondonthumper: juju. I'm trying to avoid doing anything on the server manually :)01:05
thumperhmm...01:05
jlondonShould I try kvm instead?01:06
thumperthat probably wouldn't help01:08
jlondonk01:08
thumpercan you ssh into the machine and look at /var/lib/juju/containers/<containername>/lxc.conf?01:09
thumperlook for network config in there01:10
jlondonthumper: K. One second I'm spinning them back up with fresh installs.01:11
jlondonthumper: huh, okay, it appears to be setting the network to juju-br0 in the container level config file.01:15
thumperjlondon: ok, it is something else then01:16
thumperI did see a bug fix land recently that disabled the networking worker because it was screwing up lxc containers01:16
thumperjlondon: which version of juju?01:16
jlondonthumper: stable: 1.20.1401:18
jlondonseeing this in the console.log file for one of the containers (over and over):  lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected01:20
jlondonlooking at the logs further for one, it doesn't appear to be getting an IP at all.01:30
jlondondhcp is running on the network for sure though (maas provided)01:31
thumperhmm... not sure sorry01:35
jlondonthumper: No worries. I'll keep playing around with it.01:37
=== jlondon_ is now known as jlondon
=== kadams54 is now known as kadams54-away
=== zz_CyberJacob is now known as CyberJacob
=== JoseeAntonioR is now known as jose
=== anthonyf is now known as Guest44978
=== CyberJacob is now known as zz_CyberJacob
lazyPowerseal: o/10:10
seallazyPower: o/10:11
lazyPowerhow goes the exploring?10:12
sealgreat work on http://chuckbutler.github.io/flannel-docker-charm/user/getting-started.html10:12
lazyPowerThanks :)10:12
lazyPowerwe've actually vendored a bundle to make getting started quickly very easy with our charms. Let me fish up that link fo ryou10:13
sealgreat10:13
lazyPowerhttps://github.com/mbruzek/docker-bundle10:13
lazyPowerbest part is, its got a suite of amulet tests with it so if you're interested in how we're running the deployments and validating you can inspect the test(s) in the test directory10:15
lazyPoweralso, the charms + bundle are up for review in the queue so you should see them landing in the store soon'ish10:15
sealI need to look into bundles more. I haven't has much joy getting it to work on my machine10:18
sealWill be looking out for the bundles release10:19
lazyPowerseal: oh? anything i can help with on the bundles?10:33
mwakhi10:33
lazyPowero/ mwak10:33
mwakhow are you lazyPower10:33
mwak?10:33
lazyPowerGood, preparing for talks over the next few days10:34
lazyPowerhow about yourself mwak?10:34
mwakfosdem?10:34
mwakping jcastro10:34
lazyPowermwak: FLOSSCommunity Metrics, FOSDEM, and ConfigurationManagementCamp10:35
mwakgreat!10:35
seallazyPower: yes please! for example I can deploy theis bundle via gui https://demo.jujucharms.com/bundle/web-infrastructure-in-a-box-10/?text=bundles10:36
* lazyPower nods10:36
lazyPoweri'm familiar with this bundle10:36
mwakI didn't get time to fix the haddop charm for arm yet, should try to get some time to investigate :/10:37
lazyPoweryou can also fetch it and deploy from the CLI with juju quicksstart10:37
sealhowever, I get some errors where I attempt to deploy locally. If you have a moment I can clean up my environment and post the exact error10:37
lazyPowersure thing seal10:37
mwaklazyPower: you personally will be at FOSDEM?10:37
lazyPowermwak: indeed. I'm running a talk track there10:38
mwakgreat!10:38
mwaktopic?10:38
lazyPowerhttps://fosdem.org/2015/schedule/event/juju_orchestration/10:38
lazyPowercrap i forgot to get in touch with them and let them know i'd be taking marco's place.... so its still got his name  on there10:39
lazyPowerSURPRISE, its lazy :D10:39
axwlazyPower: is there a trick to getting the rails charm to work? I've tried a few revs, and they all fail to install with an error about installing the json gem11:02
lazyPoweraxw: i'm working on refactoring that to work with rbenv vs rvm (which is consistently the reason its breaking)11:03
lazyPoweri have some WIP if ou want to pick up the torch on it and help :)11:03
lazyPoweri'm nearly complete, refactoring out the rvm localized commands has been the lions share of the work11:03
axwlazyPower: I don't think I'd be of much help, I don't know ruby11:04
lazyPoweraxw: however, i am aware of the latest breakage, and unfortunatley haven't had a large swath of time to dedicate to refactoring and fixing :( really sorry to report that.11:04
axwI can test if it's usable tho11:04
axwlazyPower: okey dokey11:04
lazyPowerwell its close, but not bullet proof yet, i think there are still some cases with localized ruby versions that need addressing11:05
lazyPowermeaning, your app says "i want ruby 2.2.1"11:05
lazyPowerand i'm installing 2.0.0 as system ruby11:05
lazyPowerbut other than that, it was working well iirc11:05
lazyPowerlet me get you a link 1 sec11:05
lazyPowerhttps://github.com/chuckbutler/rails-charm/tree/rbenv_migration11:06
axwlazyPower: thanks11:06
lazyPowerymmv - i haven't tested it in ~ a month - so the ground may have shifted again under whats there11:06
lazyPowerlmk if you get success/failure with that and i'll go from there. issues welcome :)11:06
axwlazyPower: will do11:07
axwlazyPower: gtg, but it still fails. http://paste.ubuntu.com/9934923/11:17
axwlazyPower: I'm using https://github.com/pavelpachkovskij/sample-rails11:17
lazyPoweraxw: 10-4, i'll circle back as quickly as i can, it may be a little over a week - depending on time with me being booked for conferences this week/next week11:19
lazyPowerif you need it for a priority deployment i can try and escalate this11:19
axwlazyPower: it's cool. was hoping to use it to demo a new storage feature, but we can find something else11:20
axwenjoy the conference11:20
lazyPowerthanks axw, sorry about the inconvenience11:21
axwno worries11:21
=== kadams54-away is now known as kadams54
johnny_shieh_A question:  on the juju master, able to do "sudo sysctl -w fs.file-max=".  However, on container created for charm, this same command fails with the message: sysctl: permission denied on key 'fs.file-max'14:43
johnny_shieh_limitation?  workaround?14:43
=== kadams54 is now known as kadams54-away
marcoceppijohnny_shieh_: LXC containers created by/with juju have certain apparmor limitations to prevent potentally bad things from occuring14:52
johnny_shieh_sure, but if the charm (app) needs certain values set in order to work.......14:53
=== kadams54-away is now known as kadams54
lazyPowerjohnny_shieh_: chicken and egg with that scenario. AppArmor tuning would have to be deployed to the parent machine which may or may not have a representation on the canvas. What I could suggest here is the following15:06
lazyPowerdeploy the ubuntu charm to get a machine representation on the gui, then deploy a subordinate unit that has the app armor tweaks you're looking to make before you deploy the LXC workload15:07
lazyPowerthe downside to this is you have an order-dependency that isn't very apparent to outsiders looking at the bundle - so ensure you have that callout documented somewhere.15:07
johnny_shieh_yeah, hmm, extra effort...and we could always document it...but any other option?  Alter file via brute force?15:08
lazyPowerif your deployment is juju managed, it makes sense to have it represented in juju.15:14
jrwrenif only there was a way to execute actions with juju. :)15:14
lazyPowerand the only way presently to do that would be to either make a charm that does it or a subordinate that is co-located with the parent that is getting the deploy --to lxc:#15:14
lazyPowerjrwren: not sure how your charm would break out of LXC to modify the hosts apparmor profile15:15
lazyPowerjohnny_shieh_: if you dont want to write a charm to do it and just want a one-off you can juju run any sed/echo/etc. commands to make the modifications, but ymmv if the command is not well formed15:15
jrwrenlazyPower: it wouldn't. Run the action on the host.15:16
johnny_shieh_A bit confused, surely you have had other apps that required changes to default OS (container) settings that needed variables changed. i.e. number of threads, number of files, file sizes.15:17
johnny_shieh_Isn't there a standard way of changing the limitations within the container?  Maybe I'm missing the point here.15:17
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
jcastroalexisb, if someone on your team is looking for something to charm, check this out: http://gogs.io/15:45
jcastrothat would be a nice charm, and packages/docker containers are already available, looks pretty straightforward15:46
arosalesniedbalski: Hello16:24
arosalesniedbalski: you mentioned that a new jenkins charm is on the way.  Is that a complete rewrite or an MP against the existing one. Also any timelines on this?16:25
=== kadams54 is now known as kadams54-away
mbruzekniedbalski: I am going through the unmaintained process an am on rsyslog.16:33
mbruzekniedbalski: There has been no comment on the bug in over a month.  https://bugs.launchpad.net/charms/precise/+source/rsyslog/+bug/138827416:34
mupBug #1388274: The rsyslog Makefile test target has errors <audit> <auto-test> <rsyslog (Juju Charms Collection):Triaged by niedbalski> <rsyslog (Charms Precise):Triaged by niedbalski> <rsyslog (Charms Trusty):Triaged> <https://launchpad.net/bugs/1388274>16:34
mbruzekniedbalski: you are listed as the maintainer of the rsyslog charms.  If there is no comment or merge requests I may have to move rsyslog to unmaintained namespace16:35
skaycharm writing question. in some charms I see that people access config() once to set config_data and thereafter get info from config_data. when should I choose to do that versus check config each time?16:54
skayhow expensive is the call, and why wouldn't I always call it versus checking cached data?16:54
skayI'd like to change the python-django charm to inject a value in to ALLOWED_HOSTS when I add a reverseproxy relation16:58
skayhence I'm learning more about how/whether to pass the information to the website-relation-joined/changed16:58
skayconfig info is mutable so I would want to check it anytime the relation changes, right?17:00
skayhmm, maybe it's a bad idea to add support for that17:06
skaycontext: I'm relating apache2:reverseproxy to python-django:website and don't have a domain name at the moment to set for hte python-django django_allowed_hosts config, hence would need to set the public IP of the apache2 unit17:09
skaysure, I could set Debug or have allowed hosts be '*' or something17:09
roadmrskay: does "*" mean that joe random could access the django server directly, given knowledge of its IP and port?17:27
skayroadmr: yes, so you'd only want to do that in a Debugging type of situation on a deserted island17:27
roadmrskay: my thought exactly... my concern was one of scalability, it would be easier to DoS the poor gunicorn17:28
catbus1Hi, in several deployments, there are occasional hook failures, which can be resolved by retrying. Sometime if I went in to check the /var/log/juju/unit-UNITNAME.log, it's usually an error on running a command, and if I ran the command manually, it was success. For example, sudo keystone keystone-manage db_sync. Is it because when the hook script was run, perhaps mysql wasn't ready yet?17:42
coreycbhey all, for the local provider, can I deploy machines to lxc and kvm containers on the host?  I have 'container: kvm' set and I'm under the impression that any lxc containers have to be inside a deployed kvm machine.17:43
dimiterncoreycb, the container type kvm or lxc defines what containers to use as "machines" in a local environment - either kvm or lxc (not both), however, you can still try to deploy units in lxc or kvm with --to lxc:<machine-id> or --to kvm:<machine-id> (argument to deploy)17:58
dimiterncoreycb, please note though, lxc-in-lxc or kvm-in-lxc might not work out of the box17:58
coreycbdimitern, ok so just to verify, if container type is kvm then any lxc containers have to be nested in kvm?17:59
=== anthonyf is now known as Guest89771
mmcchi folks, I'm having issues accessing an environment that was bootstrapped with JUJU_HOME set. is that well tested? details here: http://paste.ubuntu.com/9941188/18:28
mmccthis is used in our openstack installer, so if it's not really supported well, we need to pull it out18:29
marcoceppimmcc: it is very well tested18:55
marcoceppimmcc: those errors are from juju version mismatches18:56
marcoceppithe environment has 1.21.1 installed18:56
marcoceppiwhich was released earlier today18:56
marcoceppiyou have 1.20.1418:56
marcoceppiupgrade to 1.21 using ppa:juju/stable and you won't have any issues18:56
mmccmarcoceppi: ok, so it sounds like what happened is that I used the 1.20.14 cli to bootstrap, and it installed 1.21.1 and wrote an environment file that the old version can't read? why would it do that?19:00
marcoceppimmcc: it sounds like the cloud installer installed and used the latest version of juju19:00
marcoceppiwhich is different than what you have installed. The client should always bootstrap with the version of juju that is used to bootstrap it19:01
marcoceppieither way, that's the issue, you can see that in the tree output of the tools directory19:01
mmccmarcoceppi: ah, ok. I do see what's going on here. thanks for your help.19:02
=== mwenning is now known as mwenning-rr5
=== blr_ is now known as blr
=== jam1 is now known as Guest8948
mbruzekHello jose are you out there?19:53
=== liam_ is now known as Guest91492
flakratHowdy, I'm deploying my first compute node using "openstack-install" and after configuring the MAAS info the script goes into "Bootstrapping Juju...". The compute node boots, goes through a bunch of configuring the compute node, the juju process seems to stop advancing with a single ssh connection open from the controller to the compute node "ssh -i /root/.cloud-install/juju ...."20:25
flakratI've gone through the process of releasing the node and running through the whole process again, same results20:26
flakratwhere whould I look to find out what's causing the hang up20:26
flakratI think I found the issue. On the compute node in /var/log/cloud-init-output.log indicates that DNS isn't working on the node, can't reach streams.canonical.com20:39
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
arosales_tvansteenburgh: does this look like an infrastructure failure to you http://reports.vapour.ws/charm-tests/charm-bundle-test-5021-results/charm/charm-testing-aws/221:02
arosales_"Resource Warning"21:03
=== arosales_ is now known as arosales
arosalestvansteenburgh: but consistantly happens across all our clouds21:03
tvansteenburgharosales: that can be ignored for now, it's a warning from a python lib. - no correlation with actual failures21:05
tvansteenburghthe actual failure in that case is that the deployment didn't stand up in time21:07
arosalesok, seems like the charm is valid and isn't candidate for removal from the store21:07
arosalestvansteenburgh: thanks for taking alook21:07
arosalesmbruzek: https://bugs.launchpad.net/charms/+source/nagios/+bug/140357421:08
mupBug #1403574: The nagios charm fails automated testing <audit> <auto-test> <nagios (Juju Charms Collection):Triaged> <https://launchpad.net/bugs/1403574>21:08
arosalessounds like we need to fix this in the test21:08
arosalestvansteenburgh: while I am bothering you do you know if this charm is an issue with the make testing disscussion http://reports.vapour.ws/charm-tests/charm-bundle-test-838-results/charm/charm-testing-hp/221:18
tvansteenburgharosales: the test is trying to use an env var that's not set. it's up to the test to ensure that it is. so, it's a problem with the test21:20
arosalestvansteenburgh: ack, and thanks for looking21:20
tvansteenburgharosales: certainly21:21
=== beisner- is now known as beisner
thumperunit-wordpress-0[5078]: 2015-01-29 22:00:47 INFO unit.wordpress/0.install logger.go:40 W: Failed to fetch http://ppa.launchpad.net/charmers/charm-helpers/ubuntu/dists/trusty/main/binary-amd64/Packages  403  Forbidden22:03
thumperlazyPower, marcoceppi: ping22:03
thumpertrying to install the wordpress trusty charm22:03
thumperand getting install hook failed22:03
thumperlog sias ppa forbidden22:03
thumpersay what?22:03
thumperlazyPower: you really there?22:04
lazyPowerthumper: marcoceppi is travelling and i managed to part when i was trying to respond22:04
thumperkk22:04
lazyPowercan you re-state the issue for me?22:04
thumperwordpress trusty charm install hook fails with apt ppa error22:04
thumperunit-wordpress-0[5078]: 2015-01-29 22:00:47 INFO unit.wordpress/0.install logger.go:40 W: Failed to fetch http://ppa.launchpad.net/charmers/charm-helpers/ubuntu/dists/trusty/main/binary-amd64/Packages  403  Forbidden22:04
thumperI just want a couple of charms to use in a demo22:05
thumperand went for the old standby mysql/wordpress22:05
thumperhappy to use something else22:05
lazyPowerthumper: how impressive do you want it to look?22:05
thumperdoesn't have to be too impressive22:05
lazyPowerand re: mysql - ty for pointing that out, def worth a bug. seems like a PPA archive went missing on us22:05
thumperjust showing charms actually working22:06
lazyPowerhttp://fosdem.juju.solutions22:06
thumperlazyPower: what I'm trying to demo is MESS22:07
thumperlazyPower: so two different environments inside one state server22:07
thumpereach serving different things22:07
lazyPowerah ok, so simple it is22:11
lazyPowertry the Elasticsearch/kibana bundle w/ a mediawiki/mysql bundle22:11
lazyPowerminimal on machines, and i've deployed both wihtin the last 48 hours with success22:12
lazyPowerhttp://imgur.com/CYPpORc22:12
lazyPoweris what i was about to set you up with22:12
thumperlazyPower: that would be way more than I need :)22:14
thumperlazyPower: forgive me for being dumb, but how do I deploy the bundles?22:14
lazyPowerhttps://jujucharms.com/mediawiki-single/722:15
thumperlazyPower: not sure that gui is going to work22:15
lazyPowerjuju quickstart should22:15
lazyPowerright?22:15
thumperum...22:15
thumperI'm not sure22:15
* lazyPower rolls the dice22:15
lazyPowerlets find out!22:15
thumperhmm... I don't have quickstart22:16
lazyPowerapt-get install juju-quickstart22:17
lazyPowerthumper: quickstart is just fetching the environment state server from the jenv, as i see it quickstart should give you some results. if quickstart doesnt, go to the next common denominator and try juju-deployer (apt-get install juju-deployer) and give that a run (juju deployer -c bundles.yaml, or pass it the store url and it *should just work*)22:21
* thumper tries22:23
thumper$ juju switch another22:23
thumper$ juju quickstart bundle:mediawiki/single22:23
thumperwell... it is doing something22:23
* lazyPower makes overly dramatic music while thumper waits to intensify the feeling of success 22:24
thumperretrieving the environment status22:24
thumperthat is where it is stuck22:24
thumperrick_h_: you around?22:24
lazyPowerthumper: is the env status coming back with different/new keys now?22:24
thumperwat?22:24
lazyPowerafaics thats just the status return. as in the json dump of whats running22:25
thumperI can do a status in another shell22:25
rick_h_thumper: yep22:25
lazyPoweror what the state server knows about - to be more accurate22:25
thumperand it return fine22:25
rick_h_thumper: packing time22:25
thumperrick_h_: got a few minutes to talk api connections and quickstart?22:25
thumperlazyPower: quickstart is just hanging22:25
rick_h_thumper: quick ones sure22:25
thumperrick_h_: kk22:26
thumperrick_h_: https://plus.google.com/hangouts/_/gtonfe6y7vs6is7p6npawkge3ea?hl=en22:26

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