=== CyberJacob is now known as CyberJacob|Away === CyberJacob|Away is now known as CyberJacob === CyberJacob is now known as CyberJacob|Away === psivaa_ is now known as psivaa_-afk === psivaa_-afk is now known as psivaa === gmb` is now known as gmb [10:08] How do tests get run against charms; trying to understand how I can (a) include unit testing in test runs, and (b) replicate what is done elsewhere. === fabrice is now known as fabrice|lunch [11:32] Odd_Bloke: there is a project called bundletester which is pip installable (in a venv) - and it sniffs out the tests in teh charm [11:32] Odd_Bloke: the unit test setup is different between charms, so bundletester evaluates a makefile to find the test targets [11:33] Additionally, if you have the package `charm-tools` installed - you can issue 'charm add tests' and it will setup a test scaffolding for integration tests using amulet. [11:35] lazyPower: Thanks! [11:37] No problem === fabrice|lunch is now known as fabrice [12:11] I'm hitting a traceback with bundletester: https://gist.github.com/anonymous/389baade22b077abd190 [12:11] The tests are those generated by "juju charm create". [12:13] tvansteenburgh: are we tracking bundletester bugs on github or launchpad? [12:13] lazyPower: let's use github [12:14] Odd_Bloke: can you file a bug against the project here: https://github.com/juju-solutions/bundletester [12:16] https://github.com/juju-solutions/bundletester/issues/2 [12:17] Thanks Odd_Bloke [12:17] Odd_Bloke: for a workaround you might try downgrading juju-deployer to 3.8 [12:18] Odd_Bloke: i don't have time to test it right now but that's what i'd try first [12:19] Trying that now. [12:20] tvansteenburgh: lazyPower: Same traceback. [12:21] Odd_Bloke: gimme a min, i'll give it a try [12:22] tvansteenburgh: Thanks. :) [13:06] man, digital ocean is so much faster than AWS [13:06] deploying my discourse charm takes 21 minutes on AWS and 7 on DO [13:09] natefinch: welcome to the world of SSDs [13:09] Odd_Bloke: i haven't been able to repro that error. i have some other things i need to do atm but will circle back [13:09] natefinch: also, congrats on the deployment [13:09] natefinch: finally, haha at it taking forever with docker :P [13:10] marcoceppi: right? It looks like they do a crapload of stuff after the docker image is deployed... no idea why [13:10] natefinch: because why bother using imaged based workflows ;) [13:13] marcoceppi: "I: relation website has no hooks" .... I don't actually know if I should have a hook for that relation or not? is there something I would need to do with that? Are there docs I can look at for what that should do? [13:14] natefinch: no docs, just examples of charms that implement that relation at the moment. We;re working on a way to documentate relations [13:14] marcoceppi: IIRC we talked about documenting relations a year ago ;) [13:14] * marcoceppi gets the long list of core features that were discussed a year ago and don't exist [13:14] ;) [13:15] zing! [13:15] natefinch: here's an example http://bazaar.launchpad.net/~charmers/charms/precise/wordpress/trunk/view/head:/hooks/website-relation-joined [13:17] marcoceppi: ok, so it looks like I could just copy and paste that, right? [13:17] natefinch: and replace the port with the right value [13:17] typically it's 80, depends on the service [13:17] marcoceppi: what's the right value? [13:18] natefinch: whatever port the service runs on [13:18] marcoceppi: so just the value the service is listening on? [13:18] marcoceppi: ok === mbruzek is now known as mbruzek_ === mbruzek_ is now known as mbruzek [13:45] jcastro, mbruzek: https://github.com/juju/docs/pull/171 [13:46] I don't like the term "user space charms" [13:46] Just say "charms in your personal namespace" [13:46] otherwise that's like another new term people won't understand [13:48] jcastro: updated [13:48] jcastro: or even just your published charms? [13:48] yeah [13:49] jcastro: lazyPower just to start to beat the drum on the publishing idea as we move that forward. [13:49] rick_h_: I'm going to bake you a cake when 'publish' lands. [13:50] and i'll send a print copy of the reworked doc page when that happens. [13:50] space charms sound pretty cool though [13:51] * natefinch whistles the star trek theme === fabrice is now known as fabrice|afk [14:27] to boldly deploy where no charm has gone before [14:44] jcastro: maybe I'm not understanding what you mean by version specific stuff in charms. Actions won't ever work in 1.18, therefore it's a version specific feature in a charm, isn't it? [14:44] right [14:44] I think having version specific anything in charms is a bad idea [14:45] but my point is, if there's ever a new feature we want to support in a charm, it'll be version specific [14:45] right [14:45] I think if you were to tell a charm author [14:45] and we need new features, unless you want to tell Mark S we can't do actions :) [14:45] "check out these new features, but 1.20 only" [14:46] my answer would be "well I'm not going to add it to my charm until someone asks for it." [14:46] I would tell people "upgrade to 1.20" [14:46] I wouldn't make my charm more complex === fabrice|afk is now known as fabrice [14:52] jcastro: I guess I look at it differently. I'd see all the new functionality in 1.20 and say "hey, this could make my charm a lot more useful to people", so I'd update it and tell people to get off their butts and upgrade ;) [14:53] sure [14:53] until you realize that most people are and will remain on 1.18 [14:53] I would just be like "this charm requires 1.20" [14:53] jcastro: that's what we're doing [14:54] yeah but this lets you pick and choose afaict. [14:54] jcastro: in implementation, yes, but in actuality... feature X and Y will require 1.20, and feature Z will require 1.21, so if you use all three, your charm effectively requires 1.21 [14:55] right, so why not just something simpler like "> 1.21" [14:55] like how packages do it? [14:55] I feel like the granularity will just end up with different permutations for everything [14:56] in the worst place to have it, the store [14:56] I think that's perfectly valid. It wasn't my design.... I think it was William's... who is conveniently out today :) [14:58] I can guess about why it was done this way - so that if you backport a feature, the charms that use that feature all of a sudden work in the old version, rather than having a hard-coded revision number [14:59] well, I think of it this way [14:59] but it is significantly less obvious to the end user what versions will support any particular charm... they have to go look up the documentation for each feature and see what version it supports [14:59] we know X version of juju is in Ubuntu version Z [14:59] those charms are series'ed [14:59] so I know on precise I'll have Juju version X with charm version Z [15:00] when I move to trusty, I'll have X+1 and Z+1 [15:00] the charm might or might not have new features based on what corresponding version of juju comes with that new version of ubuntu [15:00] basically, charm series are already tied to juju core versions we ship [15:01] so if I want to use juju actions I'll use utopic charms [15:01] but I wouldn't update the precise charm to use actions [15:01] that's a very interesting point [15:01] and if you use a PPA on an older serioes [15:01] blam, you use the newer series charm as well, even on the old distro [15:02] then it's easier for us to say [15:02] the only problem then, is that you're now requiring that charms with new features use a non-LTS host OS [15:02] "if you want to use actions, you need to put them in charms utopic and newer" [15:03] not really, we're only doing LTS series anyway [15:04] wait, so are you saying you'd deploy the utopic charm to Trusty? [15:04] well we don't have utopic charms, that was an example [15:04] it'd be whatever the next LTS is [15:05] ok, so no new features until 2016 then? [15:05] land as many as you want [15:05] but like the "trusty" and "precise" stores are pretty much locked to the published version of juju in them [15:06] which is why in the mail I think moving to getting newer juju's backported to those is a nicer win [15:06] because then you'd bring them up along with you instead of having them hold you back [15:08] (I realize that's also another set of problems) [15:08] yeah... believe me, we'd love to have 1.20 in precise and trusty [15:09] I think we're working on getting it into trusty, actually [15:09] I just really think having version fragmentation in the store will be bad [15:10] I mean, the hard truth is our customers and users use LTSes, and don't want radical change [15:10] shifting the change from juju to the store seems just as bad to me, if not worse [15:10] "don't worry, juju itself won't change, now we'll just put all the churn in the charm instead!" [15:12] the problem is really that we just can't force people to upgrade [15:13] I'm sure there's people out there running merrilly long with a 1.14 juju server, and someday they're going to say "hey, you know what? I want X new charm" and do juju deploy foo ... and it'll not work, in some weird and non-obvious way [15:13] the point of this code is to make it not work in an obvious and immediate way [15:15] woo who! pprint lands in trunk https://github.com/juju/juju/pull/757 [15:16] juju status --format=oneline [15:18] nice! [15:39] lazyPower: are there test lab credentials re https://bugs.launchpad.net/charms/+bug/1325700 that you can share, or should I assign it to you to re-review? [15:39] Bug #1325700: New Charm: Dell OpenManage Server Administrator (OMSA) === fabrice is now known as fabrice|family === jog_ is now known as jog === psivaa_-afk is now known as psivaa_ === niedbalski_ is now known as niedbalski [18:37] Has relation-list been deprecated? === CyberJacob|Away is now known as CyberJacob [18:47] aisrael: not sure, but be a good question to pop into #juju-dev [18:47] ack [18:47] got a DB questoin from the folks working on the Zend charm. [18:47] "When I add MySQL relation I need 2 seperate DBs. One for Zend Server cluster data and one for the application. When I ask for "db_db=`relation-get database`" I get a database name "zend-server". Is it possible to get another DB from the same MySQL unit for Magento?" [18:48] hints/tips/tricks on how to create two DBs from one relation? [18:49] in SQL it's called views [18:50] where you can build a view of a dataset [18:50] But I think your question is more Zend related :) === roadmr is now known as roadmr_afk [18:59] fuzzy_: thanks for the comments. I may have to see how the zend folks are trying to use this in their charm. [19:00] If you have sql questions, feel free to ask === fuzzy_ is now known as Ponyo === Darkwing_ is now known as Darkwing === roadmr_afk is now known as roadmr [21:07] * arosales taking a look at the review queue [21:07] * arosales reviwing nginx [21:08] filled https://github.com/marcoceppi/review-queue/issues/9 -- not auto charm testing comment [21:12] if I have a directory in my charm [21:12] say "files/" [21:12] where I want to put like random config files I want on the units [21:12] when calling it from say an install hook, what's the pwd? [21:12] will "cp -f files/foo destination" work? [21:32] mbruzek: can I get you to kick off a tests for the items in the review queue? [21:32] s/a// [21:32] sure [21:32] mbruzek: specifically the ones that don't have a test stuat [21:33] arosales: when I tried this yesterday it did not work for me let me try again today. [21:33] ah ok, let me know if it still fails [21:34] arosales: I did the Review Queue with Jose yesterday and told him about the new feature. [21:34] But I was unable to kick new tests off [21:34] arosales: I was incorrect, it does seem to work today. [21:34] mbruzek: ah ok, good to hear [21:34] specifically which ones? [21:35] arosales: all of them in the queue? [21:36] kicked them all off. [21:38] yes, I think they all need a test before ack [21:38] mbruzek: thanks === kwmonroe_ is now known as kwmonroe === CyberJacob is now known as CyberJacob|Away [22:22] Two quick questions, maybe is good to have this on askubuntu later. In the future will be possible to add relations between environments? And a friend of mine asked about official support do centos deployments. [22:26] ./join #docker-dev [22:39] alexisb, docker-dev? [22:41] ayr-ton, yeah I added the "." by mistake [22:41] Ah, ok. [22:54] ayr-ton: re your question, it is on the road map to have juju have relations between environments. Its been dubbed cross environment relaitons. [22:54] s/relaitons/relations [22:54] charmer needed to update https://code.launchpad.net/~jorge/charms/trusty/mysql/fix-proof/+merge/234020 [22:55] interesting. [22:55] its been superceded by https://code.launchpad.net/~a.rosales/charms/trusty/mysql/add-default-keys/+merge/235064 [23:05] charmer also needed to update the MP status on https://code.launchpad.net/~tvansteenburgh/charms/precise/block-storage-broker/fix-tests/+merge/234168 === kentb is now known as kentb-out