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

Tugso I tried to deploy the "mongodb-cluster" in a vagrant vm, how can I check that it's up and running ?00:43
TugI cannot ssh to the mongos unit00:43
Tugvagrant@vagrant-ubuntu-precise-64:~$ juju ssh mongos/000:43
TugERROR unit "mongos/0" has no public address00:43
sarnoldhave you exposed the unit?00:43
sarnolds/unit/service/00:43
Tugyes00:43
sarnoldcan you connect a mongo client to the address specified?00:43
Tugusing the web ui first00:43
Tugthen with juju expose mongos00:44
Tugsarnold, which address are you talking about ?00:45
Tug(my machine is really unstable atm, but I can understand as the vm runs 13 units)00:46
davecheneysarnold: this is different00:47
davecheneyopen-port / juju expose is for network connections of the service00:47
davecheneyjuju ssh, ewll, ssh's to that unit00:47
davecheneybut it looks like there is no public address available00:48
davecheneyso it cannot route to that machine00:48
davecheneyTug: you could try, juju ssh $THE NUMBER OF THE MACHINE00:48
sarnoldwhich could be if using the local provider (lxc), right?00:48
davecheneylook in juju status00:48
sarnold(at least I think I heard 'juju ssh' doesn't work with lxc..)00:48
davecheneysarnold: i'm not sure qhat 'deplou in a vagrant vm' means in the context of juju00:48
davecheneysarnold: nah, it works00:48
sarnolddavecheney: oh hooray :) what am I thinking of then? :)00:49
davecheneysarnold: if there is a problem creating hte lxc container00:49
davecheneythen that error is common00:50
davecheneybecause we need hte agent to start up inside the containter to report back the ip addresses it sees00:50
sarnoldahh00:50
Tugplease wait, system is reeeeaaally sloww00:50
Tug$ juju ssh 500:51
TugWarning: Permanently added '10.0.2.15' (ECDSA) to the list of known hosts.00:51
TugPermission denied (publickey,password).00:51
davecheneyok, this is a bit different00:53
marco-travelingdavecheney: sarnold  juju ssh machine number on local does not work00:53
TugIt's my first time using juju so I don't really understand what you are saying ^^00:53
davecheneymarco-traveling: it does00:53
marco-travelingyou have to use unit00:53
Tughte agent ?00:53
marco-travelingdavecheney: that output suggests otherwise00:53
davecheneymarco-traveling: it really really does00:53
marco-travelingdavecheney: when was that fixed?00:53
Tugyes it's on the vagrant documentation page00:53
davecheneyubuntu@winton-02:~/charms/trusty$ juju ssh 1 -- bash -c 'whoami;hostname'00:53
davecheneyubuntu00:53
davecheneyubuntu-local-machine-100:53
davecheneyConnection to 10.0.3.42 closed.00:53
Tugit's supposed to be mongos/000:53
davecheneymarco-traveling: not sure00:54
marco-travelingTug: what does juju status say00:54
davecheneymaybe not fixed in 1.1600:54
davecheneyit's been a long time since I used 1.1600:54
davecheneyabsolutely fixed in 1.17/1800:54
Tugsorry what ? you need my juju version ?00:54
Tug1.16.6-saucy-amd6400:55
marco-travelingokay let's take a Stroo back00:55
sarnoldTug: can you pastebin your juju status output? (the pastebinit program can be quite helpful for using pastebins)00:55
marco-travelingstep*00:55
Tugyep yes wait a bit browser is laggy00:56
Tughttp://pastebin.com/5MfLUWs400:56
Tugso, lot of "pending", is that good ?00:58
marco-travelingTug: it means what you'd expect, things are still being setup00:59
Tugok, thx marco-traveling !01:00
TugIt's been an hour now though01:01
marco-travelingTug: you may have exceeded the limits of the vagrant box01:01
marco-travelingthat's a lot of services01:01
Tugyeah my machine's01:01
Tug*or my machine's01:02
sarnoldoww :)01:02
marco-travelingTug: you might want to try with less units next time01:02
Tugok I'll shut it down now and try in a real cloud01:02
marco-travelingor that01:02
Tugthanks for your help guys01:04
Tug(or girls)01:04
sarnoldhave fun Tug :)01:04
TugI will sarnold, I will01:05
=== marco-traveling is now known as marcoceppi
=== CyberJacob is now known as CyberJacob|Away
marcoceppiwell I'll be damned, davecheney 1.17.5 fixes juju ssh <machine>01:22
marcoceppiI'll make sure the next version of the docs have that caveat removed \o/01:22
marcoceppidavecheney: I just double checked all the release notes, I didn't see it mentioned :\01:27
davecheneymarcoceppi: emoji crying01:31
=== vladk|offline is now known as vladk
bloodearnest\o/04:59
bloodearnestlxc-clone: true baby!04:59
=== vladk is now known as vladk|away
=== vladk|away is now known as vladk
bloodearnestoh boy, lxc cloning is a game changed. 10 machines in 10s05:33
bloodearnests/changed/changer05:33
=== vladk is now known as vladk|away
=== vladk|away is now known as vladk
=== CyberJacob|Away is now known as CyberJacob
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
gsamfiraHey there folks. Quick question: Is there any way to force remove a unit in dying state?10:08
gsamfirawithout clobbering the machine preferably :)10:09
=== vladk is now known as vladk|lunch
=== psivaa_ is now known as psivaa
gsamfiranever mind. Apparently if a machine agent gets interrupted while killing a unit and doesn't manage to report back, it can't recover. It only checks if life == params.Dead11:35
gsamfiraand not ==params.Dying11:35
TugI try to understand juju's best practices12:06
Tugso if I get it right, the documentation say I should not write a charm to deploy my application12:06
TugIt's unclear to me how I can configure the whole machine then12:10
Tugfor instance, at the moment I have a bash script which copies a nginx.conf which points to a specific path to serve static files and to specific ports where my node.js app is running12:11
Tugplus nginx is doing extra work like handling ssl, etc12:11
Tugwhat should I get started on to port this to juju ?12:12
=== vladk|lunch is now known as vladk
marcoceppiTug: what do you mean? charms should do whatever they need to in order to set up your service12:27
Tugmarcoceppi, ok, then I don't understand where I can set the configuration for the nginx charm12:30
marcoceppidon't use the nginx charm, just have your charm install ngimx and configure it12:31
Tugmarcoceppi, ok so I do need to write a charm12:31
marcoceppiyes, it sounds like it. the ngomx charm is more of a microcache + loadbalancer12:33
TugI don't know, is it common to write your own charm ?12:33
marcoceppivery12:33
Tugor is it supposed to be for service only12:33
Tugok12:33
marcoceppiapt-get is for packages, charms are for deployments12:33
Tugso to get started, I can just write a charm which executes my bootstrap script12:34
marcoceppiif you want to think of it like that12:34
TugI see12:34
marcoceppiwhat bootstrap script?12:34
Tugthe one I'm using atm to configure a new machine, it's just a bash script12:35
marcoceppioh, the yes, basically12:35
marcoceppibleh, sorry, my swipe keyboard is just not hacking it this morning.12:36
zchanderping marcoceppi12:36
Tugalright, thx marcoceppi12:36
marcoceppiTug: if you have a script, you basically have like 85-90% of a charm. You might need to tweak it a bit to work with configurations so you can pass configuration variables to the charm, handle relations, etc12:37
marcoceppizchander: o/12:37
zchanderGood afternoon (it is here, at least ;) )12:37
overm1ndfor me it would be useful to have a general charm for example to add a php virtual host to apache service12:37
overm1ndi'm just new to juju12:37
overm1ndI will try to write my own and experiment12:38
zchanderMay I bother you (again) with a 'noob' question? I am trying to deploy Ceph on my MaaS, with Juju. So far, I have managed to get Ceph running, with storage, but how can I make this available through e.g. NFS (or something similar)12:38
marcoceppioverm1nd: that's not a bad idea, it opens some issues, like some php applications require specific packages, etc, but having a generic php container charm (like we do for tomcat) would be cool12:39
marcoceppioverm1nd: we have similar examples for rails, node.js, and tomcat* I'd be happy to help answer questions if you want to try to tackle that though12:39
=== cmagina-away is now known as cmagina
overm1ndthx marcoceppi, I think it's a very common deployment12:40
marcoceppizchander: so, ceph charm exposes a ceph-client interface that you can communicate with from your charm12:41
marcoceppizchander: there's an example of how to communicate with ceph in your charm in this example (non-working) charm: http://manage.jujucharms.com/~james-page/quantal/ceph-client12:41
overm1ndin the docs I cannot find the answer to a simple question12:42
marcoceppioverm1nd: PHP is a /very/ popular deployment strategy in this day and age of the web. having something like a charm which installed php5-fpm, nginx, etc and configured it with the abiility to co-locate multiple php apps would be really nice12:42
marcoceppioverm1nd: which question is that?12:42
overm1ndhow we can deal with migration of db from a machine to another?12:43
marcoceppioverm1nd: as in, you deploy a database charm, and want to migrate the database on it to another deployment of that database charm?12:43
overm1ndexactly12:43
marcoceppioverm1nd: well, that varies depending on the charm12:44
overm1ndsuppouse a forum like discourse12:44
zchanderGoing to have a look at that. The reason I asked this, The OwnCloud charm only accepts NFS as shared storage.12:44
marcoceppioverm1nd: the postgresql charm, for example, contains information in the README about how to achieve this12:44
overm1nd(by the way I really appreciated your work)12:44
marcoceppizchander: ah, adding ceph as an option would be really awesome12:44
overm1ndthx marcoceppi I will dig in to this12:45
marcoceppioverm1nd: oh dear, sorry you're using that charm, it needs a bit of work to be compatible with latest upstream sadly12:45
overm1ndI'm planning to use it12:45
overm1ndnow I'm using the docker from sam12:45
overm1ndbut I would like to move everything on juju12:46
marcoceppioverm1nd: the change isn't that drastic, if you get to it before I do, but ever since Discourse started tracking database settings for production in a different file than database.yml the charm has become broken12:46
marcoceppiI haven't had time to look at it, but someone with time and knowledge of discourse could patch it pretty quickly12:47
overm1ndI will wait :P12:47
marcoceppiThe charm's on github if you want to give it a crack, otherwise I'll try to fix it next week12:47
overm1ndI still need to experiment making my own charm12:47
overm1ndand understand migrations12:48
marcoceppioverm1nd: cool, well if you have any questions while writing your own charm feel free to let us know!12:48
overm1ndthe real value for me is not to have to deploy everything again and again moving from an hosting to another12:48
overm1ndthx your support is precious12:49
marcoceppioverm1nd: so, doing backups up until recently was painful because we had no real way to just run commands against a charm unless we piped them through ssh, now there's a juju run command which lets us just fire arbitrary commands against the environment. So it'd be easy to just say `juju run --unit mysql/0 mysqldump my-db > /tmp/db.sql` then rsync that file to a new mysql server and restore12:50
themonkmarcoceppi: hi12:50
marcoceppinot super sexy as far as commands go, but easier. Charms should start having their readmes updated to reflect this new ability in the near future12:51
marcoceppithemonk: o/12:51
overm1ndthis sounds great12:51
themonkmarcoceppi: in subordinate charm install scripts runs after add-relation ryt?12:51
marcoceppioverm1nd: there's also work on a generic backup charm. So you could just deploy this backup charm to your db service, configure it to put the backups in say s3, then in your new deployment, deplyo the backup charm in a restoration mode and it'll pull the backup from s312:51
overm1ndsounds greater12:52
lazyPowerthemonk: not unless the add-relation script implicitly calls the instal hoook.12:52
marcoceppithemonk: the subordinates install runs first. It follows the same routine a normal charm does, install -> config-changed -> start THEN relation-* hooks, but it only gets added to a service after you run juju add-relation12:52
overm1ndyou guys are doing really good stuff12:52
marcoceppioverm1nd: I'd like to think so :D12:52
themonklazyPower: hi12:53
themonkmarcoceppi: hmm thanks12:54
lazyPowermarcoceppi: is there an env var that juju-deployer can read for local charm store path?13:25
marcoceppilazyPower: no idea13:25
lazyPowerppetraki: ^13:25
marcoceppiJUJU_REPOSITORY is the juju env variable I think13:26
marcoceppilazyPower: why not just make a path to the charm teh branch?13:26
marcoceppiI think deployer does relative paths13:26
ppetrakitried that, maybe I messed it up13:26
ppetrakiactually, nm, I messed up, I had branch paths defined and... found a bug in my local bundler :)13:26
hazmatoverm1nd, ping..13:28
overm1ndhi hazmat13:37
=== psivaa is now known as psivaa-afk
overm1ndwhen you have time I will appreciate your help13:38
hazmatoverm1nd, greetings.. got meetings for the next 3hrs :-( would you have time this afternoon?13:59
hazmater.. relatively afternoon ;-)13:59
hazmatdk13:59
overm1ndyes13:59
hazmati can make some time in an hr13:59
overm1ndjust ping me14:00
hazmatcool14:00
overm1ndthx you very much14:00
zchander:q14:03
* zchander forgot, once more to select the correct window14:04
overm1ndthis mistakes can lead you to big troubles with people :P14:05
TugDoes it matter if I user a System V init script in my charm, or there a reason I should really use upstart ?14:15
marcoceppiTug: you can use whichever makes sense for your14:16
marcoceppiyou*14:16
Tugok :)14:16
marcoceppiTug: there are only a few policies a charm must follow, and that's only if you want it to be in the charm store, otherwise you can pretty much do *anything*14:16
TugI see! that's why almost all charms I saw used upstart ?14:17
marcoceppiTug: well, upstart is the Ubuntu init system, so people writing charms typically target them to Ubuntu hence the upstart script. But there are charms that create init.d systemv scripts instead14:18
marcoceppiit's all up to the charm authors preferences, upstart is not a required charm store policy14:18
marcoceppiTug: this is the policy, btw, https://juju.ubuntu.com/docs/authors-charm-policy.html14:18
Tugok cool, I was just checking I wasn't missing out on big features14:18
marcoceppiTug: again, that's just if you want it in the charm store, if it's just for personal use  you can do whatever you like14:19
Tugalright14:20
Tugthx, you're being really helpful14:20
=== psivaa-afk is now known as psivaa
Tugsomething I don't get in node-app charm: the `app_user` config parameter defaults to `ubuntu` but I don't see the script trying to create the user14:42
TugI don't think `ubuntu` is a default user, so how is it going to work out of the box ?14:45
marcoceppiTug: the ubuntu user is the default user in all Ubuntu Cloud images15:16
Tugok marcoceppi15:17
Tugdoes it have a home ?15:17
marcoceppiTug: yes, /home/ubuntu15:18
Tugok good to know :)15:19
hazmatoverm1nd, pong15:21
overm1ndhi15:22
overm1ndyou asked me 3 question15:23
overm1ndbut How I can log to the juju bootstrap machine if the bootsrap fails?15:23
hazmatoverm1nd, using your ssh key15:28
overm1ndyes of course15:28
overm1ndi connect to the droplet via putty using my ssh-imported key15:28
overm1ndand the key is present in juju/ssh also15:29
overm1ndso this part is working15:29
hazmatoverm1nd, putty means the private key is on your desktop15:31
hazmatoverm1nd, is the private key on the droplet your using as a juju client?15:31
hazmatoverm1nd, can we do a hangout/screenshare?15:31
overm1ndyes is the same key15:32
overm1ndI have it on the docean panel15:32
overm1ndand a file on my desktop for putty15:32
overm1ndwe can do if you like15:32
overm1ndmaybe I'm missing something really stupid15:32
overm1ndin the droplet i'm using to start the boostrap machine15:33
overm1ndi have a file in juju/evnirometnt/local.jenv15:33
overm1ndthe key is also present there15:34
overm1ndyou can't reproduce the problem?15:34
hazmatoverm1nd, the problem is you also need to have it in ~/.ssh of the machine your droplet your using on the client15:39
hazmater... the problem is you also need to have it in ~/.ssh of the machine/droplet your using as the client15:40
overm1ndehm I think I have otherwise I could not connect right?15:40
hazmatoverm1nd, right.. but your saying your connecting with putty from your desktop15:41
hazmatwhich is not the same at all15:41
hazmatthe key has to be accessible to where the ssh client is being run15:41
=== zchander is now known as zchander_at_home
overm1ndguys you rock! thanks hazmat so much for the help!16:17
hazmatoverm1nd, np.. enjoy..  bug/feature suggestions welcome as well.16:18
overm1ndof course I will spread the juju verb16:19
=== cmagina is now known as cmagina-away
=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away
=== vladk is now known as vladk|offline
cjohnstonare there any docs for charm helpers?19:16
marcoceppicjohnston: not yet19:18
cjohnstonawesome19:19
overm1ndguys which is the preferred way to install multiple wordpress site on the same node?19:25
overm1ndI see a lot of charms for wordpress19:26
overm1ndwordpress-mu is still the way to go?19:26
sarnoldactually thikning of wordpress, marcoceppi, is this something that could be fixed in our wordpress charms? :) http://blog.sucuri.net/2014/03/more-than-162000-wordpress-sites-used-for-distributed-denial-of-service-attack.html19:29
marcoceppioverm1nd: wordpress-mu has been built in to wordpress for a while19:30
marcoceppioverm1nd: the charm would need to be reworked, I've been planning to rewrite it for a while but haven't gotten around to ityet19:30
overm1ndI see, this is why I was asking19:31
marcoceppisarnold: good fine, open a bug and I can have default installs disable that19:31
overm1ndmmm, I have a service stuck in dying since 10 minutes19:32
overm1ndis normal?19:32
marcoceppioverm1nd: is the agent-state in error?19:37
marcoceppioverm1nd: to answer your question, no19:37
overm1ndyes19:37
overm1ndfirst deploy ever of mysql failed19:37
overm1ndlol19:37
marcoceppioverm1nd: do, destroy-server requests are queued just like any other19:38
marcoceppiif the service or unit is in an error state, it won't process any events19:38
marcoceppirun juju resolved mysql/019:38
marcoceppito clear the error flag and proceed to the other events19:38
marcoceppioverm1nd: https://juju.ubuntu.com/docs/charms-destroy.html#caveat-dying19:38
overm1ndok19:39
marcoceppioverm1nd: you may have to run resolved several times if more errors occur19:39
overm1ndI did destroy-service before but it was not processing19:39
overm1ndI should read more docs :P19:39
marcoceppioverm1nd: in 1.17.4 and above there's a --force flag that will allow you to remove services bypassing the state of the service/unit19:39
overm1ndok thx19:40
overm1ndworked19:41
overm1ndI was a bit worried about it was not doing anything19:41
overm1ndmmm it's still failing to start19:47
overm1ndbut I have to go now, I will dig in the problem tomorrow, thx for you help19:47
overm1ndsee you19:47
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
TugI'm trying to debug a charm on local20:05
Tug$ juju debug-log20:05
TugPermission denied (publickey,password).20:05
TugERROR exit status 25520:05
Tugsame error as in the vm20:05
lazyPowerTug: local provider right? those logs are actually stored in $HOME/.juju/local/logs20:05
lazyPowerthere's an open bug against debug-log not working properly on local deployments.20:06
Tugok thanks lazyPower, I'm going to check20:06
josehey marcoceppi! I was wondering if you would like to do another openweek session on juju charming20:08
lazyPowerjose: we have our charm school schedule posted on the fridge20:11
lazyPowerhttp://fridge.ubuntu.com/calendars/20:11
joselazyPower: openweek is a different classroom team event, where we have a week full of sessions on how to get involved with the community, see https://wiki.ubuntu.com/UbuntuOpenWeek :)20:13
=== cmagina-away is now known as cmagina
lazyPowerHmm... I'd do that.20:13
lazyPoweran hour long session right?20:13
joseoh, really? that'd be awesome!20:13
joseyep, you get to choose your slot20:13
lazyPowerjose: before i fully commit let me pick a small app to charm20:14
lazyPowerwe'll live-dev a charm20:14
josesure, we can use on-air for that20:14
lazyPowerI'll follow up Monday?20:14
josesure, sounds good20:14
* lazyPower thumbs up20:15
josethank you :)20:15
lazyPowerjose: I'll do a demo charm for Piwik - the open analytics platform20:26
joselazyPower: sounds good! which slot would you like to grab?20:27
joseopen slots are the blanks here https://wiki.ubuntu.com/UbuntuOpenWeek20:27
lazyPower1800UTC on Thursday20:28
lazyPowerjose: Actually, lets go Tuesday. Get it out of the way early20:28
lazyPowerso if you want to do another other juju topics, someone can follow the charm school20:29
joseok, tuesday at 18 utc?20:29
* lazyPower nods20:29
lazyPowersounds good to me20:29
josecool, do you have a wiki page?20:29
lazyPoweri do not20:30
joseok, I'll just link to LP20:30
joseand it's on the schedule now, thanks a lot! :)20:31
Tugsorry I don't get it: http://pastebin.com/y75UbaGS20:35
Tuginstall: line 27: syntax error in conditional expression20:35
Tuglooks like a bash error20:36
Tugbut I can't see any20:36
lazyPowerTug: and line 27 that i see is [[ -x /usr/sbin/nginx ]] || install_nginx20:38
Tugyes20:38
Tugsame syntax as install from node-app charm20:38
lazyPowerhmm20:38
lazyPowerthe syntax looks fine20:39
Tugyeah really weird20:40
lazyPowerwhen you enable the xtrace, is that indeed where its choking?20:41
TugI'll try but I just realized I may have forgot to install juju-local20:42
Tugis there a way to remove the failed service without destroying environment ?20:43
Tugdestroy service set the service to "life: dying"20:44
Tugbut it's not removed from the environment20:44
lazyPowerTug: are you on stable or devel series of juju?20:49
TuglazyPower, xtrace you meant with "set -eux" ?20:49
lazyPoweryeah, adding the x flag.20:49
TuglazyPower, yes20:49
lazyPowerTug: i meant, ar eyou on stable? or are you on devel?20:50
Tug$ juju --version20:50
Tug1.16.6-saucy-amd6420:50
Tugstable I think20:50
lazyPowerok, you dont have the force flag on that version of juju20:50
lazyPower:(20:50
TugI can go to devel if you want20:50
lazyPoweri dont recommend it20:50
lazyPowertheres no upgrade path for deployments made with devel20:50
Tugwhat is the force flag going to dio ?20:51
lazyPoweryou could force destroy the machine, then the service would remove itself20:51
lazyPowerthere's got to be a failed hook in your env if its not clearing itself up and stuck in dying20:51
lazyPoweryou'll have to resolve it using juju resolve service/#  until it goes away.20:51
lazyPowerif its a dependent service, i recommend looking at why it failed on the dependent service20:52
Tugyeah, that's how I'm doing: "juju destroy-environment"20:52
Tugyeah I'm actually debugging it20:53
Tugand it's the bash error20:53
lazyPoweryou cant destroy a service while you're in debug-hooks :|20:53
Tugbut I can't figure it out20:53
lazyPowerthe hook execution doesn't complete until you leave that context, which is why it would be stuck in a dying state.20:53
TugI'm not using degub-hooks20:54
TugI'm on the local provider20:54
Tugso it does not work20:54
TugI'm just tailing the log file20:54
lazyPower... debug-hooks work son local provider last i checked20:54
lazyPowerremoting into my 1.16 farm, 1 moment. I'll validate that statement20:55
Tugoh sorry I was mixing with debug-log20:55
Tugnever tried debug-hooks actually20:55
lazyPoweryeah :) debug-log is bugged atm20:55
lazyPoweroh man its great20:55
lazyPowerrun your hooks in interactive mode to dbug20:55
lazyPowermake live edits to your hooks and re-run them20:56
lazyPowerits actually how i write 3/4 of my charms when i'm prototyping.20:56
Tugok let's try :)20:56
Tugwow!20:57
lazyPowerpretty neat huh?20:57
Tugit logged me in the machine ?20:57
Tugyeah20:57
lazyPoweryeah, you're in an interactive tmux session. as hooks execute, you'll see the context of the tmux session change20:57
lazyPowerso, to run your hooks you just call20:57
lazyPowerhooks/hookname20:57
lazyPower(From within the hook context, that does nothing if you're not in an executing hook context)20:58
Tugmmm20:59
TugHow can I run it again now that it has errored ?20:59
lazyPowerjuju resolved -r service/#21:00
lazyPowerthe -r is shorhand for --retry21:00
Tugso cool !21:01
Tugyeah so I'm back to that bash error ^^21:01
Tugbut it sure is better than tailing logs21:01
lazyPowerTug: start peeling away the layers of complexity21:05
Tugyeah I think the error is misleading21:06
Tuginstall % [[ -x /usr/sbin/nginx ]] || echo "hello"21:06
Tughello21:06
lazyPowerso its in that method21:07
lazyPower?21:07
Tugneither21:07
TugI just copy pasted it in the shell and it worked21:07
lazyPowerhmm21:07
lazyPowerdid you set eux on your shell?21:08
Tugyes21:08
sarnoldhey Tug :)21:08
Tughi sarnold21:08
=== cmagina is now known as cmagina-away
TuglazyPower, how can I resume debugging ?21:27
lazyPowerTug: beg pardon?21:27
TugI want to try again21:28
Tug$ juju resolved -r nirror-front/021:28
TugERROR cannot set resolved mode for unit "nirror-front/0": already resolved21:28
lazyPowerah, well since its in the install hook21:28
lazyPowerand its very difficult to attach to the unit before it kicks off the install hook21:28
lazyPoweri would temporarilly return an exit code > 021:28
lazyPowereg: return 1 from your install hook21:28
lazyPowerthen you can attach to it and repeat the steps21:28
Tugmm, it's marked as installed now21:30
Tugagent-state: installed21:30
lazyPowerdestroy and try again :)21:30
Tugok :)21:30
lazyPowerok, i'm out for now21:42
Tugthanks for your help lazyPower21:42
lazyPowerTug: if you get stuck and nobody's responsive in #juju over the weekend try the list.21:42
Tugok21:42
lazyPowerand no problem :) Happy to help21:43
lazyPowerfeel free to ping me if you need anything21:43
Tugthank you :)21:44
=== zchander is now known as zchander_
Tugis manual provisioning not available in stable version ?22:52
Tug$ juju switch manual22:52
TugERROR "manual" is not a name of an existing defined environment22:52
marcoceppiTug: it is, but you have to edit the environments.yaml file22:56
marcoceppiI think in 1.16 it's called "null" which is dumb22:57
marcoceppijust change "null" to manual22:57
Tugyeah I saw the "null" entry, wonder what it was for22:58
Tugthx marcoceppi I'll do that22:58
=== cmagina-away is now known as cmagina
marcoceppiTug: we renamed null to manual provider22:58
TugI set "bootstrap-user: root" but it's trying to connect using my current user23:04
Tugfound this bug https://bugs.launchpad.net/juju-core/+bug/1280432 it's probably related23:10
_mup_Bug #1280432: manual provider regression on bootstrap-user <manual-provider> <juju-core:New> <https://launchpad.net/bugs/1280432>23:10
blackboxswmarcoceppi, still workin on getting that review through ou team for block-storage-broker charm in shape for charmstore. thanks for the comments. we'll have something merged in next week for that to also include EC2 support and copyright files and I'll ping you on that review23:15
marcoceppiblackboxsw: sweet23:15
=== cmagina is now known as cmagina-away
blackboxswinteresting juju destroy-service question for folks for a principal and subordinate relationship.23:19
blackboxswthe subordinate provides a mounted volume to the principal, and will not unmount that volume until the principal's service is stopped23:19
=== cmagina-away is now known as cmagina
blackboxswbut relation-departed fires first on the subordinate during juju destroy-service principal-service23:19
blackboxswso I'm wondering if there is a way I can make the subordiante's departed hook wait or replay after the principal's23:20
blackboxswthe principal's departed relation will stop the service in question23:20
blackboxswI was wondering if juju-run would give me this functionality from the subordinate (to call the principal's stop hook) but I can't run juju-run from within a hook context23:21
blackboxswjust musing about how to solve the subordinate/principal hook ordering dependency23:22
blackboxswjust a note: juju remove-relation principal-service subordinate-service seems to fire the principal's departed hook 1st, so this didn't cause a problem. just juju destroy-service I think23:23
blackboxswagain it's friday, so I was dropping this bomb out there to see if there were any wild ideas23:23
=== cmagina is now known as cmagina-away

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