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

=== CyberJacob is now known as CyberJacob|Away
danobmarcoceppi: sorry for late response. I just deploy a apache2 charm and what should i do to see "it works" default page if i hit public address of apache2 unit?00:34
jcastro_you need to expose the service first00:37
jcastro_juju expose apache200:37
marcoceppidanob: you need to provide a vjost template00:39
danobjcastro_: i exposed it :)00:40
jcastro_oh nm, don't listen to me00:40
danobmarcoceppi: how do i do that, i dont know :)00:41
danobmarcoceppi: can you point me a doc, how to?00:42
marcoceppidanob: check the charm readme?00:42
jcastro_http://manage.jujucharms.com/charms/precise/apache200:43
jcastro_scroll down ^^^00:44
=== sarnold_ is now known as sarnold
iamveenHas anyone successfully boostrapped juju on a vagrant/virtualbox guest? It never works for me. There always seems to be problems looking up the architecture or ubuntu release.01:50
iamveenI want to like juju, but It's so incredibly frustrating at this point.01:53
marcoceppiiamveen: What do you mean vagrant/virtualbox? How are you trying to bootstrap these?02:11
=== edu-afk is now known as edamato
iamveenI bring up an ubuntu host in vagrant, then use the "null" provider, then run juju bootstrap02:15
sarnoldis there still a null provider? I thought it was renamed 'ssh' ages ago...02:16
iamveenoh really... I could swear the docs still refer to null02:17
sarnoldcan you contact your other hosts from within the vangrant guest?02:17
iamveenlet me check02:17
axwthere is, it's called "manual" now. iamveen, which version of juju are you using?02:17
axwiamveen: it's still called null in the released version02:17
iamveen1.16.6 on OSX02:17
sarnoldaww man, I thght 'null' was such a bad name it only lived for a month or so. darn. :)02:17
sarnoldbugger the name made it to release..02:17
axwiamveen: the 1.16.x version of the null provider is pretty alpha, I would highly recommend trying 1.17.302:18
axwthere have been many bug fixes02:18
iamveenThis page still says to use "null" - https://juju.ubuntu.com/docs/config-manual.html02:18
axwyep - it will be changed when 1.18 is released02:19
sarnoldiamveen: sorry, it's my mistake. I thought the name 'null' was killed before release..02:19
iamveenah02:19
=== mwhudson is now known as zz_mwhudson
iamveenis that not available via brew?02:19
axwiamveen: sorry, I don't know about juju packaging on OS X. You may have to build from source...02:20
iamveenk02:20
iamveenthanks guys02:20
iamveenI'll give that a shot02:20
iamveenIs there a preferred ubuntu release for hosts?02:21
=== zz_mwhudson is now known as mwhudson
axwprecise still has the most charms, AFAIK02:22
sarnoldiamveen: precise is probably your best bet; most charms, most support02:23
iamveencool, thanks02:23
iamveenokay, 0.17.3 works much better02:47
iamveen1.17.3 even02:48
sarnoldcool!02:51
=== edamato is now known as edu-afk
=== timrc is now known as timrc-afk
=== mwhudson is now known as zz_mwhudson
=== timrc-afk is now known as timrc
=== timrc is now known as timrc-afk
danobmarcoceppi: its working now ;)04:58
danobjcastro_: thanks :)04:59
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== wrtp is now known as rogpeppe
=== rogpeppe1 is now known as rogpeppe
=== rogpeppe1 is now known as rogpeppe
noodles775Anyone able to do a charm-helpers review? https://code.launchpad.net/~michael.nelson/charm-helpers/include-relations-for-type/+merge/20508710:39
noodles775marcoceppi: ^^ Do you know who is around to review charm-helper branches these days?10:44
* noodles775 checks the revision history.10:44
JoshStroblhey marcoceppi, when you get the time, mind reviewing the following pull request and accepting it upstream if it LGTY? https://github.com/juju/plugins/pull/711:00
JoshStroblalso, marcoceppi, Q regarding my charm. I modified the config-changed file so it properly uninstall / installs apache2 and/or nginx (depending on the config-get engine). nginx doesn't have a service file, so it returns as an unrecognized service when you call service nginx start or /etc/init.d/nginx start. Any recommendations?11:04
=== jacekn_ is now known as jacekn
=== timrc-afk is now known as timrc
marcoceppiJoshStrobl: uh, nginx does/should have an init file12:41
marcoceppinoodles775: I, and a few others, are12:42
JoshStroblmarcoceppi: hmm12:46
noodles775marcoceppi: ok. Let me know if you won't have time to look at that branch and I'll try to persuade someone else :)12:50
marcoceppinoodles775: it's in the review-queue so I have to look at it sometime ;)12:58
noodles775marcoceppi: sure, but I've only just pushed an update, it's been in the review queue for a few weeks (not your issue - just that I feel I need to find someone rather than just leave it there).13:00
marcoceppinoodles775: ack, turns out it wasn't in the review-queue after all, I'm going to make sure ~charmers get assigned to reviews for these so it will in the meantime13:01
noodles775Ah - the default ~charm-helpers isn't correct?13:02
marcoceppinoodles775: yeah, I thought it was ~charmers, which would put it in our review queue13:02
marcoceppinoodles775: why change the dict keys to _?13:02
noodles775marcoceppi: because in a jinja2 template (which ansible and saltstack use) you can't do mydict.my-key.value, only mydict.my_key.value13:03
marcoceppinoodles775: ah, okay - I assumed as much but wanted to make sure13:03
JoshStrobland not longer afk...in a sense13:08
JoshStroblmarcoceppi: Regarding nginx: Still doesn't explain why it server nginx start claims the service doesn't exist.13:09
JoshStrobl*why service13:09
marcoceppiJoshStrobl: http://paste.ubuntu.com/6999673/ really not sure13:13
JoshStroblmarcoceppi: I'll go ahead and look into it further on my end13:15
JoshStroblWouldn't surprise me if it is a bug my charm :D13:15
JoshStroblconfig-get x would be the appropriate call during something like an install script to get the setting value, correct?13:39
=== psivaa is now known as psivaa-lunch
marcoceppiJoshStrobl: it could be done during the install hook, but make sure you implement logic in config-changed that handles that config value as well - or just have all the config managment stuff in config-changed and the install hook be very light13:43
JoshStroblmarcoceppi: So would the appropriate line for getting the value be: x='config-get y', x=${'config-get y'}?13:44
JoshStroblexample, for my charm: preferredEngine='config-get engine'13:45
marcoceppiwell, you'll want to use `` not ''13:46
marcoceppieither $(config-get <key>) or `config-get <key>`13:46
JoshStroblalrighty13:46
* JoshStrobl is still newish to bash scripting13:46
marcoceppinp13:47
Ming_want  to try Juju GUI 1.0 It requires Juju 1.17.3. How do I install it? repository is pap:juju/develop?13:54
KaukoHi, I just heard about juju and I have to say it looks amazing! Saw that there's an IRC channel and thought I'd join and ask some questions14:02
KaukoHow does juju work with AWS Elastic Beanstalk? Not sure if this is a stupid question since I'm not totally sure if I completely understand how juju works yet :P14:02
KaukoI found some examples of using juju on normal ec2 instances, but I'd really like to use elastic beanstalk since it has some great features14:03
Kaukois there any difference between deploying on elastic beanstalk vs ec2?14:04
marcoceppiKauko: currently juju doesn't support beanstalk to my knowledge14:04
Kaukoah, thats a damn shame14:04
marcoceppiKauko: currently, it generalizes clouds to give you the ability to drive different cloud envionments from the same tool14:04
marcoceppiJuju is like beanstalk, but for more than just Amazon14:05
jamespagemarcoceppi, got a charm branch for mysql on trusty I can steal? looking to deprecate the use of my hacked one in our lab :-)14:05
marcoceppias a very crude comparison14:05
marcoceppijamespage: not yet, but I should have one by Friday14:05
jamespage\o/14:05
marcoceppijust finishing the tests for mysql14:05
jamespageall nice and in python?14:05
Kaukomarcoceppi: Yeah I think I understand what you mean. It14:06
marcoceppijamespage: not entirely rewritten yet, there's still a few outstanding merges I want to get in before starting down that road14:06
KaukoIt's a shame it doesn't support beanstalk though, I kind of need the versioning, deployment etc features beanstalk can give me14:06
marcoceppiKauko: could you elaborate a bit? Juju might have some comperable features14:07
Kaukokk, just give me a moment, I'll need to look through the beanstalk features first! ;)14:07
Kaukoactually off the top of my head I can say that we need to be able to deploy different versions of our app (so that we can have beta, stable, prev_stable)14:09
JoshStroblhmm, mkdir -p /var/www/ fails on the install script with the Vagrant precise vagrant box, yet worked during testing on my old Ubuntu Server VM.14:09
marcoceppiKauko: cool, you can do that in juju14:09
JoshStrobl*Vagrant precise box14:09
marcoceppiJoshStrobl: is that the local provider on Vagrant, or just using the manual provider?14:09
JoshStroblEven tried with sudo and it failed.14:09
JoshStrobllocal provider14:09
JoshStrobljuju deploy --repository ~/charms local:metis14:10
Kaukomarcoceppi: oh! Also beanstalk scales automatically, and it should be pretty easy to deploy using scripts (we want CI)14:10
Kaukomarcoceppi: can juju do this too?14:10
marcoceppiKauko: so, we don't have "autoscaling" yet (on the roadmap) but you can scale, and juju has a full websocket API so you can have tools do scaling for you automatically. Otherwise, using CI to deploy and drive juju environemnts is pretty straight forward, either via the CLI or by connecting to the bootstrap node directly with the API14:11
JoshStroblmarcoceppi: To be more exact, https://juju.ubuntu.com/docs/config-vagrant.html > precise-server-cloudimg-amd64-juju-vagrant-disk1.box14:12
Kaukomarcoceppi: hmm ok, cool. Any idea when we could expect to have autoscaling? 1 month, 1 year, 5 years? :) It's a feature that would be really good for me since I'm new with these things, and would prefer to spend my time thinking about other stuff  :P14:13
marcoceppiKauko: I'm not sure, but we'd probably see traction towards the fall of this year14:14
JoshStroblmarcoceppi: Line 184 & 185 of http://paste.ubuntu.com/6999928/.14:15
marcoceppiJoshStrobl: it seems to work there?14:16
JoshStroblWell, sudo mkdir -p and mkdir -p don't output any errors (otherwise the script would fail), unzip extracts properly, yet when you try to cd /var/www the directory doesn't exist, nor any contents.14:16
JoshStroblcompared it to the same code in the old install script, no changes that'd cause it.14:17
JoshStroblI'll pastebinit the install script so you can see14:18
marcoceppiJoshStrobl: line 208 seems to show that /var/www exists and zip extracts to it14:18
JoshStroblmarcoceppi: Indeed, hence my confusion.14:19
JoshStroblhttp://paste.ubuntu.com/6999943/14:19
JoshStroblIgnore the use of sudo, I added those in to see if it'd make a difference and nope14:19
marcoceppiJoshStrobl: are you looking on the vagrant box or on the LXC container in the vagrant box?14:19
JoshStroblit is on machine 1: instance-id: vagrant-local-machine-1...is it's local FS stored elsewhere?14:20
JoshStroblIf so, then please facepalm me :D14:20
JoshStroblseries: precise, agent-state: started on machine 1.14:20
marcoceppiJoshStrobl: right, you're running `juju ssh metis/0` (in the Vagrant box) then looking in /var/www14:21
JoshStroblmarcoceppi: I'm ssh'd into the Vagrant via `vagrant ssh`. Any difference?14:21
marcoceppiJoshStrobl: yeah, you need to go /one/ layer deeper14:22
JoshStrobllemme guess, need to ssh into 1?14:22
JoshStroblah14:22
marcoceppiafter vagrant ssh, run juju ssh metis/014:22
marcoceppiJoshStrobl: yeah, the Vagrant box acts as a new machine which has the local provider on it14:22
JoshStroblyou are completely right...14:22
JoshStroblI ssh'd in, went to /var/www/ and it's there.14:22
marcoceppiso you can use it as a clean/pristine box to spin up LXC containers, destroy, recreate, etc14:22
marcoceppialso useful if you don't have an Ubuntu/Linux machine and want to use the local provider14:23
JoshStroblYea. On my VM I always deployed it locally, guessing that particular machine was the host (machine 0), so whenever I looked in /var/www I expected it there, didn't even think about ssh'ing into the machine.14:23
JoshStroblthat'd also explain the service issues14:24
JoshStroblsince it was on a different machine14:24
JoshStroblyep14:24
JoshStrobldid service nginx status and voila, it is there14:24
JoshStroblmarcoceppi, I don't know what I'd do without ya man :D14:25
marcoceppihappy to help!14:26
JoshStroblJust let me know when I start driving you insane.14:26
Kaukomarcoceppi: thanks for your help!14:28
=== psivaa-lunch is now known as psivaa
=== freeflying is now known as freeflying_away
cargillhi, I'm still trying to get tests running on vagrant (local provider), but the tests seem to fail (log at http://pastebin.ubuntu.com/7000435/)16:06
lazyPowercargill: what are you using to run the tests? A vagrant provisioner statement?16:09
cargillthe 'juju test' command inside the vagrant box16:10
lazyPoweris this in the juju quickstart vagrant box?16:11
lazyPowerAh, ok - i see the issue. 1.16.5 does not support sudoless bootstrapping and has an issue running tests against the local provider.16:11
cargillah, are the latest vagrant boxes set up with 1.17 or still 1.16?16:15
marcoceppicargill: probably 1.17, not entirely sure16:21
* marcoceppi isn't sure how often they get refreshed16:21
JoshStroblNot sure about later versions, but the latest precise build has 1.16.6. guessing 1.17 hasn't been backported or 1.17 hasn't been backported16:23
marcoceppiJoshStrobl: we don't backport to precise, I think that the vagrant boxes only have ppa:juju/stable enabled. You need to also enable ppa:juju/devel to get 1.17 releases16:24
JoshStroblMeh, it's not a priority to me :P I'm content with ppa:juju/stable.16:26
JoshStroblWhat other "features" besides sudoless bootstrapping does 1.17.x bring?16:27
lazyPowera ton of fixes to the local provider experience16:27
lazyPowerhttps://launchpad.net/juju-core/+milestone/1.17.316:27
lazyPowerrelease notes are here ^16:27
cargillok, so tests do not work on stable with local? Just changing the repo to /devel and updating will work on precise?16:28
lazyPowercargill: correct. That should be all you need to do to get tests running with the local provider.16:28
cargillcomplete absence of tests has been the only thing preventing me from raising a merge proposal for a while...16:29
JoshStrobllazyPower: Oh...erm...yea maybe I should start using 1.17.3 :D16:29
lazyPowerJoshStrobl: i started working on a community maintained vagrantfile, its kind of a precursor for some functionality marcoceppi and I are working on to enhance the cross platform charmer story16:31
lazyPowerif you're interested in what i've done - and note, its got a serious drawback of working on top of a 801 mb (yikes!) boxfile16:31
lazyPowerhttps://github.com/chuckbutler/juju-vagrant -- this is specific to tests. If you pull the cloud image and update to juju 1.17.3 it should cut down the boxfile size, and give you similar results16:32
lazyPowerymmv however, as i haven't tested it.16:32
JoshStrobllazyPower: I'll take a look at it :)16:38
lazyPowercool! :) Issues/pull requests welcome16:38
lazyPowerif you get a functional upgrade from the cloud image, feel free to submit your work. I'd love to see what you did16:39
cargillhmm, and there we go again, I've wiped the vagrant box, started over and I get "The box 'JujuQuickstart' could not be found"16:39
lazyPowercargill: vagrant box list16:39
lazyPowercan you pastebin that for me?16:39
cargillvagrant box list $ JujuQuickStart (virtualbox)16:39
lazyPowerCasing on the S16:39
lazyPowerit appears we haev an issue on the docs. I'll get a patch in a pull request. TY for calling that out cargill16:40
cargilloh yes, so the name I set must match the one in the image?16:40
JoshStroblYes, it is case sensitive.16:41
lazyPowerCorrect, whatever you import the boxname as must match your vagrant init16:41
cargillah, hmm, that explains a couple of things, lazyPower, thank you very much!16:42
lazyPowermarcoceppi https://github.com/juju/docs/pull/616:44
JoshStroblI also recommend you saving the .box file locally. It makes doing a vagrant box add much faster when you have it fetch the box locally rather than via http16:44
cargillJoshStrobl: that's what I do :)16:45
JoshStroblYea after re-adding / destroying Vagrant boxes a few times, felt it would be smart to save the box file locally :D16:45
lazyPowerYou do now that once its cached you dont need to remove it unless you're upgrading right?16:46
cargilla note about the online docs, could they perhaps include the section name in the <title>?16:46
dpb1marcoceppi: I'm hitting another case where I need an environment variable passed through for juju-test.  Any chance we could reconsider allowing all environment to be passed through?16:46
lazyPowerif it appears in vagrant box list, it will use that copy of the box for each subsequent spin up.16:46
lazyPowercargill: What do you mean?16:46
lazyPoweroh you mean the title tag16:46
marcoceppidpb1: which one16:46
cargillthe title of https://juju.ubuntu.com/docs/config-LXC.html is Uju documentation16:47
cargillyes16:47
cargills/Uju/Juju/16:47
dpb1marcoceppi: test specific.  we have an env var used to skip certain tests.16:47
Ursinhahi all, is it possible to set machine constraints on the yaml file? instead of using juju set-constraints --service foobar ?16:48
dpb1marcoceppi: do you know why it was a design decision to zero out the environment?  I don't see other test tools doing that.16:48
marcoceppidpb1: because it runs on a lightweight environment, so it can't rely on people using env variables that are set on their system and theirs only16:49
dpb1marcoceppi: could I introduce an argument to allow the environment to be preserved?16:51
lazyPowerUrsinha: yep. heres an example: http://paste.ubuntu.com/7000694/16:51
UrsinhalazyPower: awesome, thank you very much. I've read the docs but couldn't find it, maybe I was searching in the wrong place.16:52
lazyPowerUrsinha: I fired up a juju-gui and modeled it, then exported my bundle.16:52
lazyPowerThats how i've been writing my deployment YAML's for the last few weeks.16:52
Ursinhainteresting.16:53
lazyPowerUrsinha: https://juju.ubuntu.com/docs/charms-bundles.html16:53
lazyPowerJuju bundles are a first class citizen in the juju ecosystem - it makes deploying complex configurations trivial16:54
UrsinhalazyPower: this is great! thanks for the pointers :)16:54
lazyPowerHappy to help :)16:55
UrsinhaI was wondering if I could set the constraint in the environment configuration file, do you know if that's possible? to ensure all instances created on that env would follow the constraints16:55
Ursinhalet's say I have env01, and want all machines created on that env to have mem=400016:56
lazyPowerUrsinha: i'm not aware of any env based configuration like that. Doesn't mean it doesn't exist, i just dont know about it.16:57
UrsinhalazyPower: thanks anyway, you provided great information :)17:00
dpb1Ursinha: no, you can't currently set constraints in the environments.yaml file.  Once you bootstrap, you can provide make a "default" like you are wanting though.  See: https://juju.ubuntu.com/docs/charms-constraints.html for more info.17:00
dpb1Ursinha: btw, the "bundles" that you have been discussing provide options for setting constraints on each service.17:01
Ursinhadpb1: I read these docs but couldn't find a way to do that in the conf file though, but thanks :)17:01
Ursinhadpb1: yes, I saw that. was wondering if I could set environment constraints, hence my last question :)17:02
dpb1Ursinha: ya, not possible.  I was checking for a bug/enhancement request, but can't find it.17:03
UrsinhaI have two environments to deploy, one is nice, other not so nice, so one of them might require more tight constraints then the other, so configuring the service wouldn't be ideal17:03
Ursinhadpb1: I can file a bug, if that helps17:03
marcoceppidpb1: maybe, I was considering a "passthrough" option to supply which env variables you want to pass through17:03
marcoceppidpb1: what's the environment variable though?17:04
dpb1Ursinha: https://bugs.launchpad.net/juju-core/+bug/122831117:04
_mup_Bug #1228311: Specify default constraints <constraints> <improvement> <papercut> <juju-core:Triaged> <https://launchpad.net/bugs/1228311>17:04
dpb1Ursinha: knew it was out there somewhere. :)17:04
Ursinhadpb1: awesome! thanks :)17:05
dpb1marcoceppi: in this case... "SKIP_SLOW_TESTS", very specific to this charm, of course.17:05
marcoceppidpb1: yeah, so that wouldn't work in our charm automated tests, but I can see how it would be helpful to you though17:06
dpb1marcoceppi: well, I can throw up an MP if you would like, won't take me too much time.  If you would rather it append to the whitelist rather than just allow everything through, let me know.17:06
ahasenackmarcoceppi: do you really take down the environment between tests in the tests/ directory?17:06
ahasenackmarcoceppi: I mean, I know juju-test does it, but do you really want it to? Do you use it that way?17:06
marcoceppidpb1: something like --preserve-envs "comma,seperated,list,of,envs,to,add,to,whitelist" might work17:06
marcoceppiahasenack: yes17:07
ahasenackmarcoceppi: that's super expensive17:07
dpb1marcoceppi: ok.. I'll throw something up (and a bug to start)17:07
marcoceppiahasenack: right, there was/is an option (not sure if it's released yet) that will do only one bootstrap for all tests17:07
ahasenackmarcoceppi: ok, but why would you (a generic "you", not you you) prefer to destroy the environment between tests against the same charm?17:07
marcoceppiahasenack: well, not all tests would use the same base? What if a previous test fails - you wouldn't want to preserve that environment for the next test run, etc17:08
marcoceppiif you consider each test a userstory, having a potentially "dirty" environment from the last test run could influence that test file test run17:09
ahasenackyeah, bad tests do that17:09
ahasenackbut re-deploying is expensive most of the time, not the exception17:09
ahasenackanyway, that just makes me put everything in one file under tests/17:10
ahasenacksince the deployment takes between 10-15min17:10
lazyPowerahasenack: i've got a complex mongodb deployment amulet test that takes approx 12 minutes to run.17:10
marcoceppiahasenack: however, some people write tests that can safely cascade (ie do cleanup) so there's a flag that can be used to only setup bootstrap once17:10
marcoceppiahasenack: that way, if your test files know how to clean up the deployment, etc, you can use multiple test files with the same boostrap17:10
marcoceppiI try to include as many options as possible for people to write tests that work for them17:11
ahasenackmarcoceppi: is that in the package yet?17:11
marcoceppiahasenack: let me check17:11
lazyPowerits not as bad as you would think. I feel its cost of knowing that clean environment is going to perform as expected, and any post deployment op checking should be done within the given configuration.17:11
lazyPowerat least for now until the post-deployment command patch lands17:11
marcoceppiahasenack: not yet, it will be the "--one-bootstrap" flag though in the next release of charm-tools17:12
ahasenackmarcoceppi: ok, thanks17:12
lazyPowerI just ran into a new issue i haven't seen before17:20
lazyPowerbootstrapping on HPCloud17:20
lazyPowerERROR bootstrap failed: rc: 117:20
lazyPowerseems to have been temporary17:25
dpb1marcoceppi: https://code.launchpad.net/~davidpbritton/charm-tools/preserve-environment/+merge/20843917:40
cargillhmm, upgrading to 1.17 does not really help (from a fresh precise vagrant box, installed amulet, charm-tools, destroyed evn local, switched to /devel, upgraded juju, run juju test -e local, and it still thinks the env is already bootstrapped...)17:44
mgzcargill: what have you got in ~/.juju/environments/ ?17:44
cargillhave no touched that17:44
mgzcargill: yhr point is you might need to :)17:45
cargilllocal.jenv17:45
cargillshould I remove it?17:45
mgzokay, so try moving that out of the way, and rego17:45
cargillmoved local.jenv elsewhere, still the same: ERROR environment is already bootstrapped17:46
mgzcan you run with --debug and pastebin?17:49
cargill--debug on juju test does not really do anything17:50
lazyPowercargill: give me a moment to catch up and I'll give it a go17:51
cargillhmm: "verbose is deprecated with the current meaning, use show-log"17:54
cargilljuju show-log: "ERROR unrecognized command: juju show-log"17:54
mgz--show-log17:54
cargillah17:54
mgzbut you really just want `juju --debug COMMAND ....`17:55
cargillwell, there is no difference in what "sudo juju --debug test -e local" and "sudo juju test  -e local" output17:56
cargillah, when not using sudo, I get one message more: "error: flag provided but not defined: -y"17:57
mgzcargill: just proposed https://codereview.appspot.com/68180045 which should make that flag hint clearer18:03
mgzcargill: on the actual issue, is it related to the test being run at all? if you just have an empty tests/ dir does it still complain?18:06
cargillwith tests/ empty it refuses to run before anything else18:08
mgzhow about with a file in there that's basically a noop?18:08
mgz(I'm not actually sure where the test command in implemented or what it does exactly)18:09
cargillas soon as there is a file with +x: "ERROR environment is already bootstrapped"18:12
cargillbut the environment does not exist anymore and juju destroy-environment local cannot really do anything: "ERROR state/api: websocket.Dial wss://10.0.3.1:17070/: dial tcp 10.0.3.1:17070: connection refused"18:13
cargillok, the environment actually might partly be with destroying environments as well? If I set up another environment, then try to use it, I get the following http://pastebin.ubuntu.com/7001148/18:19
cargills/environment/problem/18:20
marcoceppidpb1: lgtm, I have another release of charm-tools landing before friday, this will be in that release18:24
=== timrc is now known as timrc-afk
cargillI'll need to go soon, should I report this under juju-core or elsewhere?18:29
lazyPowermarcoceppi: cargill is getting strange output from juju test, sounds like a charm-tools bug more so than juju right?18:33
* marcoceppi reads scroll back18:33
lazyPowercargill: i got a bit preoccupied. I'll continue working with vagrant and the current quickstart vagrant box. ping me when you're around next and i'll follow up18:33
marcoceppilazyPower: cargill it looks like the version of juju you're using doesn't support the -y flag for destroy-environment18:34
marcoceppibutttt, you have 1.17.3 so....18:34
marcoceppinot sure what is going on there.18:34
marcoceppicargill: when you run juju test, use this combination instead `juju test -v -e another`18:36
marcoceppiand then post the output18:36
cargillmarcoceppi: when I run "juju destroy-environment -y local" I get a failure and this "ERROR no CA certificate in environment configuration"18:37
* marcoceppi makes sure there's no weird regression in 1.17.318:37
marcoceppicargill: interesting18:37
cargillwith "juju destroy-environment -y --force another" two lines of "ERROR exit status 1"18:37
cargillafter that "juju --debug test  -e another" gives "ERROR cannot use 37017 as state port, already in use"18:38
marcoceppicargill: can you file a bug against charm-tools about destroy-environment needs to continue even if the destroy command fails?18:38
marcoceppicargill: oh18:38
marcoceppitry sudo juju destroy-environment18:38
cargilljust one line of the same18:38
cargilland no change in juju test result/output18:39
cargillI can start over but that's what I've just done twice, so either I'm doing something wrong with the upgrade or somewhere else18:40
cargilland this is a vagrant box I've downloaded today as well to make sure nothing else is funky18:41
marcoceppicargill: well, the upgrade goes from needing sudo to not needing sudo18:41
marcoceppiwhich is likely causing all sorts of permission issues18:41
dpb1marcoceppi: excellent18:42
=== timrc-afk is now known as timrc
=== psivaa is now known as psivaa-afk
cargillwell, what I've done: get the vagrant box running, install amulet, charm-tools, sudo destroy evn local, switch repo to /devel, upgrade juju, run juju test -e local, and only then started with all sorts of stuff18:44
cargillto try and get it running based on the error messages and suggestions here18:45
marcoceppicargill: I think we may just need to use a fresh box that has 1.17 installed18:45
marcoceppilazyPower: did you poke at that saucy->trusty cloudimg thing? just curious18:46
lazyPowerI'm actually working that now18:46
lazyPoweri have a new branch brewing on the vagrant repository for it18:46
cargillis there one for vagrant? I'm on debian and just debootstrapping ubuntu does not seem juju compatible, looks like it needs some upstart magic18:47
cargilland my init is not upstart18:47
cargillor maybe something with cgroups18:48
=== CyberJacob|Away is now known as CyberJacob
lazyPowercargill: there's a juju quickstart vagrant image. I have a working unit for test execution that is homebrewed with veewee, the box size again is 801mb though18:48
lazyPowerso its a hefty size hit for test execution, right now i'm working through getting our current quickstart image patched to work as a testing appliance so you dont need to leave your native OS for running quick tests during your devel cycle.18:49
cargillI don't mind the box size as long as it's happy with 1GiB of RAM, have only 4 available and just firefox is already hogging 1.5 of that :)18:50
lazyPowerhttps://github.com/chuckbutler/juju-vagrant18:50
lazyPoweri welcome all bugs, patches, complaints, etc.18:51
lazyPowerits an active WIP18:51
cargill"STOP If you haven't installed charm-tools on your development machine": does that mean it needs an ubuntu host?18:52
lazyPoweronly if you want to use the generators18:52
lazyPowerits for charm add tests18:53
lazyPowerbut not strictly required18:53
cargillso running this in $CHARM_DIR will start testing that charm, and if a debugger/shell/... kicks in during the test, I will be able to control that as well?19:01
cargilllazyPower: ok, I need to run now, the image is still downloading, so I'll see where it is in the morning, should be here until ~5 GMT tomorrow, is that still early morning for you?19:11
lazyPowerIt is.19:12
lazyPowerhowever, my bnc catches all messages. so feel free to ping me here if you need anything.19:13
lazyPowerand the github issue tracker works equally as well :)19:13
cargillok, thanks for your help19:13
lazyPoweranytime. Let me know how you get along with the box. it hasn't been tested on debian yet.19:13
lazyPoweralso, quick note, can you tell me what version of vagrant you will be using?19:14
cargillI just need to get going on the charm tests, which have been nothing but pain so far :) if this gets them going, I'll be glad to help getting it work19:17
cargilllazyPower: Vagrant 1.4.319:17
lazyPowercargill: i'm using it for my charm testing, which seems to be going well. So i'm happy to help you get them going.19:17
lazyPowerawesome, thats recent19:17
lazyPower+1 should be g2g after the box is downloaded19:17
cargill+1?19:17
lazyPowerit gets my stamp of approval19:18
cargillah, great, see you19:18
lazyPowertake care19:18
lazyPowermarcoceppi: after running do-dist-upgrade (which took 22 minutes from start to finish in the box w/ 1gb of memory) - it seems to have solved the shared folder issue, however exporting the box yields a 1.9GB vmdk19:38
marcoceppilazyPower: bahhhhh19:38
lazyPowerso its not an ideal solution19:38
dpb1Hi, in 1.17+, how can increase verbosity of the juju logging?  It seems to leave out DEBUG now by default19:38
lazyPowerseems like we are riding the right path with the build. I'm going to keep poking around until I find a way to reduce the overall size of that box.19:38
lazyPoweri've found some scripts that will help trim it down and optimize it, but I dont thin ki'll get one as small as the cloud images unless someone wants to share the secret sauce19:39
lazyPowerand we wont be waiting that long until the new cloud images get pressed for trusty, so it may just be beneficial to wait19:39
marcoceppilazyPower: we should gang up on utlemming and find out when there will be trusty cloud images19:39
lazyPowerrabble rabble rabble!19:39
=== cmagina_ is now known as cmagina
=== freeflying_away is now known as freeflying
=== freeflying_away is now known as freeflying
=== zz_mwhudson is now known as mwhudson
=== smoser` is now known as smoser
=== hatch_ is now known as hatch
danob_i am getting this error "ERROR cannot get latest charm revision: charm not found in "/carh/path": local:precise/charmname" my charm do not have any revision file in it22:00
danob_i am getting this with charm proof "I: relation website has no hooks"22:05
danob_i do not need any relation22:06
danob_can i make a charm with out any relation hook?22:06
=== CyberJacob is now known as CyberJacob|Away
danob_marcoceppi: https://bugs.launchpad.net/juju-core/+bug/1129319 will this bug resolve if i use hard link temporally22:14
_mup_Bug #1129319: Local charm deployment not working if symlinks are used <juju-core:Fix Released by fwereade> <https://launchpad.net/bugs/1129319>22:14
danob__mup_: will hard link work?22:16
danob__mup_: hard link has the same problem (bug)22:22
=== danob_ is now known as danob
marcoceppidanob: I think hardlinks should work22:24
danobmarcoceppi: I just tried its not working :(22:25
danobmarcoceppi: will this bug fix within next update?22:27
marcoceppiit's fix released, as of 1.13.022:27
marcoceppiso it should be working, if there's a regression a new bug should be opened22:27
danobmarcoceppi: i am getting this "I: relation website has no hooks" with charm proof, is this is the reason?22:32
marcoceppidanob: no, the I is informational, saying you might need to have a hook, but it's not a blocker and can be ingored22:33
danobmarcoceppi: hmm :) my juju-core version is 1.16.622:36
danobmarcoceppi: then why i am getting this error "ERROR cannot get latest charm revision: charm not found in "/carh/path": local:precise/charmname" ? need help22:37
=== thumper is now known as thumper-gym
danobmarcoceppi: this is my debug output https://gist.github.com/anonymous/47255921f3d123f646e023:23
marcoceppidanob: does /home/danob/juju/localcharms/xxxx exist? where xxx is your charm?23:31
danobmarcoceppi: yes my charm :)23:32
danobmarcoceppi: it exists23:33
danobmarcoceppi: i mean i am hiding my charm name by xxxx23:34
danobmarcoceppi: though it just test charm23:36
marcoceppidanob: right, so is there a revision file in that charm?23:37
danobno23:37
marcoceppiOH23:37
marcoceppidanob: in localcharms, create a precise directory23:37
marcoceppidanob: then put the charm in that23:37
marcoceppithen run the command again23:37
marcoceppithat should fix it23:37
danobmarcoceppi: ok23:38
danobmarcoceppi: no getting same ERROR23:43
marcoceppidanob: create a revision file in the charm and put a 0 in it23:43
danobmarcoceppi: my command is $juju deploy --repository=. local:oxrp23:43
danobok23:43
marcoceppiand where is "." ?23:46
marcoceppilike . should be localcharms directory23:46
danobmarcoceppi: yes it is in localcharm23:47
danobmarcoceppi: revision file created in ixrp charm dir23:50
danobmarcoceppi: inside it i place 023:51
danobmarcoceppi: oh man it is working worked23:53
danobmarcoceppi: thank you very much :)23:53
danobmarcoceppi: thanks man :)23:53
marcoceppidanob: np, I'll file a bug that if there's not a revision file, juju should create one on first deploy23:54
danobmarcoceppi: my first ixrp charm is deploying :)23:54
danobmarcoceppi: yes report it, will be awesome23:56

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