/srv/irclogs.ubuntu.com/2014/03/04/#juju.txt

=== CyberJacob is now known as CyberJacob|Away
=== edamato is now known as edu-afk
=== CyberJacob|Away is now known as CyberJacob
=== timrc is now known as timrc-afk
=== CyberJacob is now known as CyberJacob|Away
themonkwhy i am getting this, error: invalid service name "local:precise/mycharm"08:51
themonkmarcoceppi, hi08:52
themonkafter bootstrap my deploy unit is in pending state for so long?12:42
themonkit makes testing very slow12:43
themonkwhy deploy a charm is very slow?12:47
themonkis there any way to make it fast?12:47
marcoceppihi themonk12:52
themonk hi12:52
themonkmarcoceppi, hi12:52
marcoceppistill getting an invalid service name?12:53
themonkmarcoceppi, why deploy a charm is very slow? is there any way to make it fast?12:53
marcoceppithemonk: which provider are you using?12:53
themonkmarcoceppi, local12:53
themonkmarcoceppi, lxc container12:54
marcoceppithemonk: local shouldn't be that slow, does it ever go from pending to started or is it always stuck in pending?12:54
themonkmarcoceppi, yes it goes started state from pending but takes to long12:55
themonkmarcoceppi, it does not stuck in pending state12:58
marcoceppithemonk: well, there are a number of reasons why it may take a while. What version of juju are you using now?12:59
themonkmarcoceppi, 1.16.6-precise-amd6413:00
marcoceppithemonk: ah, there's be a lot of improvements to juju since that stable release, unless you're pushing things in to producution today I recommend you use 1.17 series of juju where this work is taking place13:01
themonkmarcoceppi, do need to compile src to install juju 1.17?13:40
marcoceppithemonk: no, just add ppa:juju/devel13:41
themonkmarcoceppi, ok thanks :)13:41
lazyPowerok starting with the rev queue today13:48
lazyPowerhere goes something :)13:48
=== timrc-afk is now known as timrc
bloodearnestlazyPower: <cough>gunicorn</cough>14:25
bloodearnest:)14:25
lazyPowerbloodearnest: going down the list, it'll be reviewed shortly :)14:25
lazyPowerhowever, i am open to pizza as a bribe if you want me to "bump" it in priority14:26
jcastrohey marcoceppi14:29
marcoceppihey jcastro14:29
jcastroso I am in the mysql unit via debug-hooks, because mysql bombed out again14:29
jcastroif I'm in the hook scope14:29
jcastroshouldn't "install" just work?14:29
marcoceppijcastro: install should always work14:30
jcastroif I give the full path the install works14:31
marcoceppijcastro: how so?14:31
marcoceppijcastro: OH, you need to do hooks/install14:31
jcastrota14:31
marcoceppiyoure' in $CHARM_DIR not $CHARM_DIR/hooks14:31
jcastrohttps://gist.github.com/castrojo/934754914:34
jcastrohey that looks familiar!14:34
marcoceppijcastro: this is a different error than was fixed14:35
marcoceppijcastro: set dataset-size to 256M14:35
marcoceppithen re-run install hook14:35
marcoceppierr config changed14:35
jcastrohmm, no luck14:40
jcastrowith either 256M or 512M14:41
jcastroInnoDB: Initializing buffer pool, size = 12.3G14:41
jcastroseems like it'14:41
jcastros not taking the dataset-size14:42
marcoceppijcastro: it's reading based on you machine14:46
jcastroyeah, I had to manually fix it in my.cnf14:46
jcastro14/03/04 09:48:57 INFO mapred.JobClient:  map 8% reduce 0%14:49
dpb1Hi -- is it possible to pin AWS to stick to a particular AZ?14:49
jcastrobut, it's working!14:49
bloodearnestjcastro: hey - whe you do the hadoop demo, what do you show people as the end result? The gui? Or some webpage or something?14:50
jcastrohttps://bugs.launchpad.net/juju-core/+bug/118383114:51
_mup_Bug #1183831: unable to specify ec2 availability zone <constraints> <ec2-provider> <papercut> <juju-core:Triaged> <https://launchpad.net/bugs/1183831>14:51
jcastrodpb1, ^^^14:51
jcastrobloodearnest, Just a terasort CLI is fine14:51
jcastrobloodearnest, I am working on the README now to make it use juju run, I'll be done in an hour14:51
jcastrobloodearnest, you can add ganglia and stuff if you want pretty charts14:51
bloodearnestjcastro: lovely. talk is tonight, so just in time :)14:52
bloodearnestjcastro: ELI5: terasort?14:52
jcastroit's a hadoop benchmark thing14:52
jcastroit mapreduces a TB of stuff14:52
jcastrobasically, to prove it works, etc and that you're just not making up pretty boxes on a web page14:53
jcastrohttps://code.launchpad.net/~jorge/charms/bundles/hadoop-cluster/bundle14:53
jcastrois where I'll be pushing14:53
jcastrodpb1, though I am surprised we haven't fixed that14:53
dpb1jcastro: it's introducing some failures when trying to put in storage solutions.14:54
dpb1since your EBS has to be in the same AZ as your instance14:54
jcastrobloodearnest, this will be of interest also http://markmims.com/cloud/2012/06/04/juju-at-scale.html14:54
jcastrohey sinzui, how do we put that bug on core's radar?14:55
sinzuijcastro, report it, tag it with the a stakeholder tag (charmers) and then ask me to review the milestone14:56
jcastrodpb1, does that bug I linked pretty much cover your issue?14:58
dpb1jcastro: indeed.  I think there are future plans to better support AZs, but that one is kind of a no-brainer as a first-start to it.  I'll bring it up at our next meeting (Thursday)15:00
jcastrosweet, do you have a cool stakeholder tag we could put on the bug? perhaps we can both +1 it and get it more weight15:01
jcastrobloodearnest, http://imgur.com/UFhGwaB15:01
jcastroport 50070 on the master node15:01
bloodearnestjcastro: that'll do nicely thanks#15:01
dpb1jcastro: yes, I added 'landscape'  which is what we have been using, I think.15:02
bloodearnestjcastro: given I'll have no internet and be deploying to local provider, I may not use terasort, or my machine might freeze up :)15:02
jcastroI just ran it on my laptop15:03
jcastroworked fine, load went up but didn't crush the machine15:03
bloodearnestjcastro: cool! will try shortly15:03
jcastrovery demoable, i7, 16GB of RAM though15:03
sinzuijcastro, "charmers" is the tag you probably want15:03
jcastrojuju run --unit hadoop-master/0 "sudo -u hdfs /usr/lib/hadoop/terasort.sh"15:05
jcastrothere's the magic right there ^15:05
bloodearnestawesomesauce15:06
* bloodearnest tries it all out15:06
jcastrowe leave the results all over the master though15:07
jcastroso you can only run it once15:07
bloodearnestjcastro: hm, just realised I'm really not gonna be able to do this without internet :/15:11
* bloodearnest sets up EC215:12
jcastroall you need is a video of the terasort15:12
bloodearnestjcastro: tru15:12
lazyPowermarcoceppi: we are going to have a slew of incoming ssl-everywhere changes. Before I +1 this, I want your input on how you feel about the move from ssl_enabled to ssl => [on, off, only] - as I have a charm using the same convention. I didn't see another charm already approved with this at first glance - is this going to be a sticking point?15:12
cory_fuI have a question about the vagrant config: https://juju.ubuntu.com/docs/config-vagrant.html15:25
cory_fuI have an http service deployed and listening, and I can connect to it from the JujuQuickStart VM using wget http://10.0.3.132:8080/, and I have sshuttle running, but when I try to connect to that URL locally, I get "no data received" and a couple of STOP_SENDING and EOF lines show up from sshuttle15:26
cory_fuTIA for any suggestions15:27
marcoceppicory_fu: what's the sshuttle line you're running?15:29
cory_fusshuttle -e 'ssh -o UserKnownHostsFile=/dev/null vagrant@localhost:2222' 10.0.3.0/2415:29
marcoceppicory_fu: try this instead, sshuttle -r vagrant@localhost:2222 10.0.3.0/2415:30
noodles775marcoceppi: Hi! I've just added a +1 with some comments to bloodearnest's new gunicorn charm. Not sure if that counts, or whether you're happy to then merge it, but let me know if there's anything else we can do to help get it landed: https://code.launchpad.net/~bloodearnest/charms/precise/gunicorn/cleanup/+merge/20855815:30
marcoceppicory_fu: if that works, then we need to update our docs15:30
marcoceppinoodles775: we're dredging through the queue today, so it will likely have eyes on very soon, but your +1s do help!15:31
cory_fumarcoceppi: That does in fact work, and also explains the "vagrant" password line from the docs.  Thanks!15:31
marcoceppicory_fu: cool, we'll need to update the docs to use that variant of the sshuttle command15:32
noodles775marcoceppi: great, thanks.15:33
marcoceppilazyPower: there is a precidence set that the values should be on, off, only already15:37
lazyPowerack15:39
jcastromarcoceppi, I am getting a weird error with bundle proof15:41
jcastrohttps://gist.github.com/castrojo/934879015:42
jcastrobut earlier today it was working15:42
marcoceppiyou don't proof a bundles.yaml15:42
marcoceppijcastro: just run juju bundle proof from the bundle directory15:42
jcastroaha!15:42
marcoceppijcastro: as for that bug, that's something else, the error you should be getting is FATAL: not a bundle15:42
marcoceppijcastro: I'll make sure the next release of charm-tools has better output for that15:43
jcastrowant me to file it?15:43
marcoceppijcastro: plz15:43
jcastromarcoceppi, juju bundle not being tab completeable, is that a charm-tools/plugin bug?15:46
marcoceppiyes15:46
marcoceppicharm-tools15:46
marcoceppithe debian package should create an autocomplete bash profile for charm-tools, it's a feature req15:46
jcastro"The review job grabs any branch with a linked branch that has ~charmers as a subscriber"15:47
jcastroyou said you were 110% positive!15:47
marcoceppijcastro: It was that way at one point15:48
jcastroyeah, but jcsackett hooked us up, o/15:48
marcoceppihazmat: https://code.launchpad.net/~hazmat/charms/precise/rabbitmq-server/ssl-everywhere/+merge/207912 removes a config option which we've typically frowned upon in the past as it breaks backwards compat15:48
marcoceppiI mean, I get the change15:49
marcoceppibut it would be a break from the policy we've been telling people15:49
hazmatmarcoceppi, it doesn't remove it.. it deprecates it and provides a richer option15:56
hazmatand maintains compatibility with both15:56
marcoceppihazmat: ah, I missed the compat, thanks for the clarification15:56
hazmatmarcoceppi, those merge proposals are a bit old.. we've been working against a set of openstack-charmers branches.. the gist of it for rabbit is the same15:57
marcoceppihazmat: cool, so is rabbitmq ready to go for review or?15:57
hazmatbut there's a few more commits in the other branch.. for mysql there are siginficant changes in the openstacl-charmers branch15:57
hazmatmarcoceppi, i'll yank the mps on the original ones15:58
marcoceppihazmat: ack15:58
* hazmat goes hunting 2fa device15:59
jcastrolazyPower or mbruzek, either of you have time to hit up Apache Syncope in the review queue today?15:59
jcastroall the metis stuff is fix committed as well16:00
lazyPowerjcastro: slogging through the queue adding +1's16:00
lazyPowerI'm at metis right now, will be on syncope shortly16:02
marcoceppijust got ot metis16:02
lazyPowermarcoceppi: i just pulled the source want me to skip down?16:03
marcoceppino, go ahead and review + deploy/test16:04
marcoceppithat's the josh strobul guy16:04
jcastrolazyPower, case of beer if you can get Syncope reviewed today16:04
lazyPowerack16:04
lazyPoweri'll stop after syncope so I can claim that offer of suds16:05
* marcoceppi was about to review it :(16:05
lazyPowermarcoceppi: yeah, he's been a real champ in the community taking part in a lot of the discussions16:06
lazyPoweri'm excited to see such involvement around juju from him. We should send him a shirt16:06
lazyPowerjcastro: ^16:07
lazyPoweri'm confused as to why metis is in the queue twice16:09
lazyPowerany insight?16:09
jcastroprobably a bug, you get a 2 for 1!16:10
marcoceppilazyPower: idk why, just press on16:12
jcastrohey bcsaller_16:12
marcoceppibloodearnest: how do you run the tests for gunicorn? I didn't have a make target for it16:12
bcsaller_hey16:13
bloodearnestmarcoceppi: nosetests16:13
jcastrobcsaller_,  I am working on the charm review assignments, are you a reviewing charmer?16:13
bloodearnestmarcoceppi: I can add a make target16:13
bcsaller_jcastro: Normally yes, I'll have a hard time getting to it till my current project is over16:14
jcastroI'll put you last in the first rotation then, that should give you a few weeks16:14
marcoceppibloodearnest: that would be fantasic, just make unit_test seems to be the convention most people use16:14
bcsaller_jcastro: sounds good16:14
marcoceppibloodearnest: otherwise, lgtm16:15
bloodearnestmarcoceppi: pushed up r35 with make unit_test16:16
bloodearnestmarcoceppi: with a cleaner foundation, I have bunch of features to add (syslog, etc), hopefully amulet tests too16:17
marcoceppibloodearnest: sweet, I look forward to those16:17
jcastroevilnickveitch, pushed the reviewer page retitle16:23
evilnickveitchjcastro, cool16:23
Ursinhajcastro: hey :) is it possible to use juju and rackspace at the moment?16:25
jcastroUrsinha, sort of16:25
jcastrohttps://juju.ubuntu.com/docs/config-manual.html16:25
lazyPowerdaww :( doesn't look like the latest copy of his code is up in BZR16:25
lazyPowershould I help him out and pull from github and note thats what I did?16:26
bloodearnestmarcoceppi: and thanks for the merge :)16:26
Ursinhajcastro: so it works but kind of manually only?16:28
lazyPoweror not... its not up in github16:29
marcoceppilazyPower: wrt what?16:29
marcoceppiUrsinha: rackspace's openstack provider is still too far off from OpenStack upstream releases, so it doesnt' work with the openstack provider plugin in juju16:30
marcoceppiUrsinha: you have to manually spin up machines then enlist them in juju using the manual provider16:30
Ursinharight, got it marcoceppi16:30
lazyPowermarcoceppi: metis charm didn't get the repository update that wsa promised in the card - i'm reviewing old code16:30
lazyPowernone of the sha1sum's are in here, etc. I'll continue through the review but i'm hitting the exact same points you did.16:31
dalek49hi all, I'm not understanding relations. I've read and reread all the hook documentation, and 1) can't make most of it work (the tmux session seems to be broken) and 2) don't understand what I'm not doing. I'm trying to write a charm that interacts with the rabbitmq-server charm. I have an amqp-relation-changed hook in my charm, and I have rabbitmq & amqp listed in my metadata.yml; however, it keeps saying that there isn't any known relation betwee16:31
lazyPowerI reached out to him 1:1 via email. I'll give it an hour before i submit my responses and set the bug back to incomplete.16:33
marcoceppilazyPower: just ping him here JoshStrobl ^^16:34
jcastroUrsinha, yes, there's no provider for rackspace currently16:35
lazyPoweror that16:35
mgzUrsinha: the openstack provider should work for rackspace... were they to actually provide several openstack features we expect16:36
mgzwe could put some effort into working around their weirdness, but there's been no pressing need as of yet16:36
jcastrolazyPower, we sent him a shirt already, you know I got dis!16:45
lazyPowerwoot16:46
marcoceppijcastro: why didn't you have mediawiki-scalable and mediawiki-simple in the same bundle branch?16:49
jcastrowhat do you mean16:49
marcoceppiactually, rick_h_, does quickstart/gui support inheritence for bundles?16:49
rick_h_marcoceppi: yes16:50
marcoceppirick_h_: cool16:50
marcoceppijcastro: you could have done this:16:50
marcoceppijcastro: http://paste.ubuntu.com/7033898/16:51
marcoceppiin one mediawiki bundles branch16:51
jcastrowait, what.16:51
jcastrowe can do that?16:51
marcoceppibundle branches can contain multiple bundles16:51
marcoceppithey get injested one bundle at a time, but a single branch can have multiples16:51
rick_h_marcoceppi: now those can be imported into charmorld, but not dragg/dropped in the gui16:51
marcoceppijcastro: oh yeah, since the early days of deployer16:52
marcoceppirick_h_: why not?16:52
rick_h_marcoceppi: because you drag the file and it doesn't know which bundle to deploy16:52
marcoceppirick_h_: OH, you mean from the desktop16:52
rick_h_marcoceppi: there's a low priority item to build a drop UX to ask you but that's falling into the bundle pre-deployment config work16:52
rick_h_marcoceppi: right16:52
rick_h_marcoceppi: that's all I mean16:52
marcoceppiright, but the from GUI, when it gets injested, it's deployable16:52
rick_h_+116:53
marcoceppisweet16:53
marcoceppijcastro: so I may have prematurely promulgated mediawiki-scalable, but you can merge simple -> scalable16:53
marcoceppiand then both will show, the branch name at this point is abritrary16:54
marcoceppiname of the bundle is taken from the top level key(s) in the bundles.yaml file16:54
marcoceppiwhich is why everything is plural16:54
marcoceppiI'm not sure if we'd want to define a best practice of one or the other, each have their pros and cons16:54
jcastroso don't we want to keep them seperate until we have UX?16:55
marcoceppijcastro: we have the UX, unless you drag and drop from your computer16:55
jcastrothat's like a main use case.16:55
marcoceppibut from the charm browser side, you'll see mediawiki-simple and mediawiki-scalable if they're in charmworld16:55
marcoceppiis it?16:56
lazyPowermarcoceppi: is there a way to get the output of what the linter thinks is duplicate content from the Readme? *warning* I haven't looked at the code code in the linter yet16:58
marcoceppilazyPower: there's a -v flag that is planned, but not implemented yet16:59
lazyPowerack16:59
marcoceppibut it's probably something simple16:59
marcoceppiusually in the contact link list16:59
lazyPoweryeah, it matched on line6 of the boilerplate -- which is a blank line17:00
lazyPower@_@17:00
lazyPowerclever charm proof... you win this round17:00
marcoceppilazyPower: lines are only lines that are matchable17:00
marcoceppinot lines that are there, so it skips blanks lines17:01
marcoceppiand headers17:01
marcoceppiit's stupid, I know17:01
lazyPowerwell tis far better than nothing17:01
lazyPowerand i value its presence17:01
themonkmarcoceppi, is it possible to setup juju container in rackspace vm17:52
themonkmarcoceppi, if possible then how do i config my environments.yaml17:55
lazyPowerthemonk: have you seen this? http://askubuntu.com/questions/166102/how-do-i-configure-juju-for-deployment-on-rackspace-cloud18:01
themonkmarcoceppi, no thanks :)18:02
lazyPowerwe dont currently support rackspace, but there has been some WIP on that.18:02
marcoceppithemonk: you can use the manual provider18:28
themonkmarcoceppi, what is manual provider?18:29
marcoceppithemonk: it's where you can bootstrap and deploy to arbitrary machines18:29
marcoceppiso like, any server with ssh access18:30
marcoceppithe downside, you have to spin up the machines in rackspace manually18:30
themonkmarcoceppi, hmm yes i can i guess :)18:31
=== CyberJacob|Away is now known as CyberJacob
=== timrc is now known as timrc-afk
Lord_Set2Where can I find the Juju daily PPA?19:49
Lord_Set2Or what is the address of it?19:49
marcoceppiLord_Set2: we don't have a daily ppa, if you want daily you can build the source yourself. Otherwise we release stables in ppa:juju/stable and devs in ppa:juju/devel19:54
Lord_Set2Thanks20:00
Lord_Set2Any reason why I would be getting the following error?20:05
Lord_Set2ERROR bootstrap failed: cannot start bootstrap instance: gomaasapi: got error back from server: 403 FORBIDDEN (You are not allowed to start up this node.)20:05
marcoceppiLord_Set2: well, you're using maas, so this is a few things. Either you don't have any nodes available to your user, you're using the wrong API key, you don't have an SSH key in MAAS20:08
marcoceppietc20:08
Lord_Set2I have an ssh key, I have 4 nodes available... and I generated a fresh api key for juju20:09
marcoceppiLord_Set2: are they ready or commisioning?20:11
Lord_Set2Ready20:11
marcoceppihuh, well the 403 is maas's way of saying something's wrong and what you requested is not allowed20:12
Lord_Set2Alright. Are there any specific logs I can check for more information?20:12
marcoceppiLord_Set2: I don't have my maas setup atm, so I can't say for certain unfortunately, you can try running juju bootstrap with --show-log and --debug flag to see where if anything things are not connecting20:14
marcoceppiLord_Set2: I should have my MAAS setup working by tomorrow so if you don't have it by then we can dig deeper20:14
Lord_Set2Alright thank you20:14
=== timrc-afk is now known as timrc
kirklandLord_Set: Lord_Set2: howdy!  are you guys joining the hangout for our Juju/MAAS discussion?21:05
thumperjcastro: around?21:16
jcastroyo!21:16
thumperjcastro: I just did "juju add-unit ubuntu -n 10" on the local provider21:17
thumperto test timings21:17
jcastropffft. 10 is easy, do 100.21:17
thumperthis is using lxc-clone, but no special backing at this stage21:17
thumpertook 72s for all agents to be fully up21:17
jcastroOh, I see21:17
thumperI'll do 100 when I have better backing storage21:17
jcastrothat is much nicer, I've been testing the hadoop bundle and it's been about 10 minutes from nothing to fully up21:18
thumpereach image is ~900Mb on disk21:18
thumperI think a lot of that time is file i/o copying approx 9gig on disk21:18
themonkmarcoceppi, do need to bootstrap in local machine if i deploy in amazon ec221:18
thumperI want to get some timings with overlayfs and btrfs21:18
jcastrohey so also, one thing we do21:18
jcastrois each instance does like apt-get update, upgrade, then the install hooks install a bunch of stuff21:18
marcoceppithumper: no, you'll need to bootstrap ec2 to deploy in ec221:19
Lord_Set2So once a node comes up is there any reason why it would prompt for a password as just the ssh should work correct?21:19
thumpermarcoceppi: not me, themonk21:19
marcoceppithumper: sorry, themonk ^^21:19
thumperjcastro: when using clone, it disables the initial apt-get update/upgrade21:19
jcastrothumper, your thing caches everything apt pulls down though right, not just the charms?21:19
marcoceppiLord_Set2: if you're getting a password prompt something went wrong during cloudinit, you can access the node using the ubuntu password21:19
thumperso the images come up faster21:19
jcastroah, so you're cheating. :)21:19
thumpernot cheating, makeing awesome21:20
jcastrothey eventually update though? you're not disabling just delaying I assume?21:20
Lord_Set2There is no password though unless it is a password that I don't know21:20
thumperjcastro: no, they don't update21:20
thumperthe intent is to keep the template up to date21:20
marcoceppiLord_Set2: the default ubuntu password for the ubuntu image is ubuntu21:20
Lord_Set2Oh ok21:20
marcoceppiLord_Set2: but juju disables passwords via cloudinit21:20
marcoceppiso if you're getting a password, something went wrong21:21
thumperjcastro: also, heads up, I am making a core plugin 'juju-local'21:21
marcoceppithumper: what's the plugin do?21:21
thumperit will get installed with the juju-local package21:21
thumpermarcoceppi: it will have suspend/resume21:21
thumperand other methods for dealing with the template21:21
marcoceppisweet21:21
thumperthat is created for fast lxc cloning21:21
Lord_Set2So yeah... ubuntu doesn't work as a password21:21
marcoceppiLord_Set2: how did you get these to spin up? with juju?21:22
Lord_Set2Yes21:22
thumperjcastro, marcoceppi: one thing that hazmat really wanted was for the local provider to not auto-restart on reboot21:22
thumperso I'm making it a config option21:22
thumperwhich will happen to default to "false"21:23
thumperwhich is one reason why we need "resume"21:23
jcastrothat is perfect21:23
hazmatie. how jorge killled his a machine21:23
jcastrobecause sometimes I want to suspend21:23
thumperto bring back up a suspended environment21:23
marcoceppiLord_Set2: yeah, something has gone wrong then. how are you getting to this prompt? via console or trying to use juju ssh?21:23
thumperhazmat: acknowledged21:23
hazmatthumper, awesome btw21:23
Lord_Set2trying to ssh ubuntu@node.maas21:23
thumperhazmat: I've been thinking about overlayfs vs btrfs21:24
marcoceppiLord_Set2: :\ something has gone wrong then21:24
hazmatthumper, though shall not mention overlayfs ;-)21:24
hazmatits aufs or not21:24
Lord_Set2Hmm ok21:24
thumperhazmat: starting containers on my machine is super fast, because I have a fast SSD21:24
thumperhazmat: ok, aufs21:24
hazmatthumper, its not starting.. its creating21:24
hazmatthumper, and cloning is superfast with aufs or btrfs21:24
thumperhowever my image size is around 900 meg per instance21:24
hazmatthumper, and its efficient with aufs or btrfs21:24
thumperthe interesting bit is not modifying the underlying image when clones are running21:25
thumperI think in practice it will be fine21:25
thumperbut I need to encode safety checks21:25
hazmatthumper, yes.. btrfs does the right thing, at the cost of duplicate bits.. aufs .. probably not21:25
thumperright21:25
marcoceppiLord_Set2: stop the instance in maas, try again?21:25
hazmatthumper, i'd suggest not doing modifying the base, but creating new basea21:25
hazmatthumper, its possible aufs will do the right thing, but in an image or layer based world thats just not how you do it.. you always roll forward on a new commit/rel21:26
thumperhazmat: my suggestion is to just say "sorry, can't update the template with a local environment running"21:26
thumperdo you think that is too harsh?21:26
hazmatthumper, its not right either though.. i think you can create a new layer or snapshot21:26
hazmatfor the maintenance21:26
hazmatthumper, this is an issue i have with the current ubuntu-cloud template which i've been trying to address21:27
thumperwhat's that?21:27
hazmatthumper, it saves its image download/cache to the same file name21:27
hazmatregardless of the actual version / release21:27
thumperhaha21:27
thumperyeah21:27
thumpermy precise image is like almost a year out of date21:27
hazmatthumper, so i've been downloading them to the correct filename, and symlinking it to the target21:27
hazmatsmoser, says its correct so we don't break people's scripts..21:28
* thumper shrugs21:28
hazmatits broken for this use case, so working around is reasonable21:28
thumperso, who knows about aufs?21:28
* hazmat raises hand21:28
thumperand should we use it over btrfs?21:28
hazmatthumper, you need trusty or lxc stable ppa21:28
thumperhazmat: I'm only doing fast lxc for trusty and above21:28
hazmatthumper, you auto decide based on underlying fs on /var/lib/lxc21:28
thumperso not an issue21:28
hazmatthumper, btrfs is more reliable21:29
thumpersure, that is a given21:29
smoserhazmat, the name was only changing at best every 6 months, when the content was changing every 3 weeks.21:29
thumperbut if, like me, you have ext421:29
hazmatthumper, aufs is pretty good, but it has issues with charms that do silly things21:29
hazmatlike wordpress21:29
thumperwe need some snapshot tech21:29
smoserso your illusion of "up to date" was bad anyway.21:29
hazmatinstalling nfs by default21:29
hazmatsmoser, that's my point/issue exactly21:29
thumperhazmat, smoser: so can we not fix lxc to refetch images?21:30
hazmatsmoser, i'm trying to use stream data now to download with the date rel name and then symlink into place on cache21:30
smoseryeah, your'e right . the lxc template is ont being smart.21:30
thumperhazmat: do I need to specify a backing for lxc-clone if on btrfs, or will it just do the right thing?21:31
hazmatthumper, that would help21:31
smoserwe'd like to have some more intelligent like behavior elsewhere.21:31
hazmatthumper, you need to specify backing store on create if on btrfs as well21:31
thumperhazmat: so, back to aufs, is it likely to cause issues with charms?21:31
hazmatthumper, it generally works.. there are cases where it won't21:31
hazmatwordpress installing nfs without need was an example i hit of where it won't21:32
thumperthat seems sub-optimal21:32
hazmatthumper, its way better than overlayfs21:32
thumpersure... not useful though21:32
thumpergiven that wordpress is one of the first things people install if following examples21:32
thumperwe don't want to make it a shit experience21:33
hazmatthumper, fair enough.. i'd suggest we fix the charm :-)21:33
thumperwhat is the fundamental fault?21:33
jcastrodo btrfs btw, I thought we were trying to get rid of aufs eventually21:34
hazmatthumper page fault'd out of memory.. don't remember anymore.. i'm planning on just adding options to allow user to select backing store with auto detect21:34
jcastromarcoceppi, when doing debug-hooks on my mysql instance it seems I am not in the charm's path21:35
hazmatthumper, the other option is lvm thinp but its  a bit more work21:35
marcoceppijcastro: you have to be in a hook context21:35
jcastrobecause it doesn't recognize "hooks/blah", I have to give it the huge pwd of the hooks21:35
thumperok, let me test this new behaviour with a btrfs loopback device21:35
hazmatjcastro, in the actual debug hooks context you will be21:35
marcoceppiif you're in the 0 window, you're not in a hook context21:35
hazmatthumper, dealing with size management on loop devs is going to be a pain, plus lack fsync..21:35
thumperyes...21:36
thumperso... what do we do?21:36
hazmatthumper, openvz did this ploop device for this case .. http://openvz.livejournal.com/40830.html21:36
jcastrojuju debug-hooks mysql/0 start21:36
jcastrois that incorrect if I want to debug the start hook?21:36
hazmatthumper,  er.. better link. . http://openvz.org/Ploop .. doesn't help us though21:37
thumperhazmat: because lxc doesn't recognize it?21:38
jcastromarcoceppi, I don't think it's getting to the point where it's launching like a full debug-hooks environment21:39
jcastrothis is the innodb pool size thing21:39
marcoceppijcastro: you have to trigger a hook in order to be in a hook context21:39
jcastroyeah but the service never starts at all21:39
marcoceppijcastro: the 0 window in tmux is not a hook environment, it's just a standby window21:39
thumperhazmat: I could put all the btrfs loopback device management code into the juju-local plugin21:39
thumperand allow people to choose to use it21:39
marcoceppijcastro: just do a configuration change21:39
jcastrowhich is probably why no hooks exectute to begin with?21:39
marcoceppijcastro: to trigger config-changed21:39
thumperthat way it becomes explicit21:40
thumperbut juju itself doesn't have to care21:40
jcastrok, I'll investigate tomorrow, in the meantime, the hadoop bundle works now and is finished, just need to run the terasort21:40
thumperit just passes the right flags based on the fs of the container directory21:40
jcastrothumper, I did my first real juju run today21:40
jcastrojuju run --unit hadoop-master/0 "sudo -u hdfs /usr/lib/hadoop/terasort.sh"21:40
jcastroafter the hadoop bundle = success.21:41
thumpercool21:41
hazmatlazyPower, does your nagios upgrade-charm hook get called for config-change?21:42
hazmatthumper, putting it into a plugin doesn't change dev size mgmt issue21:43
thumperhazmat: I know21:44
thumperbut if we make the user have to create it manually21:44
thumperwe can inform them21:44
thumperand they are more aware of the issues21:44
thumperrather than just doing it by magic21:44
thumperand then they get confused as to what the problem is21:44
hazmatthumper, and they do what when it runs out of space?21:44
thumperhopefully we can catch that early21:44
thumpermaybe...21:45
thumperand let them know21:45
thumperwouldn't be too hard21:45
hazmatlet them know they should stop using it? we need research into remediation options21:45
thumperwe can create another file/device and add to the btrfs volume, yes?21:45
thumperhazmat: but yes, that would be part of making it all work well21:47
hazmatthumper, not exactly.. its multi-dev raid21:47
hazmatthumper, ie. your not increasing the size per se21:48
thumperif we set it up as raid 021:48
thumperwhy not?21:48
thumperI'm sure I read something about this21:48
hazmatthumper, don't forget fsync lies with loops...21:49
* thumper sighs21:49
hazmatraid 0 on multiple devs with each of them lying about fsync..21:50
thumperyou are the one that told me to do this in the first place...21:50
thumperI don't understand what you are getting at21:50
thumperare you saying "don't do it"?21:50
thumperor are you saying "warn the user"?21:50
hazmatthumper, i'm just trying to get to something that's reliable and works well if people use it alot21:50
thumperand if so, what is the real issue?21:50
hazmatthumper, its awesome your doing this, but i just want it to be thought through21:50
thumperok, so fsync lies, what is the implication21:51
hazmatthumper, unclean shutdown on laptop..21:51
hazmatfs disk corruption, maybe needs btrfs repair21:52
thumpergiven that we'd need to bring btrfs back up prior to lxc starting21:52
thumperon the loopback devices21:53
thumpercan't we just do the repair in the upstart job?21:53
hazmatsounds reasonable... smoser ^ any comments?21:54
thumperhazmat: I talked to one of hallyn or stgraber about this a few days ago21:55
thumperhazmat: about how to hook up the upstart jobs21:55
thumperso the fs is mounted prior to lxc trying to auto start containers21:55
hazmatcool21:56
* hazmat has meeting bbiab21:56
thumperack21:56
jcastromarcoceppi, you still working?22:06
jcastroI am thinking charm school next Fri22:06
jcastrohere is our list of topics:22:06
jcastro- Writing your own Juju plugins22:06
jcastro- Using Juju Bundles22:06
jcastro- Using Juju in HA configurations *22:06
jcastro- Configuring Juju with the manual provider22:06
jcastro- Starting small and then going big, using Juju with containers.22:06
jcastro- Troubleshooting Juju Part I22:06
jcastro- Troubleshooting Juju Part 222:06
jcastro- Using the Juju GUI in depth.22:06
themonkmarcoceppi, does local container has any log fole to tail22:20
lazyPowerhazmat: symlinked files. indeed.22:23
lazyPowerit was like that when I found it, I should probably remove the upgrade-charm hookfile as it serves no real purpose, the same routine is run in succession when upgrading the charm as is.22:24
hazmatjcastro, writing bundles..22:44
hazmatjcastro, shout out for digital ocean22:45
hazmatthumper, back.22:46
thumperhazmat: kk, I'm currently testing with loopback devs22:46
thumperI'll report back later22:46
thumperabout to go to the gym22:47
hazmatthumper, cool, i'm still thinking we should have aufs as an option22:47
thumpermaybe...22:47
hazmatcause its the simplest thing that generally works22:47
thumperlet's go for one first22:47
thumperthen we can consider aufs22:47
thumperat least make juju btrfs aware22:48
thumperso containers are created and cloned fast and correctly22:48
hazmatsounds good22:48
* thumper focuses on that22:48
=== thumper is now known as thumper-gym
marcoceppithemonk: yes, ~/.juju/local/log23:17
marcoceppijcastro: sounds good, was running errands23:17

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