/srv/irclogs.ubuntu.com/2012/06/11/#juju.txt

twobottuxaujuju: How do I add and call a helper script in a Juju charm? <http://askubuntu.com/questions/149240/how-do-i-add-and-call-a-helper-script-in-a-juju-charm>03:04
=== dpb__ is now known as Guest73293
bkerensaSpamapS: I want to know what your doing!06:58
=== almaisan-away is now known as al-maisan
=== zyga is now known as zyga-afk
=== zyga-afk is now known as zyga
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
hazmatrafa wins :-)12:03
m_3mornin12:46
hazmatm_3, ping12:56
m_3hazmat: yo13:02
m_3what's up?13:02
m_3saw proof-errors... we should talk about how to incorporate other test results too13:05
m_3we were talking about the browser showing green/red results for each charm... perhaps broken down by test13:06
hazmatm_3, back13:36
hazmatm_3, so wanted to ask about getting revision numbers into the job info13:37
hazmatm_3, and also which is the canonical url i should be using for jenkins instances13:37
hazmatm_3, to date i've just been the one off your subdomain13:37
hazmatm_3, i was also wondering how much work it would be to just offer a jenkins publishing endpoint13:37
hazmatm_3, the testing infrastructure seems a bit broken though which is also of some concern13:38
hazmati wanted to brainstorm/talk with you about alternatives13:38
hazmatjust to be clear for now i'm fine with jenkins testing, but i'd like to discuss what's on your plate as regards it this cycle, and the overall feature set we're aiming for13:39
=== fjlacoste is now known as flacoste
gary_posterjuju folks, we're seeing a problem that is a big deal for us.  As of sometime late last week, we are seeing machines (not services/charms) that never move from the pending state.  We initially saw this late Friday afternoon and figured it was transient or something to do with our charm, but now we are seeing it again and repeatedly.  Here's an example of my status (see line 21): http://pastebin.ubuntu.com/1035478/ .  Here's13:49
gary_posteran example of benji's status (see line 8).  benji started his with the fairly innocuous http://pastebin.ubuntu.com/1035483/ while I start with http://pastebin.ubuntu.com/1035462/ . Something suspicious is that this seems to happen with our slave charm and not with our master charm--but the charm shouldn't be able to affect this stage of things, right?  I can't even use `juju ssh 2` (I get "2012-06-11 09:35:41,881 ERROR None13:49
gary_posterobject cannot be quoted")13:49
m_3hazmat: sounds good... lemme finish breakfast and take taylor to work.  ping you in an hour or so... g+ might be easier13:49
benjianother bit of data on the above: the EC2 console does not show the machine as running13:51
gary_posterah, yeah, thanks benji13:51
benji(or even existing for that matter)13:51
gary_posterhuh13:52
hazmatm_3, sounds good13:52
gary_posterbenji, it is shown as existing in mine, but stopped.  "State Transition Reason: Client.InstanceInitiatedShutdown: Instance initiated shutdown")13:53
hazmatbenji, can you pastebin the provisioning agent log13:53
hazmater. gary_poster13:53
gary_poster:-) sure13:53
hazmatgary_poster, which version are you running?13:53
hazmatppa or distro?13:53
benjihazmat: sure; I assume that is somewhere on machine 0.  What is the path?13:54
gary_posterhazmat ppa  0.5+bzr540-1juju5~precise113:54
hazmatbenji, /var/log/juju13:54
hazmatbenji, its provisining-agent-log13:54
gary_posterhazmat, http://pastebin.ubuntu.com/1035503/13:55
benjihazmat: ooh, it looks interesting: http://paste.ubuntu.com/1035504/13:56
mgzha.13:56
hazmatgary_poster, thanks13:56
benjiI /think/ this is because I had an existing, but stopped instance.13:56
hazmatbenji, yup13:56
hazmatif it was a previous juju instance that you had stopped, ie managed behind juju.. then this makes sense13:57
mgzhazmat: related question, currently juju leaves stopped machines alone of destroy environment13:57
mgzthis seems... bad to me.13:57
hazmatmgz, agreed :-)13:57
gary_posterhazmat, ah!  yes, we had both done a poweroff that we thought was in an lxc but turned out to be in the host :-P13:57
hazmatmgz, there are additional issues with the security group intraction13:57
gary_posterthanks hazmat13:57
hazmatmgz, so intead of killing the security group when it exists already, we should just clear it out13:58
mgzyeah, I'm trying to resolve some of these teardown issues right now13:58
hazmatmgz, this also saves from the mostly pointless wait at destroy13:58
hazmatmgz, since that almost never succeeds13:58
mgzright, that's also painful.13:58
hazmatmgz, so intead on teardown just kill the instances, on bootstrap, clear out sec groups of rules as we allocate machines in them13:59
hazmatmgz, we can leave sec group cleanup in its entirety to a jitsu tool, or opportunistic provisioning agent level thing13:59
hazmatmgz, the ostack branch looks like its shaping up... any chance i can start reviews on it14:00
mgzso, I've got a neat way around that for openstack, but seems like a good plan for ec214:00
mgzright, I'm nearly there with all the moving parts so should be reviewable this week14:00
mgzsome things can land later.14:01
hazmatmgz, re way around... what's that?14:01
mgzyou can just disassociate a security group from a server in openstack14:02
hazmatoh.. nice14:02
SpamapSbkerensa: huh? You asked what I'm doing?14:02
mgzthat avoids the hole where opening ports in a pre-existing sec group means you need to be sure you killed any previously associated machines14:02
hazmatmgz, are you testing on hpcloud btw?14:02
mgz(not that this firewalling is really security critical)14:03
mgzhazmat: not yet with this branch14:03
hazmatmgz, well considering the per machine group, any pre-existing associated machines are really user error imo or juju not properly handing stopped instances (which also amounts to the same given the lack of support for manual machine management atm)14:03
hazmatie. we shouldn't care about pre-existing sec groups per se14:04
mgzright.14:04
m_3hazmat: back14:22
m_3SpamapS: promulquestion if you're still around...14:25
m_3should we make promulgate _change_ the owner of a branch or require a separate push to a ~charmers branch?14:26
hazmatm_3, invite out14:26
=== al-maisan is now known as almaisan-away
=== fenris is now known as Guest99220
=== Guest99220 is now known as ejat
SpamapSm_3: around now, wassup?16:12
m_3SpamapS: hey16:16
m_3SpamapS: just wondering if we should make promulgate do the extra work of pushing to ~charmers first for you16:16
m_3SpamapS: and if so, should it just change the ownership of the lp branch or would it require another push16:17
m_3right now I'm just barfing if it's not ~charmers (and --owner-branch isn't set)16:18
SpamapSm_3: you can't "just change ownership" of a branch.16:19
m_3SpamapS: ok... well that answers that then :)16:20
SpamapSm_3: so are you saying, just have promulgate look at metadata.yaml, and if no explicit branch destination is set, have it just try to push to lp:~charmers/charms/<current-series>/<name>/trunk ?16:20
SpamapSm_3: I'd be fine with that16:21
SpamapSm_3: bzr wil protect us from doing anything super stupid in that case16:21
m_3yeah, essentially16:21
SpamapSm_3: should be *loud* about what we're doing16:21
m_3it seems like lots of extra work to push to ~charmers every time16:21
SpamapSpromulgate is currently way too quiet16:21
SpamapSm_3: automation for the win!16:21
m_3SpamapS: cool one thing at a time... I'll mp the restriction to only promulgate ~charmers branches unless explicitly excepted first16:22
SpamapSm_3: werd16:22
m_3SpamapS: thanks man16:22
hazmatm_3, what sort of charms are you pushing that shouldn't be viewable in the browser?16:35
=== fenris is now known as Guest94326
=== Guest94326 is now known as ejat
m_3hazmat: promultest for instance16:50
m_3hazmat: and looking at creating launchpadlib-based tests that might temporarily stick stuff in locations like .../charms/<series>/<name>/trunk...16:52
m_3hazmat: it'd probably be best if they don't get cached in the charm browser / store16:54
hazmatm_3, funky..16:54
hazmatm_3, if their publishing junk, why are they publishing it ;-)16:54
hazmatm_3, seems like it should be kept local then16:54
m_3hazmat: testing the publishing mechanism itself16:54
hazmatm_3, i'm not opposed to the idea incidentally, just trying to understand if its nesc.16:54
m_3i.e., tests for 'charm promulgate'16:54
hazmatm_3, so how about a .no_store file in the root of the charm16:55
hazmatniemeyer, ^16:55
hazmatm_3, or you do want it in the store, but not the browser?16:56
m_3no biggie... sort of a one-off thing... not those almost always eventually turn into bigger things :)16:56
m_3hazmat: in this case, I want it in neither the store nor browser cache16:56
SpamapSm_3: just let it be in the store16:57
SpamapSm_3: "This charm is not useful. It is only for testing the charm store itself."16:57
m_3SpamapS: ok16:58
SpamapSDon't make it special at all16:58
SpamapSat < 100 charms it might be found.. but when we get to the many hundreds and then thousands of charms.. nobody will ever see it16:58
m_3hazmat: I'll kill that bug16:58
hazmatexcept when it pops for search..17:00
hazmatm_3, no.. i think its a good idea still to have that capability..17:00
hazmatm_3, pls leave the bug, i'll hit up on the next charm browser round17:01
m_3hazmat: ok... cool, thanks17:01
* SpamapS wonders if its worth our time is all17:03
=== zyga is now known as zyga-afk
=== smoser` is now known as smoser
m_3ok, enough charm-tools for now... back to charmtester18:02
FunnyLookinHatHere's the question of the day - can I use a charm to image a machine ( i.e. real hardware ) ?  I can't think of a way other than just re-purposing the charm's config code.18:25
FunnyLookinHatI think that would essentially be rewriting juju more than rewriting charms - yes?18:26
marcoceppi_FunnyLookinHat: Sounds like you're looking for MaaS?18:28
FunnyLookinHatyes ?18:28
FunnyLookinHatThe real question is - I've "heard" a lot about maas - but I haven't seen a way to implement it yet - am I missing something?18:28
* FunnyLookinHat googles.18:29
marcoceppi_FunnyLookinHat: So MaaS is a way to coordinate and manage bare metal, it's also a provider for Juju. So Juju talks to MaaS to deploy charms to bare metal (among other things) https://wiki.ubuntu.com/ServerTeam/MAAS18:29
FunnyLookinHatRight right - let's say I'm creating a zimbra charm to help install/setup zimbra mail servers that will be used for totally different clients though18:30
FunnyLookinHatand they will just plug the server in at their place after I've config'd it18:30
FunnyLookinHatDoes this still provide a valid use-case?  or would I be better off taking the charm for zimbra and just hacking it into a setup script that I run after imaging the server.18:31
marcoceppi_hum, I mean you _can_ use Juju, but it sounds like you'd be better just creating a setup script18:32
FunnyLookinHatmarcoceppi_, yeah agreed.18:33
FunnyLookinHathey congrats on the ultrabook from UDS btw18:33
FunnyLookinHatDid you end up submitting the git charm ?18:33
marcoceppi_FunnyLookinHat: I did gitolite and gluster. Gitlab proved to be too difficult in the amount of time I had. So polishing those up now for the store18:36
FunnyLookinHatAh ok - cool  :D18:37
marcoceppi_Now that we deploy gitlab in production it's easier to finish the charm18:37
SpamapSFunnyLookinHat: btw you could definitely use MaaS+juju to create those machines..18:48
SpamapSFunnyLookinHat: you'd just want to remove juju before shipping them out.18:49
FunnyLookinHatSpamapS, you think so?  The machines won't be connected to the MaaS/Juju server after the initial image.18:49
FunnyLookinHatAh.18:49
SpamapSFunnyLookinHat: probably enough to just 'juju destroy-service customerfoo-zimbra' before shutting it down18:49
SpamapSFunnyLookinHat: its not what juju is specifically designed for, but it should work18:50
SpamapSFunnyLookinHat: (the real question is why are you selling them a mail server instead of a whole cloud. ;)18:50
SpamapSbecause now that they have mail, they'll want a status.net microblog and a wiki to distill the billions of words of email that nobody has time to read ;)18:50
FunnyLookinHathahaha18:52
FunnyLookinHatI'm just trying to speed up my own process.18:52
FunnyLookinHatSeems silly to essentially "copy" a charm and not use juju18:52
twobottuxaujuju: How do I gracefully shutdown a Juju Charm? <http://askubuntu.com/questions/149550/how-do-i-gracefully-shutdown-a-juju-charm>18:57
=== koolhead17 is now known as koolhead17|zzZZ
twobottuxaujuju: How do I make a Juju Charm's revision match the Bazaar revision of its repo? <http://askubuntu.com/questions/149553/how-do-i-make-a-juju-charms-revision-match-the-bazaar-revision-of-its-repo>19:09
SpamapSm_3: https://code.launchpad.net/~mark-mims/charm-tools/fix-list-commands/+merge/109697 .. dude, just commit that19:12
m_3SpamapS: ok19:16
m_3done19:19
FunnyLookinHatquick bash help anyone?  I need to make a be the substr of b - from length of TEST + 2 - instead of just test... but +2 evals as a string obviously: a=${b:${#TEST}};19:26
FunnyLookinHati.e. a=${b:${#TEST}+2};19:26
FunnyLookinHatah - never mind: a=${b:$((${#TEST}+2))};19:29
negronjlm_3: ping21:38
hazmatFunnyLookinHat, re zimbra to me it really depends on whether you plan on taking it multi-node21:43
hazmatSpamapS,  a JBOM provider :-)21:44
m_3negronjl: yo21:54
negronjlm_3: I just followed the instructions ( README ) for MongoDB ( precise ) and, provided that I follow them, they work on the replica-set21:54
negronjlm_3:  Would you give me more details on how to reproduce ?21:55
m_3negronjl: oh cool... yeah, I was just triaging a few21:55
m_3didn't look too carefully21:55
m_3we have a lot of bugs that aren't getting caught in the review process21:56
negronjlm_3:  no worries ...  marking bug as Invalid21:56
m_3I hate to add them to the review queue though... maybe just 'triage general charm bugs' as a reviewer task21:56
m_3dude... review-queue rocks btw... how did we ever get along without it?21:57
negronjlm_3:  lol ... it does if I say so myself :)21:57
FunnyLookinHathazmat, single node22:00
* SpamapS re-uploads Juju to Debian after it was rejected for debian/copyright niggles :-P22:06
=== JoseAntonioR is now known as JoseeAntonioR
roy-feldmanDoes anybody have a few minutes about Juju with Maas?23:05
roy-feldmanI have read all of the docs I can find online and I am still have some issues. BTW, I am using KVM for most of my MaaS nodes I want to use with Juju.23:06
marcoceppi_roy-feldman: I can try to help23:24
roy-feldmanThanks23:27
roy-feldmanFor starters, have you used KVM with MaaS?23:27
marcoceppi_I have briefly, I ended up having quite a few problems with it though :)23:28
roy-feldmanI there a better hypervisor in your opinion for Maas + Juju at this point?23:29
roy-feldmanI don't have enough physical nodes to do anything very interesting with MaaS23:29
bkerensaSpamapS: http://www.omgubuntu.co.uk/2012/06/ubuntu-12-10-development-update-1 <-- your interview23:30
marcoceppi_roy-feldman: I've tried virtual-box which wasn't anymore fun to run. So far the only hypervisor I've had any real-life usage out of is Xen23:32
roy-feldmanBut have you used it successfully with MaaS?23:32
roy-feldmanSearching the forums, the one person on the Juju team that seems to use KVM is Jorge.23:33
roy-feldmanWhat problems did you run in with KVM?23:34
marcoceppi_roy-feldman: I couldn't get them to properly PXE boot, and when I finally got around that the wouldn't register with the maas pxe-boot server23:34
marcoceppi_so there were a lot of networking foul-ups23:35
roy-feldmanI have had similar problems23:35
SpamapSbkerensa: nice! thanks!23:35
roy-feldmanFollowing the instructions, I was able to PXE boot a KVM23:35
roy-feldmanConfigured for Wake up lan23:35
roy-feldmanIt would find the MaaS server and get the "initial" image and shutdown.23:36
roy-feldmanThe MaaS interface would then show that it was ready.23:36
roy-feldmanHowever, when I would try to peform a juju bootstrap, I would get the following error23:37
marcoceppi_Is your MaaS server running in a KVM or is it on another box (or the host machine)23:37
roy-feldmanERROR Invalid host for SSH forwarding: ssh: Could not resolve hostname node-525400edd759.local:23:37
marcoceppi_roy-feldman: that's a DNS issue23:37
roy-feldmanI have installed maas-dhcp and set it correctly, as far as I can tell.23:38
marcoceppi_it should be pretty easy to overcome, if you've installed maas-dhcp on the maas machine, then set /etc/resolve on your juju machine to point to the maas server23:38
roy-feldmanI have gone over the Maas setup instruction several times23:38
marcoceppi_juju machine, being the machine you're running juju from23:39
marcoceppi_MaaS is kind of designed to take over a network, so it's supposed to act as your internal DNS server23:39
roy-feldmanwhat would the directive look like in /etc/resolve to do that23:39
marcoceppi_roy-feldman:  /etc/resolve.conf *23:40
roy-feldmanBTW, MaaS is not my gateway, instead I pointed it at my router in the maas-dhcp setup23:40
roy-feldmanWould that be a problem?23:40
marcoceppi_It's nameserver IP_ADDRESS - I would recommend commenting out (#) your current entries and placing the values to the MaaS (you may need to restart networking)23:40
marcoceppi_not sure, that's better suited for the #maas room23:40
marcoceppi_It *shouldn't* be a problem23:41
roy-feldmanOk, I will go to the maas channel, but are you saying the gateway setting is not a problem?23:42
marcoceppi_AFAIK, it's not23:42
roy-feldmanAnd maas will refer to my gateway for external address resolution after /etc/resolve is configured correctly?23:43
marcoceppi_roy-feldman: it should23:44
roy-feldmanOne last question23:44
marcoceppi_shoot23:44
roy-feldmanOnce I have Maas properly configured23:44
roy-feldmanI can deploy charms to maas registered machines, whether they are currently running or not?23:45
roy-feldmanCan I ...23:45
marcoceppi_roy-feldman: correctly, MaaS will ping it with a WOL call to turn the machine on, then provision it23:45
roy-feldmangreat23:46
roy-feldmanIs the maas channel open to outsiders?23:46
roy-feldmanSome ubuntu channels are members only23:46
marcoceppi_roy-feldman: it's open23:47
roy-feldmangreat23:47
marcoceppi_If after you get that all sorted, juju doesn't work, feel free to pop back in here23:47
roy-feldmanOk... one more clarification of your answer, please23:47
roy-feldmanWhen you said comment out my current entires, did you mean my entries in /etc/reslove?23:48
roy-feldmanresolve23:49
marcoceppi_yeah, the ones in /etc/resolv.conf23:49
roy-feldmanWhat did you mean by " /etc/resolve.conf *"23:50
roy-feldman?23:50
marcoceppi_the file is /etc/resolv.conf - mis-spelled it several times :)23:51
roy-feldmanOk, thanks a lot!23:51
roy-feldmanWish me luck23:51
roy-feldmanWhen I finally succeed I will write up a little cookbook for Maas + KVM, I think it is sorely needed.23:52
roy-feldmanLooking at the Maas forums, I am not the only person having problems with Maas23:52
roy-feldmanI do have a quick Juju specific question23:53
marcoceppi_sure, go for it23:53
roy-feldmanIs there a juju ppa repo I should be using for juju on 12.04, or am I better off sticking with normal updates?23:54
SpamapSroy-feldman: the PPA is extremely stable (for now) but may get volatile later.23:54
roy-feldmanAssuming that all I am doing is charm development?23:54
SpamapSroy-feldman: there are a few updates pending in precise-proposed ..23:55
SpamapSwhich reminds me I need to get those back on track. :-P23:55
SpamapSwe really need a 'juju-origin: ppa://....' so we can have a more stable PPA than the one that builds from trunk. :-P23:55
roy-feldmanIn the meantime, are there any major advantages for a charm developer to be using the current ppa repo?23:56
roy-feldmanAlso, would it be helpful to the project if I used the ppa repo?23:57

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