m_3 | dazz: o/ | 00:00 |
---|---|---|
dazz | SO! I've been tasked to learn myself some juju. Using a local environment. All was well for the first deploy of wordpress/mysql - awesome. Killed that environment. Tried to write my own charm. Got stuff installing. Killed that environment, now I can't get anything out of a state: pending.... | 00:01 |
dazz | where would you suggest I go to find why nothing seems to be happening? | 00:01 |
dazz | I'm getting feedback from debug-log - started service unit wordpress/0 - but juju status is still pending? | 00:02 |
m_3 | dazz: so local provider can be a little quirky atm... we're workign to fix that | 00:05 |
dazz | kk. So it's nothing that can be helped at the moment. | 00:05 |
m_3 | what I'd recommend in the mean time is wiping your lxc cache when you see strange things happening | 00:05 |
dazz | hokaydokay | 00:05 |
m_3 | make sure you start with a 'juju destroy-environment' | 00:06 |
m_3 | then once everything's down, you can wipe /var/lib/lxc | 00:06 |
dazz | nothing seems to be present in /var/lib/lxc... | 00:06 |
m_3 | hmmm... | 00:07 |
dazz | should juju always be run as root in this event? | 00:07 |
dazz | maybe it's a permission thing / not getting sudo where required | 00:07 |
m_3 | well then I'd go through another cycle of 'juju bootstrap' and then deploy something | 00:07 |
dazz | should I try as root? | 00:07 |
m_3 | so juju should be run as a user, but it'll ask for sudo password when it needs it | 00:07 |
m_3 | better as a user | 00:07 |
dazz | yeah cool. Thought as much | 00:08 |
m_3 | try a 'groups' as the user | 00:08 |
m_3 | make sure you see libvirtd | 00:08 |
m_3 | try 'virsh net-list --all' | 00:08 |
m_3 | should see 'default' and it should be active | 00:08 |
dazz | yeap | 00:08 |
dazz | confirmed both those | 00:08 |
m_3 | ok, then bootstrap and deploy something | 00:08 |
m_3 | during the first deploy, it's gonna sit in 'pending' state for a _long_ time | 00:09 |
m_3 | (it's installing an operating system template) | 00:09 |
m_3 | once you've successfully got something like mysql in a 'started' state, then subsequent deploys _should_ go quicker | 00:09 |
dazz | roughly how long is a "long" time? | 00:10 |
m_3 | (it'll cache the machine template in /var/lib/lxc) | 00:10 |
dazz | 15-20 minutes? | 00:10 |
m_3 | yeah... depends on your connection | 00:10 |
dazz | excellent. Cheers. | 00:10 |
dazz | I know the first time was about 5-10 minutes. | 00:10 |
m_3 | I'd worry if it takes more than 30mins... typically 10 for me I guess | 00:10 |
dazz | cool cool | 00:10 |
dazz | Is there a way to get feedback on it's current deployment? | 00:11 |
m_3 | don't know the best way to see that with the local provider... lemme poke around | 00:11 |
m_3 | dazz: so there're some lxc tools 'lxc-'<hit tab> and then some logs that go into your 'data-dir' configured in your .juju/environments.yaml | 00:15 |
dazz | what is roots passwords for the containers? Default toor for lxc doesn't seem to work. | 00:19 |
dazz | does it use an environment setting? | 00:19 |
dazz | mysql seems to be running | 00:19 |
dazz | I can query it. the mysqld service is not running however. | 00:20 |
m_3 | dazz: does it show 'started'? if so, you should be able to 'juju ssh mysql/0' | 00:20 |
m_3 | it'll pick up your primary key | 00:21 |
dazz | juju reports that it's waiting for the unit to come up | 00:21 |
dazz | but lxc suggests it's already running | 00:21 |
m_3 | ok, sounds good... the unit will take a bit once the machine is up to install msyql packages and actually run the charm | 00:22 |
dazz | hokay-dokay | 00:22 |
dazz | so rule number one - don't destroy the environments | 00:23 |
dazz | remove the units | 00:23 |
dazz | <_< | 00:23 |
m_3 | you can ssh directly to the machine once it's running 'ssh -lubuntu 192.168.122.xxx' | 00:24 |
m_3 | rule number one is to wait that first time for a full cache to be built... that happens a lot | 00:24 |
m_3 | we've got some bugs open to better inform users what the heck is going on | 00:25 |
m_3 | it's totally confusing and seems like it's jammed | 00:25 |
dazz | juju seems really awesome - but it's current documentation is pretty limited. | 00:25 |
m_3 | yup | 00:25 |
dazz | so "long time" and... lol. 10 minutes is long for me XD | 00:25 |
dazz | I must have done something the first couple of times when deploying the charms... | 00:26 |
m_3 | we're working hard to fix that | 00:26 |
dazz | no it's okay :) That's what now-informed-users are for. | 00:26 |
m_3 | ha! | 00:26 |
m_3 | yeah, the next release is a long-term-support one, so it's gotta be cleaned up by then | 00:27 |
* m_3 bbaib... (coffeeshop -> home) | 00:29 | |
dazz | cheers sir! | 00:30 |
dazz | o/ | 00:30 |
m_3 | dazz: on the way home I realized I told you the wrong cache to clear... it's /var/cache/lxc and not /var/lib/lxc | 00:47 |
dazz | ah ha | 00:47 |
dazz | let me try that. | 00:47 |
m_3 | so if things still aren't good, I'd destroy the environment, wipe that cache, then try again | 00:47 |
dazz | cause it's still stalled. | 00:47 |
dazz | cheers! | 00:47 |
m_3 | sorry | 00:47 |
dazz | it's all good. | 00:47 |
SpamapS | dazz: there's a bug that will cause it to wait forever on a failed instance... | 01:01 |
SpamapS | dazz: do you see an 'lxc-wait' running? | 01:02 |
dazz | not at the moment | 01:03 |
dazz | I see lxc-create | 01:03 |
dazz | it's probably working better at the moment since I've deleted that cache. | 01:04 |
dazz | as in debug-log I see it creating. I haven't been posted "ready" yet. | 01:04 |
dazz | was just going to have a shower, come back and see how it's going | 01:05 |
dazz | when is the long-term support of juju being released? In 3-6 months or something like that? | 01:05 |
SpamapS | Along with 12.04 | 01:10 |
SpamapS | Though I expect quality will continue to improve well after that. :) | 01:10 |
* SpamapS disappears | 01:11 | |
dazz | o/ SpamapS | 01:20 |
dazz | cheers | 01:21 |
dazz | bad file descriptor while attempting to start the containers.... | 02:08 |
dazz | ooo | 02:09 |
dazz | shit be happening | 02:09 |
dazz | lol | 02:09 |
dazz | m_3: you about good sir? How does one debug the db-relation-changed process? | 03:23 |
dazz | oh.... appears while debugging you hold commands back.... hang 2. Think I'm okay. | 03:24 |
SpamapS | dazz: juju debug-hooks | 03:24 |
SpamapS | dazz: opens a tmux window with the name of the hook you are meant to run | 03:25 |
dazz | yes but when you catch lets say, a db-change and a new terminal opens... changes don't happen (like, updating the charm or another db-relation-change) until that window is closed. | 03:25 |
dazz | or so it appears. | 03:25 |
SpamapS | right | 03:25 |
SpamapS | thats the entire point. :) | 03:25 |
dazz | yeah I missed that <_< | 03:25 |
dazz | so I was screaming why -x wasn't working | 03:26 |
dazz | when a new tmux window is opened, am I meant to be seeing output of what's going on in my script? | 03:27 |
SpamapS | no you're meant to run your script | 03:29 |
SpamapS | or pretend to run it and do something else.. | 03:29 |
SpamapS | its pausing just before execution, and will respect the return code of your shell (so if you 'exit 1' during an install hook, then your service will be in state: install_error) | 03:30 |
dazz | fantastic | 03:30 |
dazz | ! | 03:30 |
dazz | !!!! | 03:30 |
dazz | lol | 03:30 |
dazz | awesome - so - I can only do the script - while in that state. | 03:30 |
SpamapS | right, thats the idea | 03:30 |
dazz | re: when I was trying ./db-relation-changed I was probably in db-relation-joined | 03:30 |
dazz | cheers | 03:30 |
dazz | yeap | 03:30 |
dazz | getting it | 03:30 |
dazz | man I am so documenting all of this | 03:31 |
SpamapS | https://juju.ubuntu.com/docs/write-charm.html#debugging-hooks | 03:32 |
SpamapS | good luck | 03:32 |
* SpamapS goes off to do family stuff | 03:32 | |
dazz | cheers again sir | 03:33 |
dazz | so, is it possible to have two databases on the one mysql unit? | 05:42 |
niemeyer | Morning! | 11:24 |
=== koolhead11 is now known as koolhead17 | ||
rog | niemeyer: yo! | 11:44 |
mpl | hello gustavo | 12:29 |
andrewsmedina | hi | 13:04 |
lynxman | nijaba: Hey nijaba, what was the charm that you wrote that uses certificate transfer between charms? | 13:24 |
lynxman | nijaba: nevermind found it | 14:24 |
lynxman | when you do a juju charmname set var=something it calls config-changed right? | 15:26 |
marcoceppi | lynxman: Correct | 15:27 |
lynxman | marcoceppi: cool. thanks :) | 15:27 |
_markh_ | I'm new to juju - have a basic question. I understand juju works with LXC ( http://cloud.ubuntu.com/2011/09/juju-in-11-10-beta2-lxc-and-openstack-improvements/ ), but it's not clear to me whether that behaviour made it into oneiric. I'm also having trouble tracking down how I'd go about telling deploy to use LXC rather than Amazon ECS. Is there some fairly complete documentation somewhere? | 15:30 |
koolhead17 | _markh_: askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage might help | 15:32 |
_markh_ | Thx | 15:46 |
hazmat | argh.. digging out this twisted regression is definitely like being a rat in a maze | 16:54 |
jimbaker | hazmat, in twisted itself? | 16:56 |
hazmat | jimbaker, yeah.. some sort of change to ssl handling had a regression from 11.0 to 11.1 wrt to juju's usage for orchestra provider storage usage | 16:57 |
jimbaker | hazmat, got the scope | 16:57 |
hazmat | i tried treating the sympton which gets most of the tests working except some which just hang.. just digging through the changelog and while its germaine its not realy clearly what's the operational change.. http://twistedmatrix.com/Releases/Twisted/11.1/NEWS.txt | 16:58 |
secbrid | chaps when i run juju status -e sample the output seems to be yaml parse-able , however the command also spits out the INFO section so that if i parse the output to python and run print yaml.load(status_command_output) it errors on the last line. Is there a way to output in pure yaml or without the INFO status line? | 17:09 |
hazmat | secbrid, afaicr it should log on stderr and output on stdout | 17:11 |
hazmat | if not then it should get a bug report | 17:11 |
secbrid | ooh riight!! excellent! thanks hazmat will check that now | 17:11 |
SpamapS | indeed, logs are on stderr over here | 17:28 |
secbrid | nice that works when i separate out the streams. thanks guys | 18:05 |
m_3 | lp:charm is now lp:charms | 19:51 |
m_3 | change your push branches accordingly (i.e., lp:~mark-mims/charms/oneiric/mycharm/trunk) | 19:52 |
SpamapS | bzr pull --remember lp:charms/foo works | 20:10 |
poolie | you'll need to re-set the push location separately | 20:10 |
SpamapS | is there a way to do that without calling push --remember ? | 20:11 |
SpamapS | reconfigure doesn't seem to have an option | 20:11 |
SpamapS | poolie: ? | 20:11 |
poolie | vi .bzr/branch.conf | 20:14 |
poolie | or i think maybe bzr configure | 20:14 |
poolie | bzr config push_location=lp:.... | 20:15 |
SpamapS | perfect | 20:15 |
SpamapS | oh and that makes extracting the current values cleaner too | 20:15 |
* SpamapS de-awks his script | 20:15 | |
m_3 | does that make it less awk-ward? | 20:16 |
SpamapS | less tawk more rawk | 20:17 |
m_3 | wow, it's just stand-up night in the channel | 20:19 |
koolhead17 | is someone doing something at http://charms.kapilt.com/charms | 21:05 |
koolhead17 | i see charms being repeated in the list | 21:06 |
koolhead17 | jcastro: sir if you have time check at my merge request :) | 21:06 |
m_3 | koolhead17: I think jcastro is traveling right now | 21:07 |
koolhead17 | m_3: ooh okey. | 21:07 |
m_3 | koolhead17: also we've made some changes to launchpad that'll cause problems for all charm-related tools | 21:08 |
m_3 | fixes in progress, but it'll probably leak into the weekend for some tools | 21:08 |
koolhead17 | m_3: np. i just saw so was bit confused. | 21:08 |
SpamapS | hazmat: I suspect charms.kapilt.com needs to be redirected at the new lp:charms | 21:09 |
SpamapS | oh looks like it was, but something else caused the dupes | 21:10 |
hazmat | hmm, haven't addressed it at all | 21:12 |
hazmat | curious how it handles ;-) | 21:12 |
hazmat | ah.. dups everything because it keeps historical values | 21:12 |
hazmat | on the notion that once published ... well its published and possibly installed | 21:13 |
hazmat | i'll reset it | 21:13 |
SpamapS | hazmat: how long should it take to refresh? | 21:54 |
m_3 | SpamapS: looks like it's refreshed | 22:01 |
hazmat | yeah.. should be good now | 22:02 |
SpamapS | ah ok it wasn't at 13:54, done now. :) | 22:05 |
SpamapS | hazmat: thanks! | 22:05 |
SpamapS | doh | 22:06 |
* SpamapS now knows what its like to try and inhale about 0.5oz of sugar free red bull | 22:07 | |
SpamapS | swallowing + laughing == near death experience | 22:07 |
hazmat | SpamapS, a cautionary tale ? ;-) | 22:10 |
SpamapS | The Curse of The Caffeine Addicted Hacker | 22:11 |
avoine | hehe | 22:13 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!