=== kadams54-away is now known as kadams54 === kadams54 is now known as kadams54-away === kadams54 is now known as kadams54-away [02:33] How do I approach sending over a masker ssh key to a related slave for the jenkins and jenkins-slave charm? I have taken the follwoing approach and cannot find the documentation of how to access a related unit - https://gist.github.com/slatunje/c357791dcc1b42d4df12 === freeflyi_ is now known as freeflying_ [11:30] gnuoy, could you review - https://code.launchpad.net/~james-page/charm-helpers/lp.1391784/+merge/242422 [11:30] it adds a default backend to all haproxy configurations that will loadbalance over private-address [11:30] yep (otp at the mo) [11:30] gnuoy, ta [11:54] jamespage, unit_test fail [11:54] gnuoy, oh joy [11:55] gnuoy, let me see [11:57] gnuoy, fixed and pushed [11:58] jamespage, merged [11:59] gnuoy, thanks! [11:59] gnuoy, are you ok for me to sync that out to the next charms? [11:59] jamespage, absolutely [12:18] gnuoy, done [13:16] hi [14:05] Is there any charmhelper to run a command as a user? [14:07] marcoceppi: not at present, no. [14:07] lazyPower: ta [14:07] o/ marcoceppi lazyPower [14:07] o/ mwak [14:09] \o mwak [14:13] still fighting with the hadoop charm [14:13] I ve rebuilt hadoop on armhf but still the same issue with hdfs [14:21] mwak: it sounds more like there's an issue with the setup than with the binaries. but I cant really confirm that at present. [14:21] mwak: have you tried a single node setup vs the cluster so there's fewer moving parts to debug? [14:26] lazyPower: you mean juju deploy hadoop and then run the test on the machine? [14:26] right [14:26] ? [14:28] yeah [14:28] mwak: just teh master/slave nodes actually - you'll still need a yarn controller and some computes - so single node is a mosnomer on my part. [14:29] I did, but I just respawn to re-try [14:30] What I did atm is re-built hadoop from the source on an armhf server, edit the charm to use the oracle jdk [14:31] yeah that shouldn't have much effect - it should still work without any issue being java is mostly portable among jre's [14:33] yep but there are .so libraries which were not built for arm. [14:34] very true, the bins they bundle with it [14:35] lazyPower: I have to start it manually when I deploy on a single node? [14:36] mwak: start manually + i think you'll have ot edit the configs to point to the local microservices - as those are not set until relationship exchange [14:36] alright [14:37] it is started! [14:38] interesting [14:38] http://pastebin.com/7DEb6bMG [14:41] mwak: smells like progress to me [14:41] right, but cpu usage is 0% [14:41] :/ [14:41] so the job itself is probably failing to start [14:41] but the microservices are connecting [14:42] yep [14:42] looks like the problem occurs when relation change [14:45] http://212.47.235.30:8088/cluster/app/application_1421159802799_0001 [14:47] gnuoy, know you are probably a busy man, but could you review the MP's on https://bugs.launchpad.net/charms/+source/nova-cloud-controller/+bug/1391784 [14:48] Bug #1391784: HA failure when no IP address is bound to the VIP interface (Juju Charms Collection):In Progress> [14:48] they re-introduce the cidr and iface configurations options as fallbacks for when people want to bind VIP's to subnets which are not also configured as subnets for primary addresses [14:54] dimitern, see the crazy networking stuff that people get up to ^^ [14:54] dimitern, its an edge case but one for which I've had two separate bug reports for [14:58] jamespage, wow :) [14:58] jamespage, is there something juju can do for these short-term? [14:59] dimitern, not really - its an accidental feature that we took away last cycle ... [14:59] dimitern, but it does highlight what things people do [14:59] dimitern, I've categorically never ever deployed an HA solution in that way [14:59] but apparently some people do [15:01] deryck: ! dude [15:01] Hi rick_h_! [15:01] jamespage, I'll have a closer look for educational purposes then :) [15:02] dimitern, sounds like a good idea [15:04] jamespage, approved [15:08] gnuoy, thanks! [15:43] mbruzek: whit: https://pythonhosted.org/charmhelpers/api/charmhelpers.payload.html -- docs on teh execd pattern in charmhelpers [15:53] dannf: landed your arm64 update to mongodb. Thanks for the patience on this one - looks really good, i like the pattern you used to do this too [15:53] lazyPower: ack, thx! [16:00] stub: ping [16:01] Looking over your merge against precise postgres charm - does this warrant additional action against the trusty charm as well when accepted for precise? https://code.launchpad.net/~stub/charms/precise/postgresql/manual-replication/+merge/240556 [16:02] or is this scoped strictly to precise [16:15] hello everyone [16:15] btw mbruzek i landed those arm64 changes. Make sure you sync with master if/when the review you're working on is ready. [16:15] o/ alexis_ [16:16] hello how are you [16:16] lazyPower: the mongodb tests fail for me. [16:16] lazyPower, can you check this pls? https://github.com/juju-solutions/juju-solutions.github.io/pull/21 [16:16] jcastro: need it merged or just asking if it looks right? cuz +1 [16:17] I didn't want to merge it because I wrote it [16:17] That's just nice manners right? But yeah, merge pls. [16:17] done [16:17] :) [16:28] mwak: I'm still a bit confused on the diagnosis of whats wrong. but based on the last pm - you need to restart all the hadoop services and ar easking how to do so? [16:29] cory_fu: ^ [16:29] can you help mwak triage some port binding and service management in the apache hadoop charm [16:29] lazyPower: at the moment I have [16:29] : running the terasort.sh give me the following output [16:29] ubuntu@onlinelabs-d2d614b9ffa944a5bfd0731c3e3bf18d:~$ /usr/local/hadoop/terasort.sh [16:30] rm: `in_dir': No such file or directory [16:30] 15/01/13 16:18:36 INFO client.RMProxy: Connecting to ResourceManager at /10.1.8.72:8032 [16:30] 15/01/13 16:18:38 INFO ipc.Client: Retrying connect to server: onlinelabs-d2d614b9ffa944a5bfd0731c3e3bf18d/10.1.8.72:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS) [16:30] ubuntu@onlinelabs-d2d614b9ffa944a5bfd0731c3e3bf18d:~$ lsof -i | grep 8032 [16:30] java 8997 ubuntu 183u IPv6 13866 0t0 TCP localhost:8032 (LISTEN) [16:30] It looks like there is a bind problem [16:31] curl localhost:8032 -> ok | curl 10.1.8.72:8032 -> refused [16:34] mwak: yeah, seems like its bound to local and not the interface [16:34] mwak: that should be defined in site.xml [16:34] or core-site.xml [16:34] in core-site i have [16:34] hdfs://10.1.8.72:9000 === roadmr is now known as roadmr_afk [16:35] What should I do to bind on the 10.1.8.72 instead 127.0.0.1 [16:35] ? [16:35] which file to edit [16:35] yarn-site.xml [16:35] lazyPower, I get this http://pastebin.ubuntu.com/9731838/ [16:36] Looking for yarn.resourcemanager.address [16:36] mwak: ^ [16:36] jcastro: do you have bundler installed? [16:36] if so, create a Gemfile in your repository and place the following in it: [16:36] That gets populated from either `unit-get private-address` or `relation-get private-address` in the charm, neither of which should return localhost [16:37] lazyPower, yeah [16:37] https://gist.github.com/4ca44ea8c7251d01dadd [16:37] that should get jekyll and all teh required gems [16:37] cory_fu: the address is correct in yarn-site.xml [16:37] 10.1.8.72:8032 [16:37] then bundle exec jekyll serve [16:37] Oo [16:38] Hrm. Actually, now that I think about it, that's probably the wrong end of the config, there [16:38] lazyPower, I get "could not locate Gemfile", but also github isn't generating the page either [16:38] jcastro: let me pull the repo and see whats up, 1 sec. [16:38] this may be environment vs configuration [16:39] cory_fu: hum ok.. [16:39] mwak: Still looking... [16:39] lazyPower, afaict I've followed every instruction exactly. [16:40] cory_fu: FYI all value in yarn-site.xml are binded [16:40] to localhost and not private ip [16:40] jcastro: i've got all kinds of jekyll errors spewing at me atm when i pull wahts in master [16:40] mwak: Wait, what? I thought you said it had the non-localhost IP address? [16:41] sec [16:41] will paste the file [16:41] Ok [16:41] http://pastebin.com/6yB2MnWt [16:41] jcastro: i know why its not generating [16:41] the post layout expects there to be a date [16:42] you need to frontload this with all the data points you would have in a normal blog post [16:42] for post, not pages though right? [16:42] the layout:post is whats telling jekyll waht to load and parse this page content file as [16:42] cory_fu: http://pastebin.com/tnK9rsRw [16:42] 2 options - add the data points to make this like a blog post so it satisfies the liquid variables, or add a layout that strips those variables it wants. [16:42] lazyPower: The PostgreSQL precise and trusty branches are identical, so I'll get them in sync later. [16:43] stub: 10-4, thanks for confirmation [16:43] mwak: That seems correct. Not sure why it would have bound to localhost, then [16:43] lazyPower: Thanks for the review :) [16:43] lazyPower, could I use "default" for the post layout instead of post? [16:44] jcastro: i added a date and it worked as expected [16:44] cory_fu: to restart the master what should I do? run the stop-all.sh / start-all.sh scripts? [16:44] lazyPower, I changed it to "default" and it works now as expected [16:44] lazyPower, thanks for the help [16:44] np [16:45] http://blog.juju.solutions/containers.html [16:45] blam, instant generation [16:46] now to fix the content ... [16:46] hey there lazypower, if you’re into reviewing charms, can I show you one? [16:46] mwak: I imagine that would work, though the charm uses, e.g., su yarn -c '/usr/lib/hadoop/hadoop-2.4.1/sbin/yarn-daemon.sh --config /etc/hadoop/conf.juju stop resourcemanager' [16:47] TheFezzer: is it in the queue? :) we have several in here that have waited their turn to get reviewed. [16:47] hi! i'm trying to write charms using the python charmhelpers. When I ran "charm create -t python mycharm", i got a different structure than expected (no hooks.py, no cham-helpers.yaml). Does anyone have the same problem? [16:47] whit, do you have any kubernetes information I could add to this page? [16:47] adalbas: proibably looking for python-basic [16:47] uhh, i’m not sure I can really do that sort of stuff without a sign-off from Legal. Oracle has /claws/. [16:47] adalbas: the charm create -t python generates a services framework charm. [16:47] jcastro, looking [16:48] TheFezzer: lets take this out of band, if you're working on ISV work we can work something out for you to get regular charm reviews as a partner until its in the queue. [16:48] lazyPower, so i should use charm create -t python-basic instead, is that it? [16:48] s/queue/store/ [16:48] adalbas: give that a go and see if thats what you're looking for. [16:48] lazyPower, thanks! [16:49] lazyPower, unless anyone objects I'm not going to PR work on the team blog, too heavyweight for now, leave that for the posts themselves I figure. [16:50] jcastro: i'm not sure what you're telling me - pr work? OH you mean github pull request? i think we're ok with that for now as you work on those topic pages. [16:50] but i defer to the team, as there's several of us involved in that. [16:50] Ya, I just really want a once-over aka sanity check [16:51] not any sort of serious review [16:51] jcastro, we could add some links I guess, let me get those [16:55] jcastro, https://github.com/kapilt/bundle-kubernetes [16:55] jcastro, that will be the main entry point [16:57] jcastro, should be good to start with [16:57] ta [17:00] http://blog.juju.solutions/containers.html [17:00] ok, now we're cooking! [17:00] aww yeee [17:00] jcastro: might want to link to the docker charm docs as well... [17:00] http://chuckbutler.github.io/docker-charm/ [17:00] yeah, after lunch [17:00] ta [17:00] <--- lunch === roadmr_afk is now known as roadmr [17:04] * marcoceppi lunchy lunch lunch [17:05] cory_fu: don't understand why, but after restart it is the same [17:05] the wrong interface is bind [17:33] mwak: Strange. I'm deploying it now to see if I get the same results, though on aws instead of onlinelabs [17:34] alright [17:34] fyi if i bind on 0.0.0.0 it works [17:34] oO [17:34] all interfaces are listening === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 [18:00] evening all. just started playing with juju on my local machine (desktop) and wanting to know if there is a way to allow other machines on my network to connect to the juju services? I see the juju containers get their own IP address which is different to that of my lan. [18:00] some pointers would be much appreciated. [18:06] I found that the sshuttle instructions for OSX.9 were good [18:06] but the ones for X.10 were better [18:06] also welcome to the club :) [18:07] captine: i have a write up for that 1 moment [18:07] lazyPower, that would be awesome. Thnx [18:07] captine: http://blog.dasroot.net/making-juju-visible-on-your-lan.html [18:07] captine if you do either of those, you can just use the address from juju status or from the unit panel in the gui [18:08] thanks. I will check it now. I want to be able to access some of the services from outside my lan, so as long as I can do some forwarding from the router, it will be perfect. [18:08] nice doc [18:09] :D [18:09] Ta :) [18:21] mwak: Sorry it took so long, but it finally finished deploying. On AWS, everything seems to have bound correctly: http://pastebin.ubuntu.com/9733248/ [18:27] mwak: Also confirmed that the terasort.sh worked. Let me pastebin the exact deploy steps I used [18:27] Regarding MariaDB or MySQL charms is it possible for another charm to create multiple databases without using the db-admin relation? [18:29] mwak: http://pastebin.ubuntu.com/9733381/ [18:29] mgarza: you'd need to use the db-admin relationship [18:30] mgarza: the defaults for the db relationship assume a single db per service that is related [18:30] hey marcoceppi for backporting commits from the trusty version of a prescise charm (w/no tests), what's the procedure wrt review? [18:30] mgarza: it sounds like a possible reason to add another relationship if you want to do an exchange cycle of what the app needs. i'd like to see that chatter back and forth before anything was merged - but i'm def. interested in your take on how it should work. [18:30] whit: open a merge from trusty version to precise [18:30] marcoceppi, thinking of https://code.launchpad.net/~niedbalski/charms/precise/mysql/precise-syncup/+merge/244436 [18:31] marcoceppi, that's been done, I'm asking what I should do re reviewing [18:31] automated test failure is a AWS hiccup [18:32] whit: I'll kick off another test, but that's about it, it's just a normal review. Really just make sure it deploys and works on precise [18:33] marcoceppi, thanks [18:34] will do [18:35] lazyPower: Thanks I just wanted to make sure [18:35] np === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 [18:43] mwak: I can't get onlinelabs to bootstrap, though, so I can't test it there. :/ (Getting prompted for root password, despite having added my juju ssh key via the website. Tips appreciated.) [18:48] cory_fu: you should add your personal id_rsa - as thats what its using to connect for the intial bootstrap [18:48] *id_rsa.pub [18:49] hi lazyPower. I already had some juju instances and have tried following some articles on cleaning my local juju and redoing it, but keep getting the following "ERROR there was an issue examining the environment: cannot use 37017 as state port, already in use" [18:49] when trying to bootstrap again [18:49] cory_fu: gimme a sec [18:50] captine: interesting - are you running something on port 37017? [18:51] captine: if not, it sounds like there may be a stale api-server around, and can you show me a pastebin of the output from initctl --list | grep juju [18:51] sorry, no double tack on the list command: initctl list | grep juju [18:52] no idea. [18:52] i also see my eth0 dissappeared... only have wireless now.. lol. fun learning [18:52] rick_h_: ping [18:53] nothing shows [18:53] just blank [18:55] captine: it sounds like you deleted the upstart job before stoping it [18:56] mmm. not sure i follow (am just a simple accountant playing around :)) [18:56] captine: if you do a `ps -aef | grep juju` [18:56] you should see 0 results [18:56] but you'll probably see a jujud and a mongod running [18:56] i see it is running [18:56] do i do a killall -9 or something? [18:56] captine: kill those processes [18:57] just a kill on each process id (the second colum) is sufficient [18:59] i type "sudo kill xxxx" where xxx is the id. after doing it for each, the ps - aef shows more processes with different id's. Like it is respawning or something [19:00] well thats fun... we're playing chase the pid huh? [19:00] pkill can help obliterate lots of pids :) [19:01] sarnold: why do i never think of this in the hot seat? good insight. [19:01] yip [19:01] cannot type fase enough [19:02] lol. pkill didnt help, unless there is an option i should use [19:03] would they start up after rebooting? [19:03] I can try that [19:04] captine: that might resolve it but i know that hjistorically we placed upstart jobs for the containers [19:04] it also appears some of the upstart dependency concerns have moved as well [19:04] we should see jujud in the listing from initctl [19:04] or we used to [19:04] :) [19:04] change and progress... keeps it interesting [19:04] ahhh ok [19:05] if you sudo, those tasks should show up [19:05] sudo initctl list [19:05] also - i re-read the scrollback and know whats going on [19:05] you did those bridge instructions on a running environment didnt you? [19:05] * lazyPower makes a note to circle back and add that in huge warning text [19:06] sudo works [19:06] ok, can you sudo service juju-db--local stop and run the same on the agent? [19:06] lazyPower, about the running environment... yip, think i did [19:07] that should stop the pids from spawning like crazy [19:07] and then we can go back and triage the environment [19:07] as right now, its in a very inconsistent state [19:07] its using lxcbr0 to communicate according to the jenv, but if you wiped that .jenv file - those lxc containers are still running and panicking that they cannot communicate with the state server [19:08] so we'll need to start from scratch [19:08] if there's any data you have in those containers - we can attach and preserve that info before wiping them - if its all inconsequential stuff all the better that we can have zero concern about whats in those lxc containers [19:09] na [19:09] i was just playing with them [19:09] ok [19:09] no data to save [19:09] so lets confirm we have the processes stopped of jujud [19:11] i couldnt stop the one service "juju-agent-$USER-local start/running, process 7472" [19:11] using the sudo service ... stop, it says it is unrecognized... and I copy pasted it from the service listing [19:11] ok [19:12] so we have a runaway process... can you pkill the zygote in psaux to ensure its been nuked with fire? [19:12] sarnold: does that sound legit? ^ [19:12] juju bootstrap is running now though [19:12] so lets see [19:12] :) [19:12] captine: can you pastebin me the output of sudo lxc ls --fancy? [19:13] captine: i want to see what lxc containers are left around from that old deployment so we can clean those up as well [19:13] lxc: command not found [19:14] lazyPower: the best part about pkill is that you can use e.g. pkill -u sarnold to kill all the processes from one uid.. I suspect it's still racy, but running it a few times might do the job [19:15] sarnold: you probably dont want to pkill everything as the user you're logged in as [19:15] i can see that being the cause of nuking your current session [19:16] captine: sudo lxc-ls - my brain is failing me hard core today on commands [19:16] captine: so to confirm, its sudo lxc-ls --fancy [19:16] lazyPower: oh, sure, but it works also for e.g. juju :) [19:18] agent-state-info: 'cannot run instances: gomaasapi: got error back from server: 409 CONFLICT (No node available.)' how do I trigger a retry? [19:18] http://slexy.org/view/s202HrnQ3K [19:18] jrwren: re-run the bundle deployment [19:18] juju-deployer should pick up where it left off [19:19] lazyPower: *sigh* *grumble* *ugh* :p [19:19] captine: ok, see all those -local-machine-# containers that are stopped? [19:19] lazyPower, do you work for Canonical? how you guys all remember this stuff is beyond me [19:19] i think so [19:19] it says stopped [19:19] juju-deployer does some magic more than just issuing another deploy command? [19:19] captine: you'll want to sudo lxc-destroy --name $name, the juju-$series-lxc-template containers can be left as is - they are used as clones to build the service containers. [19:20] jrwren: i dont know ;) [19:20] jrwren: use deployer though [19:20] thanks a mil. [19:20] will do so [19:20] lazyPower: *grumble* [19:23] jrwren: <3 [19:24] captine: no problem, let me know if you run into any further blockers, and thanks a bunch for circling back that there was an issue - and i need to up date that guide :) [19:27] thanks for the guide. [19:32] do the juju charmhelpers provide a way to execute bash? I'm just doing subprocess.Popen right now. I'm not finding it in the docs [19:32] I'm trying to install rvm [19:35] dalek57: charmhelpers.core has liberal use of subprocess.check_call and subprocess.check_output, which are a bit easier than Popen, if you can get away with using them instead. [19:39] jrwren: well, I have a shell script for installing rvm saved in the charm directory, and I'd like to run it. If I were just doing this as a bash script, I could just do $CHARM_DIR/helpers/install_rvm.sh. Is there a best practice for doing this in python? [19:40] dalek57: I'm guessing call_check is what you want. the differences are what is captures as return values in python. [19:40] or maybe just subprocess.call() [19:46] yeah subprocess is the successor to Popen and family [19:46] dalek57: what jrwren outlined is what i would do. subprocess.call(['scripts','rvm_install.sh']) [19:52] or translate the rvm_install.sh script to python [19:56] or don't use rvm and package the ruby version you want for ubuntu. [19:57] except the ruby version in ubuntu is not the best [19:59] all the more reason to make it better. === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 [20:10] jose: pong, what's up? [20:10] rick_h_: hey! would it be a problem if I push a new docs folder for ES translated ones? [20:10] or would it be preferred to not do it yet? [20:11] jose: hmm, so we're working on a deployment today/tomorrow that will udpate our docs loading [20:11] If you had a change what would be great would be if you had that change in a fork [20:11] jose: and then email us, we'd setup a QA to make sure that your fork worked and upgraded fine from where we're awt now [20:12] jose: and fix any bugs on our end [20:12] jose: and then once we're ready/sure it'll be fine merge your forked branch of the docs into trunk [20:12] jose rick_h_ is there any build process for other languages? [20:12] marcoceppi: no, right now we just follow what you all were doing to build [20:12] marcoceppi: so that's what I want to see, what's in the changes jose is speaking of [20:12] rick_h_: sure - I don't have direct push access. I guess I'll start translating today and will let you know once the branchis ready [20:12] rick_h_: so you're pulling from github or from the bzr branch? [20:12] marcoceppi: from github [20:13] so, in the docs there is an en folder, I'd like to create an es one so I can translate the docs into Spanish [20:13] marcoceppi: so if the org/structure of that process changes we need a heads up to make sure we're ready to follow the change [20:13] if that's not supported I'll hold my horses [20:13] jose: it'll be ignored by the build process [20:13] jose: well fork the docs and do what you will and we'll work on a path to make sure things work and get pulled together [20:13] jose: there's no reason not to start the work and we appreciate the heads up. [20:13] ok, cool [20:13] jose rick_h_ we want to do two additional things and this just reminded me that there's two build processes now [20:14] thanks [20:14] marcoceppi: ok, we talked witht he web team to get docs redirected by the end of the week to jujucharms.com/docs [20:14] marcoceppi: so yea, if we've got changes we need to know and sync up. [20:14] rick_h_: we want to create branches for releases of juju so we can tie docs to versions === roadmr is now known as roadmr_afk [20:15] rick_h_: let me knwo when is a good time to talk about that, it's a git change which won't effect master [20:15] but something we'd like to do [20:15] rick_h_: I'd like to talk to you about possibilties before chit chatting on the list [20:15] or we can do vice versa [20:16] marcoceppi: sure thing, can we setup a call tomorrow? [20:16] rick_h_: yeah, sounds good [20:16] * rick_h_ is out of the office working from the car dealer atm [20:17] marcoceppi: either over lunch or after your standup work best? [20:17] rick_h_: either works [20:18] marcoceppi: ok, sent. let me know if there's anyone else we should invite (nick?) [20:26] rick_h_: probably, we've chatted about this multiple times, but it wouldn't hurt [20:26] marcoceppi: ok added [20:27] rick_h_: this would just be a "is this possible, how would this look" once that's figured out I'll mail the list with the intentions for feedback and go from there [20:27] marcoceppi: sure thing [20:27] we've thought about and made sure it's possible [20:27] marcoceppi: so just have to get down to it === kadams54 is now known as kadams54-away === roadmr_afk is now known as roadmr === kadams54-away is now known as kadams54 === whit_ is now known as Guest64142 === Guest64142 is now known as whit [21:38] Why might subprocess.check_call(("./helpers/rvm.sh && source /etc/profile.d/rvm.sh && rvm install ruby-"+ruby_version).split(), shell=True) create a zombie process, and never complete the installation? [21:40] rvm is installed, but it doesn't get ruby-2.1.3, and when I juju ssh, I'm told that there is 1 zombie process [21:41] dalek57: are you su'ing or re-initializing the shell? [21:41] dalek57: sounds to me like you restarted teh shell and that caused it to tank leaving a zombie process [21:42] lazyPower: does `source` do that? [21:42] depends on what you're sourcing [21:42] cehck the file you're sourcing and make sure it isn't reinitializing the shell. i do beleive that rvm does that [21:42] its fairly heinous like that. [21:43] yeah, ok. Well, when I run the command when I'm sshed in, it completes fine [21:43] would I see side effects of it reinitializing the shell? [21:44] thing is, when you're ssh'd in youre in a shell [21:44] when you reinitialize the shell in subprocess - you're not in a login shell you're in a thread nested inside the python process thats running [21:44] so when you reinitialize teh shell, that thread goes away [21:45] argh, netsplits :( [21:57] hey!! somebody had this error before? https://gist.github.com/anonymous/0a88537322e6b4daa516 [22:06] o/ seal [22:06] er [22:06] hi all [22:07] sorry seal, netsplits are driving me batty with mistargeting people when trying to reply [22:07] sebas5384: o/ [22:07] sebas5384: where did that error origniate? is that coming from your debug-log? [22:07] dalek57: wb - did you get any of my response? [22:08] Is there a way to test the current hook being executed? I have tried if [[ $JUJU_HOOK_NAME == 'config-joined' ]]; then ... fi but this works within debug but fails when running [22:09] I may be wrong, but i think that only gets exported during debug sessions - but marcoceppi may say i'm incorrect. A way to find out seal would be to dump your env at the beginning of the hook for inspection. [22:10] mmm [22:11] I ask since I am extending the jenkins / jenkins-slave within the hook/install.d/* and I need to execute base on the current hook [22:11] I will try the env dump === kadams54 is now known as kadams54-away [22:12] seal: it's possible [22:14] seal: but it's done by getting the basename of argv [22:14] ah I see [22:14] seal: so, basename $0 should give you hook name [22:14] thanks [22:14] will try that [22:15] np, that's how it's done in the Python Charm Helpers [22:15] seal lazyPower: for references: http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/core/hookenv.py#L160 [22:16] marcoceppi: Gracias. i forgot all about that. [22:16] * marcoceppi intensifies hat tipping [22:17] marcoceppi: great tip [22:18] lazyPower: hey! :) [22:18] lazyPower: in the Drupal charm [22:18] from nothing ¬¬ [22:18] sebas5384: that tls error has to be coming from something... its either failing to handshake with the state server or something weird is going on in the env. [22:19] yeah maybe is something like a timeout [22:19] i'm in an instable internet right now === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 === kadams54 is now known as kadams54-away === kadams54-away is now known as kadams54 [23:13] lazyPower: I'm getting strange behavior out of subprocess, and thought you might have more insight. subprocess.check_call('ls') returns a folder called ruby-install-0.5.0, but when I execute subprocess.check_call('cd ruby-install-0.5.0 && make install'), I get "no such file or directory" [23:13] I ran the command on the machine manually, and the make install doesn't error out [23:13] try make -C ruby-install-0.5.0 install instead [23:13] ^ [23:14] that avoids the use of the shell built-in 'cd', feels more likely to succeed to me === kadams54 is now known as kadams54-away [23:14] or [23:15] subprocess.check_call('make install', cwd='ruby-install-0.5.0') [23:15] IIRC [23:15] ooo [23:16] yeah that feels even more likely to work :) [23:16] you could set shell=True, but honestly, eewwwww. [23:24] sarnold: Thanks! [23:24] dalek57: check out lifeless's suggestion for cwd= -- it more closely replicates what you were doing with cd ... && make ...