/srv/irclogs.ubuntu.com/2014/09/17/#juju.txt

=== 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
Odd_BlokeHow 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.10:08
=== fabrice is now known as fabrice|lunch
lazyPowerOdd_Bloke: there is a project called bundletester which is pip installable (in a venv) - and it sniffs out the tests in teh charm11:32
lazyPowerOdd_Bloke: the unit test setup is different between charms, so bundletester evaluates a makefile to find the test targets11:32
lazyPowerAdditionally, 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:33
Odd_BlokelazyPower: Thanks!11:35
lazyPowerNo problem11:37
=== fabrice|lunch is now known as fabrice
Odd_BlokeI'm hitting a traceback with bundletester: https://gist.github.com/anonymous/389baade22b077abd19012:11
Odd_BlokeThe tests are those generated by "juju charm create".12:11
lazyPowertvansteenburgh: are we tracking bundletester bugs on github or launchpad?12:13
tvansteenburghlazyPower: let's use github12:13
lazyPowerOdd_Bloke: can you file a bug against the project here: https://github.com/juju-solutions/bundletester12:14
Odd_Blokehttps://github.com/juju-solutions/bundletester/issues/212:16
lazyPowerThanks Odd_Bloke12:17
tvansteenburghOdd_Bloke: for a workaround you might try downgrading juju-deployer to 3.812:17
tvansteenburghOdd_Bloke: i don't have time to test it right now but that's what i'd try first12:18
Odd_BlokeTrying that now.12:19
Odd_Bloketvansteenburgh: lazyPower: Same traceback.12:20
tvansteenburghOdd_Bloke: gimme a min, i'll give it a try12:21
Odd_Bloketvansteenburgh: Thanks. :)12:22
natefinchman, digital ocean is so much faster than AWS13:06
natefinchdeploying my discourse charm takes 21 minutes on AWS and 7 on DO13:06
marcoceppinatefinch: welcome to the world of SSDs13:09
tvansteenburghOdd_Bloke: i haven't been able to repro that error. i have some other things i need to do atm but will circle back13:09
marcoceppinatefinch: also, congrats on the deployment13:09
marcoceppinatefinch: finally, haha at it taking forever with docker :P13:09
natefinchmarcoceppi: right?  It looks like they do a crapload of stuff after the docker image is deployed... no idea why13:10
marcoceppinatefinch: because why bother using imaged based workflows ;)13:10
natefinchmarcoceppi: "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:13
marcoceppinatefinch: no docs, just examples of charms that implement that relation at the moment. We;re working on a way to documentate relations13:14
natefinchmarcoceppi: 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 exist13:14
marcoceppi;)13:14
lazyPowerzing!13:15
marcoceppinatefinch: here's an example http://bazaar.launchpad.net/~charmers/charms/precise/wordpress/trunk/view/head:/hooks/website-relation-joined13:15
natefinchmarcoceppi: ok, so it looks like I could just copy and paste that, right?13:17
marcoceppinatefinch: and replace the port with the right value13:17
marcoceppitypically it's 80, depends on the service13:17
natefinchmarcoceppi: what's the right value?13:17
marcoceppinatefinch: whatever port the service runs on13:18
natefinchmarcoceppi: so just the value the service is listening on?13:18
natefinchmarcoceppi: ok13:18
=== mbruzek is now known as mbruzek_
=== mbruzek_ is now known as mbruzek
lazyPowerjcastro, mbruzek: https://github.com/juju/docs/pull/17113:45
jcastroI don't like the term "user space charms"13:46
jcastroJust say "charms in your personal namespace"13:46
jcastrootherwise that's like another new term people won't understand13:46
lazyPowerjcastro: updated13:48
rick_h_jcastro: or even just your published charms?13:48
jcastroyeah13:48
rick_h_jcastro: lazyPower just to start to beat the drum on the publishing idea as we move that forward.13:49
lazyPowerrick_h_: I'm going to bake you a cake when 'publish' lands.13:49
lazyPowerand i'll send a print copy of the reworked doc page when that happens.13:50
natefinchspace charms sound pretty cool though13:50
* natefinch whistles the star trek theme13:51
=== fabrice is now known as fabrice|afk
josephtto boldly deploy where no charm has gone before14:27
natefinchjcastro: 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
jcastroright14:44
jcastroI think having version specific anything in charms is a bad idea14:44
natefinchbut my point is, if there's ever a new feature we want to support in a charm, it'll be version specific14:45
jcastroright14:45
jcastroI think if you were to tell a charm author14:45
natefinchand we need new features, unless you want to tell Mark S we can't do actions :)14:45
jcastro"check out these new features, but 1.20 only"14:45
jcastromy answer would be "well I'm not going to add it to my charm until someone asks for it."14:46
jcastroI would tell people "upgrade to 1.20"14:46
jcastroI wouldn't make my charm more complex14:46
=== fabrice|afk is now known as fabrice
natefinchjcastro: 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:52
jcastrosure14:53
jcastrountil you realize that most people are and will remain on 1.1814:53
jcastroI would just be like "this charm requires 1.20"14:53
natefinchjcastro: that's what we're doing14:53
jcastroyeah but this lets you pick and choose afaict.14:54
natefinchjcastro: 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.2114:54
jcastroright, so why not just something simpler like "> 1.21"14:55
jcastrolike how packages do it?14:55
jcastroI feel like the granularity will just end up with different permutations for everything14:55
jcastroin the worst place to have it, the store14:56
natefinchI think that's perfectly valid.  It wasn't my design.... I think it was William's... who is conveniently out today :)14:56
natefinchI 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 number14:58
jcastrowell, I think of it this way14:59
natefinchbut 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 supports14:59
jcastrowe know X version of juju is in Ubuntu version Z14:59
jcastrothose charms are series'ed14:59
jcastroso I know on precise I'll have Juju version X with charm version Z14:59
jcastrowhen I move to trusty, I'll have X+1 and Z+115:00
jcastrothe charm might or might not have new features based on what corresponding version of juju comes with that new version of ubuntu15:00
jcastrobasically, charm series are already tied to juju core versions we ship15:00
jcastroso if I want to use juju actions I'll use utopic charms15:01
jcastrobut I wouldn't update the precise charm to use actions15:01
natefinchthat's a very interesting point15:01
jcastroand if you use a PPA on an older serioes15:01
jcastroblam, you use the newer series charm as well, even on the old distro15:01
jcastrothen it's easier for us to say15:02
natefinchthe only problem then, is that you're now requiring that charms with new features use a non-LTS host OS15:02
jcastro"if you want to use actions, you need to put them in charms utopic and newer"15:02
jcastronot really, we're only doing LTS series anyway15:03
natefinchwait, so are you saying you'd deploy the utopic charm to Trusty?15:04
jcastrowell we don't have utopic charms, that was an example15:04
jcastroit'd be whatever the next LTS is15:04
natefinchok, so no new features until 2016 then?15:05
jcastroland as many as you want15:05
jcastrobut like the "trusty" and "precise" stores are pretty much locked to the published version of juju in them15:05
jcastrowhich is why in the mail I think moving to getting newer juju's backported to those is a nicer win15:06
jcastrobecause then you'd bring them up along with you instead of having them hold you back15:06
jcastro(I realize that's also another set of problems)15:08
natefinchyeah... believe me, we'd love to have 1.20 in precise and trusty15:08
natefinchI think we're working on getting it into trusty, actually15:09
jcastroI just really think having version fragmentation in the store will be bad15:09
jcastroI mean, the hard truth is our customers and users use LTSes, and don't want radical change15:10
jcastroshifting the change from juju to the store seems just as bad to me, if not worse15:10
jcastro"don't worry, juju itself won't change, now we'll just put all the churn in the charm instead!"15:10
natefinchthe problem is really that we just can't force people to upgrade15:12
natefinchI'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 way15:13
natefinchthe point of this code is to make it not work in an obvious and immediate way15:13
marcoceppiwoo who! pprint lands in trunk https://github.com/juju/juju/pull/75715:15
marcoceppijuju status --format=oneline15:16
natefinchnice!15:18
aisraellazyPower: 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
mupBug #1325700: New Charm: Dell OpenManage Server Administrator (OMSA) <Juju Charms Collection:Fix Committed> <https://launchpad.net/bugs/1325700>15:39
=== 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
aisraelHas relation-list been deprecated?18:37
=== CyberJacob|Away is now known as CyberJacob
arosalesaisrael: not sure, but be a good question to pop into #juju-dev18:47
aisraelack18:47
arosalesgot a DB questoin from the folks working on the Zend charm.18:47
arosales"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:47
arosaleshints/tips/tricks on how to create two DBs from one relation?18:48
fuzzy_in SQL it's called views18:49
fuzzy_where you can build a view of a dataset18:50
fuzzy_But I think your question is more Zend related :)18:50
=== roadmr is now known as roadmr_afk
arosalesfuzzy_: thanks for the comments. I may have to see how the zend folks are trying to use this in their charm.18:59
fuzzy_If you have sql questions, feel free to ask19:00
=== fuzzy_ is now known as Ponyo
=== Darkwing_ is now known as Darkwing
=== roadmr_afk is now known as roadmr
* arosales taking a look at the review queue21:07
* arosales reviwing nginx21:07
arosalesfilled https://github.com/marcoceppi/review-queue/issues/9  -- not auto charm testing comment21:08
jcastroif I have a directory in my charm21:12
jcastrosay "files/"21:12
jcastrowhere I want to put like random config files I want on the units21:12
jcastrowhen calling it from say an install hook, what's the pwd?21:12
jcastrowill "cp -f files/foo destination" work?21:12
arosalesmbruzek: can I get you to kick off a tests for the items in the review queue?21:32
arosaless/a//21:32
mbruzeksure21:32
arosalesmbruzek: specifically the ones that don't have a test stuat21:32
mbruzekarosales: when I tried this yesterday it did not work for me let me try again today.21:33
arosalesah ok, let me know if it still fails21:33
mbruzekarosales: I did the Review Queue with Jose yesterday and told him about the new feature.21:34
mbruzekBut I was unable to kick new tests off21:34
mbruzekarosales: I was incorrect, it does seem to work today.21:34
arosalesmbruzek: ah ok, good to hear21:34
mbruzekspecifically which ones?21:34
mbruzekarosales: all of them in the queue?21:35
mbruzekkicked them all off.21:36
arosalesyes, I think they all need a test before ack21:38
arosalesmbruzek: thanks21:38
=== kwmonroe_ is now known as kwmonroe
=== CyberJacob is now known as CyberJacob|Away
ayr-tonTwo 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:22
alexisb./join #docker-dev22:26
ayr-tonalexisb, docker-dev?22:39
alexisbayr-ton, yeah I added the "." by mistake22:41
ayr-tonAh, ok.22:41
arosalesayr-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
arosaless/relaitons/relations22:54
arosalescharmer needed to update https://code.launchpad.net/~jorge/charms/trusty/mysql/fix-proof/+merge/23402022:54
ayr-toninteresting.22:55
arosalesits been superceded by https://code.launchpad.net/~a.rosales/charms/trusty/mysql/add-default-keys/+merge/23506422:55
arosalescharmer also needed to update the MP status on https://code.launchpad.net/~tvansteenburgh/charms/precise/block-storage-broker/fix-tests/+merge/23416823:05
=== kentb is now known as kentb-out

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