_mup_Bug #996857 was filed: Local environment doesn't require opening ports <juju:New> < https://launchpad.net/bugs/996857 >00:52
dpb_I'm trying to make a charm that does some deployment testing, i.e., install from a source, deb, or similar.  How should I get the bundle over to the server in the charm?  The bundle is local to me when I'm running juju deploy.01:30
marcoceppidpb_: what do you mean by the bundle?01:50
jsalisburyAnyone available for a quick juju deploy question?02:07
jsalisburyI'm trying to use a local repository instead of the juju store, but I get this:02:09
avoinejsalisbury: juju -v deploy --repository=/home/jsalisbury/juju/charms local:kernel-build02:19
avoinejsalisbury: and you must put the charms in a directory named with the ubuntu version02:19
avoinelike precise or oneiric02:19
jsalisburyavoine, awesome, that was it!  I was missing the local:kernel-build02:20
jsalisburyavoine, this may need to be updated:02:20
jsalisburyI doesn't have the local:02:21
dpb_marcoceppi: Like a private build a piece of software.  a private deb.  tar.gz file, etc.02:23
dpb_marcoceppi: what I'm really wanting is to be able to test deployment from my checkout on my workstation.  I can do that with a cloud instance, but I wanted to do it through juju.02:27
dpb_All I need is a way to scp a file over there as part of charm.02:28
jsalisburyOne additional question.  Am I using the --config option correctly:02:32
dpb_jsalisbury: cat out your config file if you can.02:34
dpb_jsalisbury: I can use that option, so it may be something with your file02:34
jsalisburydpb_, This is it:02:36
jsalisburyname: kernel-build02:36
jsalisburysummary: <This charm can be used to compile the Ubuntu kernel.>02:36
jsalisbury  <Multi-line description here>02:36
jsalisbury   release:02:36
jsalisbury    default:precise02:36
jsalisbury   arch:02:36
jsalisbury    default:amd6402:36
jsalisburyThis is my first charm, so I may have set this up wrong ;-)02:36
dpb_jsalisbury: oh I see what you are doing... --config is for specifying configuration options *into* your charm02:37
dpb_jsalisbury: you probably don't need it if you are just getting going02:37
jsalisburydpb_, yes, I need to supply the release and arch02:37
jsalisburydpb_, That tells my script which kernel to build02:38
dpb_jsalisbury: ah, ok.  ya, it would be used for that purpose then.02:38
jsalisburydpb_, For now, I can just hardcode it to get it working :-)02:38
dpb_jsalisbury: let me give you an example that I have been doing.02:38
jsalisburydpb_, cool.  In my script I do this:02:39
jsalisburyRELEASE=`config-get release`02:39
jsalisburyARCH=`config-get arch`02:39
dpb_jsalisbury: http://pastebin.ubuntu.com/02:42
dpb_jsalisbury: http://pastebin.ubuntu.com/977157/02:42
dpb_jsalisbury: so, you need two files... one called "config.yaml" in your charm root folder02:43
dpb_jsalisbury: one you pass in with the params02:43
jsalisburydpb_, ok, so I need a metadata.yaml with the basics.  Then create a second file named config.yaml with the config options02:44
dpb_jsalisbury: actually, these go in "config.yaml" in your root dir02:44
dpb_jsalisbury: metadata is separate and distinct02:45
dpb_jsalisbury: then in your charm, you use "config-get name" to retrieve a param called "name"02:46
jsalisburydpb_, awesome I'll give it a try02:47
dpb_jsalisbury: cool. :)  This has worked for me.  I'm using the PPA version of juju, btw.02:47
jsalisburydpb_, thanks for the help!02:47
dpb_jsalisbury: yw02:47
marcoceppidpb_: Any file that's in the charm room will be included in the deploy, so you can copy items you want to test on to the charm, then deploy, and when you need to interact with them all of the hooks CWD are the root of the charm. so if you have this in a folder called "foo" in the charm you could just do foo/<whatever> to manipulate it04:52
bkerensaSpamapS: so I was still having issues with lxc local testing but I made the fixes05:04
bkerensafor locker ^05:04
flepiedSpamapS, naxsi is WAF: http://code.google.com/p/naxsi/05:35
=== daker__ is now known as daker
=== Furao_ is now known as Furao
koolhead17anyone awake13:26
SpamapSkoolhead17: just me :)13:32
SpamapSflepied: naxsi looks really cool btw13:32
koolhead17SpamapS, good morning :)13:32
flepiedSpamapS, I don't fully master naxsi, it was just another try to do a charm ;-)13:35
SpamapSflepied: are you at UDS? Did we meet and I didn't realize it?13:36
flepiedSpamapS, no I'm in France ;-)13:36
SpamapSflepied: ahh ok. :)13:37
SpamapSflepied: I think imbrandon is working on an nginx charm, naxsi might be an interesting add-on to that13:39
flepiedSpamapS, I think it's not an addon to nginx in term of packaging14:08
flepiednginx is included in the naxsi package14:09
SpamapSflepied: It might be an addon for the charm14:28
SpamapSas in.. something you can turn on to increase security14:28
SpamapSmarcoceppi: Hey, I tried my branch, with our internal "canonistack" and S3.. it worked fine15:32
marcoceppiSpamapS: interesting, I'll have to give it a try again, maybe using a different AWS account15:33
marcoceppiIf this does work, will it land in the core? or forever be a branch?15:35
SpamapSmarcoceppi: I hope we can get it into core15:35
SpamapSmarcoceppi: at least as a stop-gap until we can do the right thing and de-couple storage from compute15:35
marcoceppiThe second it does let me know and I'll update the Ask Ubuntu question and start pushing it out15:35
SpamapSin much the same way libcloud does15:36
marcoceppiI agree, an eventual de-coupled structure would be great15:36
marcoceppiactually, it would be sweet if I could just say USE THIS FOR THE COMPUTE, USE THIS FOR STORAGE, and have storage providers like dropbox, s3, u1, etc15:37
marcoceppiThough, native OSAPI would be good too ;)15:38
SpamapSmarcoceppi: right, OSAPI does not define swift though. ;)15:39
marcoceppiSpamapS: http://www.nooooooooooooooo.com/15:39
SpamapShp-cloud: { type: ec2, storage-type: swift }15:39
marcoceppiOh, that's cool then15:40
SpamapSthats kind of how I see it working15:40
SpamapSand then have flavors that extend and default to things, so eventually hp-cloud: { type: hpcloud } would be short hand for the above.15:40
marcoceppi+1 IMPLEMENT ALL THE THINGS15:42
SpamapSwe need to dive into the review queue tonight15:48
SpamapSactually there's no sessions I need to care about until 11:0015:50
marcoceppiSpamapS: I'd be be happy to dive in to the review queue, tomorrow <316:04
jcastrohah, cute!16:04
marcoceppiOr at least after I finish ze charms16:05
SpamapSjcastro: thanks for +1'ing imbrandon. :)16:06
SpamapSimbrandon: welcome to charmers!! :)16:06
jcastroisn't that awesome?16:07
jcastrook from my count we're up to 17 entrants16:07
marcoceppi+3 from me in an hour16:07
marcoceppior a few hours16:07
marcoceppiWait, charms or entrants?16:08
SpamapSoh snap16:08
SpamapSthats awesome16:08
marcoceppiSpamapS: I've got a few questions about -r and relation-(get|set)16:09
SpamapSmarcoceppi: fire away. Also if you're in 205 we can just have a G+ hangout w/ the room. :)16:09
marcoceppiSpamapS: I am in the room! that would be sweet16:10
marcoceppithe commands failed yesterday: relation-get private-address -r unit/# (literally translated to relation-get private-address -r gluster/2) and it failed out16:10
marcoceppiwhat format does -r expect?16:10
marcoceppiWe're pretty light in the room now, but if we start getting a lot of questions I'll put your face on the wall16:10
marcoceppiSpamapS: also, I poked at the nginx reverseproxy and haproxy charm hooks, it looks like they were using relation-get private-address - unit/#16:11
marcoceppiAm I missing what the -r does, man pages are a little light on documentation :)16:12
SpamapSmarcoceppi: -r allows you to reference a relationship from any context16:13
=== fenris is now known as Guest8617
SpamapSmarcoceppi: so you can run relation-set from a cron job for instance16:13
jcastroSpamapS: ok fixed.16:14
jcastroSpamapS: juju charm and juju contributions are the same as other membership requirements16:15
SpamapSmarcoceppi: sent you a G+ invite16:15
jcastroso, interacting with the community, sustained contributions, etc.16:15
jcastroit counts the same as anything else16:15
SpamapSjcastro: sweet16:15
=== Guest8617 is now known as ejat
marcoceppiSpamapS: so what would an example of a -r value16:21
SpamapSmarcoceppi: anything that 'relation-ids' spits out16:23
SpamapSmarcoceppi: or that has arrived in $JUJU_RELATION_ID in a hook16:23
marcoceppiSpamapS: I wish i had a second laptop, Otherwise people will see you and you'll be staring at me the whole time16:23
SpamapSmarcoceppi: so for instance, in joined, you might store $JUJU_RELATION_ID somewhere, and then re-use it to push values in later when a long running background job is finished.16:23
marcoceppiSpamapS: interesting that's what I currently do16:23
koolhead17marcoceppi, will you have sometime  today? i would like to sit with you and know what all new things have got integrated with juju. i missed last evening session :(16:24
koolhead17i want to write a simple blog putting LXC as well as ec2 in mind16:24
SpamapSmarcoceppi: if you run outside the juju process, you also need to save off the socket and stuff. Check the env for the right JUJU_* variables16:26
marcoceppiSpamapS: I keep a directory or $JUJU_RELATION_ID as the file name, and it's remote address in there. So to build that I'm looping through relation-list and performing some simple tests, etc in the first few lines. It's the relation-get portion that fails http://paste.ubuntu.com/978195/16:26
marcoceppiSpamapS: It's running inside a relation-changed hook16:26
marcoceppis/directory or/directory of/16:26
SpamapSah ok16:27
marcoceppithe -r command fails16:27
SpamapSyeah thats wrong16:27
SpamapSyou're passing unit names16:27
marcoceppiSo relation-ids is what I want to loop against?16:27
SpamapSYoumay just mean 'relation-ids' there.. but I'm not entirely sure16:27
jimbakerSpamapS, marcoceppi - you want to use relation-ids16:28
SpamapSYou'll have a relation ID per *service* you are related to16:28
marcoceppiSpamapS: jimbaker gotchya!16:28
SpamapSso if you want to then also loop through the units inside each service you're related to, you need another loop for relation-list16:28
marcoceppiSpamapS: awesome jimbaker gave me the lowwwwww down16:31
SpamapSreviewed ddclient16:46
SpamapSDING DING promulgated SOLR!16:49
m_3_SpamapS: bumped service-stacks to not conflict with bug triage17:13
SpamapSm_3_: thank you!17:14
SpamapSm_3_: IMO stacks is not something we can talk about this cycle anyway. :(17:14
SpamapSm_3_: unless we're going to make a straw-man implementation in jitsu17:15
m_3_SpamapS: yeah, I was more gonna ask if it was a core feature or not17:15
SpamapSm_3_: no features this cycle17:17
SpamapSThe resource map discussion was even a bit reaching. :-/17:18
SpamapSImportant to discuss, but I can't see it getting implemented.17:18
m_3_what about tomorrow?  any we should combine/rearrange/delete?17:18
m_3_SpamapS: when you get a chance... no hurry, just wanna give michelle as much notice as possible17:19
SpamapSyeah I'll review tomorrow17:20
m_3_integration's still worth keeping imo17:21
m_3_but yeah, I'll let you listen away :)17:21
=== Furao_ is now known as Furao
SpamapSheh.. we need an environment option.. "spare machines"17:44
SpamapSI've taken to always having one machine deployed using the 'ubuntu' charm17:44
SpamapSjust sitting there, waiting17:44
SpamapSmarcoceppi: you know what would be awesome in charm-helper-sh? If you could build in support for scraping MD5's from sourceforge right into ch_file_get17:46
marcoceppiSpamapS: I tried that, I ended up bailing to use php :\17:46
marcoceppiSince you have to consume an XML file17:46
marcoceppiUnless there's another way to get MD5 sums from SF17:47
SpamapSmarcoceppi: perhaps that is worth putting in a little helper script (I'd suggest python, not php) that gets included w/ charm helper tho17:48
marcoceppiSpamapS: if that's okay with you, I think it'd be great17:48
marcoceppi(I agree with Python for this instead of PHP, shazzer IIRC moved my php script to python in one of his charms)17:49
SpamapSmarcoceppi: part of me wants to start pushing for more charms to just embed a tarball tho17:50
SpamapSmarcoceppi: when we add this mythical tagging thing.. we will be tagging most of these "download the latest" charms as non-repeatable.17:50
jsalisburyIs anyone here currently using canonistack?  I seem to be having an issue starting an instance.17:54
marcoceppiSpamapS: $JUJU_RELATION_ID is what you would use against -r correct?18:18
SpamapSmarcoceppi: correct18:19
negronjlSpamapS: ping18:33
negronjlSpamapS: I approved puppetmaster and puppet.  Promulgate :)18:34
alex88hello, someone tried to deploy openstack with juju?18:35
negronjlSpamapS: looking at bug https://bugs.launchpad.net/charms/+bug/996576 ( reviewing ) and I see that you have this bug assigned to you.  Are you reviewing this already ?18:42
_mup_Bug #996576: VIVO charm <new-charm> <Juju Charms Collection:New for clint-fewbar> < https://launchpad.net/bugs/996576 >18:42
=== hazmat` is now known as hazmat
* popey wonders if someone could review my (first attempt - be gentle) charm, that would be lovely ☺ https://bugs.launchpad.net/charms/+bug/99636119:29
_mup_Bug #996361: Charm needed: Yacy <new-charm> <Juju Charms Collection:In Progress by popey> < https://launchpad.net/bugs/996361 >19:29
=== JoseeAntonioR changed the topic of #juju to: Coming to UDS? Write a charm for a chance to win one of 3 Dell XPS 13 ultrabooks! http://goo.gl/uTGU2 || Charms at http://jujucharms.com || Want to write a charm? http://juju.ubuntu.com/Charms || OSX client: http://jujutools.github.com/"
=== JoseeAntonioR changed the topic of #juju to: Coming to UDS? Write a charm for a chance to win one of 3 Dell XPS 13 ultrabooks! http://goo.gl/uTGU2 || Charms at http://jujucharms.com || Want to write a charm? http://juju.ubuntu.com/Charms || OSX client: http://jujutools.github.com/
=== fenris is now known as Guest13390
* marcoceppi reviews all the charms20:47
=== gmb` is now known as gmb
=== _mup__ is now known as _mup_
marcoceppiHey SpamapS if you wget an asc does it *have* to be over SSL? I assume yes, but I'm not 100% certain21:31
* popey hugs marcoceppi 21:40
SpamapSmarcoceppi: yes it would have to be21:41
marcoceppio/ popey got a few things for you21:41
popeyoh goody21:41
popeyis it massively broken? :D21:41
SpamapSmarcoceppi: best to embed a trusted key in the charm21:41
marcoceppiSpamapS: that's what I figured, cool21:41
SpamapSmarcoceppi: then you don't have to have https for the .asc, you just need to verify the key21:42
marcoceppipopey: not that bad! just a few key items and some nitpicks21:42
popeyyou gonna braindump on the bug marcoceppi ?21:42
marcoceppipopey: yeah, just finishing up my reply21:43
SpamapSjust -1'd VIVO21:46
SpamapSIf anybody sees Nicholas Skaggs let him know he has some TODO's waiting for him in bug 99657621:46
_mup_Bug #996576: VIVO charm <new-charm> <Juju Charms Collection:Incomplete by nskaggs> < https://launchpad.net/bugs/996576 >21:46
SpamapSSame for David Duffey for ddclient bug 99690521:48
_mup_Bug #996905: New dynamic dns charm ddclient <new-charm> <Juju Charms Collection:Incomplete by david-duffey> < https://launchpad.net/bugs/996905 >21:48
popeythanks marcoceppi21:48
SpamapSimbrandon: hey, you going to finish drupal?21:52
=== fenris is now known as Guest18607
SpamapS90 minutes left for the laptop contest. Anybody freaking out? ;)22:33
jsalisburySpamapS, is there a document somewhere that explains how to configure environments.yaml to use canonistack instead of AWS or local?22:36
marcoceppiSpamapS: yes22:36
SpamapSjsalisbury: yes but Its just for Canonical people.22:37
komputesmarcoceppi: Could we test my charm on Openstack: https://code.launchpad.net/~komputes/charms/precise/remote-assistance/trunk22:37
marcoceppikomputes: I can do it on AWS22:37
* SpamapS will test juju against trystack soon22:37
jsalisburySpamapS, Is there info on the internal wiki?22:38
lifelessSpamapS: I'm getting the idea that jsalisbury may be 'Canonical people' :P22:40
SpamapSlifeless: indeed, I just don't want others in here thinking we're using some secret cloud. ;)22:41
SpamapSwhich.. canonistack sort of is. :)22:41
SpamapSlooks like there are no more juju related sessions for today22:42
SpamapSat UDS I mean22:43
SpamapSso, anybody making last minute tweaks, lets get 'er done22:43
* tumbleweed has no energy left for last minute tweaks (such as all the things I actually intended to do :P )22:52
SpamapStumbleweed: reviewing ibid right now btw :)22:53
tumbleweedUDS-exhaustion :)22:53
tumbleweedSpamapS: yeah, just saw that22:53
SpamapStumbleweed: you should move most of the config-get stuff to config-changed22:54
SpamapStumbleweed: so it can be changed post-install22:54
tumbleweedoh, duh22:55
* tumbleweed quickly does that22:55
SpamapStumbleweed: otherwise, it looks pretty cool. I've thought for a while that we need an IRC bot charm. :)22:56
* SpamapS deploys w/ --constraint mem=64M curious if that will end up with a t1.micro22:56
marcoceppiSpamapS: I realized earlier that i collided with someone elses work22:58
SpamapSmarcoceppi: gitolite?22:59
tumbleweedSpamapS: pushed, but entirely untested :)22:59
SpamapStumbleweed: mmmm.. fresh crack22:59
SpamapStumbleweed: another nice thing would be to open the ident port23:06
SpamapSSpamsPet: are you a real person?23:09
SpamsPetSpamapS: *blink*23:09
SpamapSSpamsPet: what is ibid?23:09
SpamsPetSpamapS: I'm afraid I have no idea23:09
SpamapSSpamsPet: you respond awfully fast23:10
SpamsPetSpamapS: What?23:10
marcoceppiSpamapS: yeah, not sure what do do about that23:10
SpamapSmarcoceppi: shazz has first dibs its not his fault you forgot to follow the process :)23:10
SpamapSmarcoceppi: he's still within 30 days of his last activity23:10
marcoceppiright, so mines ready for submission23:10
marcoceppijust wait it out?23:10
SpamapStumbleweed: I'm sure you've already guessed, but SpamsPet is an ibid deployed w/ your charm :)23:11
SpamapStumbleweed: I manually installed oidentd, and just used the juju-jitsu 'open-port' command to open port 11323:13
tumbleweedSpamsPet: hi23:14
SpamsPettumbleweed: By the way, SpamapS on irc told me "tell tumbleweed you are a genius" 6 minutes and 27 seconds ago23:14
SpamsPettumbleweed: By the way, SpamapS on irc told me "tell tumbleweed you are a genius on #juju" 6 minutes and 17 seconds ago23:14
SpamapStumbleweed: also in config-changed, just take the existence check out for ibid.ini ... just overwrite it every time.23:15
tumbleweedalready fixed that :P23:15
SpamapSoh good :)23:15
SpamapShah rapid iteration eh? :)23:16
tumbleweedyeah, there are many situations where one doesn't want such a simple config23:16
tumbleweedbut the hacky temporary solution is to stick a local.ini in23:16
tumbleweedI see some other charms have a way to download a config / provide it at deploy. That seems the way to go for non-trivial configs23:16
SpamapStumbleweed: perhaps look at dotdee too23:17
SpamapStumbleweed: it allows you to emulate .d dirs for things that don't have them.23:17
SpamapStumbleweed: automation always gets in the way of customization. Such is the nature of the beast.23:18
SpamapSejat: hey btw, I didn't get a c hance to say hi yesterday, but, HI!23:18
tumbleweedSpamsPet: Juju is DevOps DistilledTM23:21
SpamsPettumbleweed: I'll remember that23:21
SpamapSnegronjl: thanks for +1'ing the puppet charms. PLEASE do add things to them. I think there's a ton of interesting stuff left to do.23:22
* SpamapS rings the bell twice23:23
SpamapSpuppet(subordinate)/puppetmaster promulgated23:23
jcastrorunning out of time?23:37
marcoceppijust realized one of my charms depends on charm-helpers and I never merged the dang code for that23:37
ejatSpamapS: its ok .. hi back23:37
ejati guess .. i didnt have time to separate the package to make it scalable .. need to extract the package and see the create db file ..23:39
SpamapSmarcoceppi: its ok to embed that in your own charm. :)23:39
marcoceppiSpamapS: yeah I am, I was just ready to start celebrating :)23:39
SpamapSmarcoceppi: charm-helpers is just an efficiency play. But its more important that charms work than that they are super efficient.23:39
* ejat less hope to fullfill the 5 criteria .. 23:39
SpamapSjcastro: where can people look to be sure their charm is submitted to the contest btw?23:40
ejatmarcoceppi: dont forget to donate ya dv723:40
jcastromarcoceppi: http://www.quickmeme.com/meme/3p7ol1/23:41
marcoceppijcastro: ROFL23:41
=== elmo_ is now known as elmo
ejatjcastro @ anyone : can u answer SpamapS Q .. so i also can look into :)23:44
jcastroSpamapS: launchpad?23:45
jcastroSpamapS: all the new-charms ones since april 26.23:45
SpamapSjcastro: so, tagged w/ new-charm, commits to a linked branch by 1700 ?23:45
SpamapSok, lets make sure to snapshot that at 170123:45
jcastroSpamapS: why? Are you working on a list of entries?23:46
SpamapSjcastro: I want to make sure we capture it is all23:46
jcastroso how can I do that?23:46
marcoceppiI'm guessing I can't use the gitolite one for the contest?23:46
jcastroI mean, the date time is in LP already23:46
SpamapSI'm sure we can extract it w/ the lp api .. but simple to just look at the page at the entry time23:46
jcastrooh ok23:46
jcastroright right, that's easy, I can do that.23:46
SpamapSmarcoceppi: I'd -1 it pretty hard since you missed the process entirely. ;)23:47
marcoceppiCool, so I have glusterfs and no way to show it's power :)23:47
bkerensaThere is no way I can finish the reddit stack charm and openphot charm by 5pm23:47
bkerensale sigh23:47
SpamapSmarcoceppi: 13 minutes to add it to wordpress ;)23:47
SpamapSmarcoceppi: in that case, you can use your gitolite just to support gluster's awesomeness23:48
marcoceppiokay, whew23:48
ejatok thanks23:48
SpamapSmarcoceppi: but yeah, it would have been more awesomer to have a charm that uses gluster up for consideration :)23:49
* marcoceppi is the saddest23:49
jcastro10 MINUTE WARNING23:49
SpamapSmarcoceppi: contact shazzner, maybe you can get him to relinquish his claim :)23:49
marcoceppidon't think that will happen in 10 mins :\23:49
* ejat ...... scratching .... 23:49
jsalisburySpamapS, thanks for reviewing my charm.  I implemented all your suggestions except using secure git or implementing some form of cryptographic verification(I'm not sure I'l be able to do that in the next 5 minutes, lol).23:54
SpamapSmarcoceppi: you love me23:54
marcoceppiI wish I would have checked earlier23:55
SpamapSmarcoceppi: https://bugs.launchpad.net/charms/+bug/90617623:55
_mup_Bug #906176: Gitolite charm <new-charm> <Juju Charms Collection:Incomplete> < https://launchpad.net/bugs/906176 >23:55
marcoceppiI pushed my branch and emailed him23:55
marcoceppihere's to helping23:55
SpamapSmarcoceppi: I got a hold of Chris23:55
SpamapSmarcoceppi: note, unassigned23:55
* marcoceppi owes SpamapS ALL OF THE BEERS23:55
* SpamapS deflects at least one to shazzner23:56
* popey crosses his fingers23:59

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