/srv/irclogs.ubuntu.com/2013/12/12/#juju.txt

=== freeflying is now known as freeflying_away
=== thomi_ is now known as thomi
=== freeflying_away is now known as freeflying
lazypowernegronjl: I'm not sure that just stripping the configuration flags is the proper route to go with the modifications I filed. Do you want to retain MMS support in the mongodb charm, or does it make sense ot break it into another charm, possibly a subordinate, now that the MMS service is a python application?01:24
lazypowerI'm fine with either method, and would love to contribute to the effort of integration.01:24
negronjllazypower, one option would be for you to make the subordinate charm and we can then see about taking the functionality out of mongodb01:56
lazypowernegronjl: Challenge accepted02:27
negronjllazypower, rofl .. cool!02:27
lazypowerLet me get some other high priority things out of my queue and I'll get a subordinate prototype in your hands soon02:28
lazypowerI'm working on charming up the Errbit exception catcher - It's going to provide an airbrake interface the way its layed out in my head. I'm a bit confused if it should be a provides: relationship, or be a peer relationship.02:54
lazypowerI initially call peer, but at the end of the day other charms will have to require it to hook into the server stack (it provides api keys and other fun configuration magic) so - it should probably be a provides: and requires: <optional> on the related charm yes? or am I misunderstanding the relationship categories?02:55
negronjllazypower, If I understand your reasoning correctly, then your theory is correct :)02:57
lazypowerScope creep like a pro. Love it02:59
=== marrusl is now known as marrusl_afk
=== marrusl_afk is now known as marrusl
=== freeflying is now known as freeflying_away
=== CyberJacob|Away is now known as CyberJacob
Felipe_CHi All, Could anyone confirm what JUJU - Manual Provisioning is? Will that give me the possibility of using a09:48
Felipe_CHi All, Could anyone confirm what JUJU - Manual Provisioning is? Will that give me the possibility of using, for instance, a VPS ( purchased from whatever provider but running Ubuntu)  and deploying services there using only my SSH root account?09:49
axw_Felipe_C: that's correct. It's not quite ready yet, but that is one use case for it09:52
Felipe_CThanks axw_ - Would I assume correctly that this, in itself, could potentially be the single most valuable tool for (not fully cloudfied) web developers, server admins, etc?09:54
axw_Felipe_C: we Juju developers like to think so :)09:57
axw_it certainly should take a lot of the pain out of deploying apps to VPSes09:57
Felipe_Caxw_ - with the added benefit of being burstable to a PaaS of your choice, such as AWS - provided of course, it allows easy collocation of services on the same machine, which currently is only available using the command line - am I right?10:00
axw_Felipe_C: right, AFAIK, the GUI does not support "placement directives" (--to on the CLI)10:01
oatmanmorning! I have a mongo error when bootstrapping juju, could someone help me with this?10:07
oatmansudo juju bootstrap10:08
oatmanERROR unauthorized: cannot create log collection: unauthorized mongo access: unauthorized db:juju ns:juju lock type:1 client:127.0.0.110:08
oatmanhuh, turns out my mongodb server hadn't come up at boot time, starting it fixed it! Odd error though, for no db connection10:10
oatmanwait10:11
oatmanthat doesn't fix it10:11
oatman...10:11
mthaddonmgz: you seen oatman's problem before? ^ (local provider)10:21
mgzoatman, mthaddon: doesn't look familiar10:22
oatmanmgz, do you think I could wipe my mongo setup?10:22
mgzwe should be spinning up a seperate mongo, but it's poissible if you had existing mondgo config it would confuse the local provider10:24
mgzpurging the package then reinstalling it might be a big-hammer option10:24
oatmanmgz, I think my mongo is crashing, everytime I sudo start mongodb, I get a different pid10:30
mgzoatman: check the logs, they're er... somewhere10:32
oatmanheh10:35
oatmanhuh, nothing in them10:35
oatmanwc /var/log/mongodb/mongodb.log10:35
oatman0 0 0 /var/log/mongodb/mongodb.log10:35
oatmanhow on earth did my mongo server get broken while my machine was off during the night?!10:36
jamoatman, mgz: Are you trying to start a mongodb for Juju or you have mongodb in your system and you also have a juju local environment?10:51
jamI've heard there is a bug with mongodb, in that if you start a juju local instance10:52
jamit also starts a 'mongod' process10:52
jamand then the global mongodb says "oh, I'm already running, I'll just exit"10:52
oatmanjam, thanks for helping, I'm just using system mongo10:52
jameven though we're trying to have 2 mongod's running10:52
oatmanI think you're right10:52
oatmanps -e | grep mongo10:52
oatman 1190 ?        00:00:15 mongod10:52
oatman(fenchurch2)➜  ~VIRTUAL_ENV  status mongodb10:52
oatmanmongodb stop/waiting10:52
oatmanI'll nuke juju's mongo and spin mine up?10:53
jamstatus juju-db10:53
jam?10:53
jamoatman: you should be able to "stop juju-db" and then "start mongodb"10:53
oatmanOATMAN SHELL PROXY STARTED10:53
oatmansubprocess.check_call(10:53
oatman        ['a2dissite', '000-default']10:53
oatman    )10:53
oatmansorry, bad paste10:53
oatmanstatus: Unknown job: juju-db10:53
oatman^10:53
jamoatman: if this is local provider, then I think we name it differently, 1 sec10:53
oatmanyes, lxc10:53
jamoatman: juju-db-$USERNAME-local10:54
jamso "stop juju-db-oatman-local" for example10:54
oatmanstatus juju-db-oatman-local10:54
oatmanjuju-db-oatman-local stop/waiting10:54
oatmansudo stop juju-db-oatman-local10:55
oatman[sudo] password for oatman:10:55
oatmanstop: Unknown instance:10:55
jamoatman: what does psgrep mongod give you?10:55
oatmanI'm not familiar with that command10:55
oatmanps -e | grep mongod10:55
oatman 1190 ?        00:00:17 mongod10:55
jamoatman: so you do have a mongod running, if you use ps -efwww you can probably figure out who started it and who its running for10:56
oatmanyep, it's juju10:57
oatmanps -efwww  | grep mongod10:57
oatmanroot      1190     1  1 10:28 ?        00:00:18 /usr/bin/mongod --auth --dbpath=/home/oatman/.juju/local/db --sslOnNormalPorts --sslPEMKeyFile /home/oatman/.juju/local/server.pem --sslPEMKeyPassword xxxxxxx --bind_ip 0.0.0.0 --port 37017 --noprealloc --syslog --smallfiles10:57
jamoatman: so I'm surprised juju-db-oatman-local doesn't realize it is running, but you can try just "sudo kill 1190" and see if that lets you start your normal mongodb10:58
oatmanyep, that low-tech method allowed me to start my local mongo10:59
oatmanlets see if that fixes my juju11:00
oatmanjam, mgz killing the rogue juju mongo process fixed it :-)11:02
mgzoatman: ace11:06
noodles775I'm unable to ssh/debug-hooks - it instead seems to look up the address for the unit indefinitely: http://paste.ubuntu.com/6560877/, anyone able to help?11:31
ashipikahi.. can somebody please explain relation hook names? i.e. if in the metadata.yaml i have11:34
ashipikapeers:11:34
ashipika peers-relation:11:34
ashipika   interface: somename11:34
ashipikawhich hooks need to be implemented?11:34
noodles775fwiw, I can't say it's related, but I'm now able to ssh/debug-hooks with the unit above after switching environments, exiting the debug-hooks session I had going in the other (openstack) environment, switching back to my local environment and running juju debug-hooks...11:56
noodles775ashipika: I've not yet worked with peer-relations, and right, the docs seem a bit sparse in that respect.11:57
bloodearnestashipika: peers-relation is the name in your charm of the relation. So you want to add peers-relation-relation-joined, for example (and also probably not include 'relation' in the relation name :)11:58
ashipikanoodles775: thnx for reply! i kind of figured it out.. but i still need to test it, which should be.. interesting :)11:58
ashipikabloodearnes: yes.. figured it out :) my mistake.. *dubmdumb*11:58
bloodearnestnoodles775: are there yet any semantics to required/provides/peer relation types?11:58
ashipikadocs could use a bit of polishing :)11:58
noodles775bloodearnest: idk - just reading up on peer relations.11:59
bloodearnestashipika: name of relations is hard (2 hard problems, etc) - my advice is to be very specific11:59
jamnoodles775: I actually thought "juju debug-hooks" didn't work at all in a local environment, because we don't have proper IP address detection yet12:00
bloodearneste.g. we have some relations called cached-website and some called website-cache, difficult to clearly remember which way round they are12:00
noodles775jam: works well for me :-) Soo much faster.12:00
ashipikabloodearnes: but i.e. peer_ip=`relation-get ip` should work in the relation-changed hook, correct? given that the relation-joined hook says relation-set ip=$IP12:02
bloodearnestashipika: yes, that should work in both -joined and -changed hooks AFAIK. But not sure about -broken or -departed12:03
ashipikabloodearnest: thnx.. trying to figure it out one step at a time :)12:03
bloodearnestashipika: ah wait, I misunderstood your question12:04
bloodearnestashipika: you do "relation-set ip XXX" in -joined, and you want to do "relation-get ip" in changed? Not sure that will work.12:05
bloodearnestbut it might :(12:06
bloodearnest:)12:06
ashipikabloodearnest: then who sets these variables?12:06
ashipikaauto-juju-magic? :D12:06
bloodearnestashipika: the other side of the relation, usually :)12:06
bloodearnestashipika: ip address is automatically provided by juju for example12:06
bloodearnestashipika: you shouldn't have to set it12:07
ashipikaip is just an example.. any variable.. i suppose relation-set should be used somewhere.. if i interpreted it correctly it should be in the relation-joined hook?12:07
bloodearnestashipika: yes, joined and changed usually (can often be identical)12:20
bloodearnestashipika: relation-set is for sending data to the other side of the relation. So one peer would set some value to other peers12:20
ashipikabloodearnest: peer relations.. are these supposed to be relation between two units of the same service?12:25
bloodearnestashipika: I believe so12:25
ashipikabloodearnes: so i gues, both units will run both hooks: joined and changed.. am i correct?12:26
bloodearnestashipika: the squid charm uses them for cache peering, for example12:26
bloodearnestashipika: yes12:26
ashipikaexcellent!12:26
=== gary_poster|away is now known as gary_poster
ashipikawhy do i get13:17
ashipikaPermission denied (publickey, password)13:17
ashipikaERROR exit status 25513:17
ashipikawhen i try juju debug-log?13:17
marcoceppiashipika: because there was a problem uploading your ssh key13:28
marcoceppiashipika: because there was a problem uploading your ssh key13:30
marcoceppiDo you have an ssh key generated?13:30
ashipikauser's ssh key?13:30
marcoceppiashipika: your ssh key13:30
marcoceppiashipika: do you have one?13:30
ashipikayes13:30
marcoceppiashipika: can you `juju ssh 0`13:31
ashipikanope :(13:32
ashipikasame error13:32
ashipikais there a requirement on permissions to my ssh keys?13:38
marcoceppiashipika: wait, do you have your .pub as well?13:41
marcoceppior just the private key13:41
ashipika.ssh/id_rsa.pub?13:42
ashipika.ssh contains id_rsa (private) and id_rsa.pub (public)13:42
marcoceppiashipika: huh, yeah that's what you need.13:43
marcoceppi.pub should be 064413:43
ashipikaboth have permission 60013:43
marcoceppieh, 600 should be okay too13:43
ashipikaaaah.. ok ok13:43
marcoceppiashipika: are you using local provider?13:43
ashipikanull13:43
ashipikamanual13:43
ashipikaone question: in juju status it says cpu-cores=1 even on a multi-core machine..14:04
marcoceppijcastro: we need a video on troubleshooing and debugging charms14:37
marcoceppiie: juju debug-hooks14:37
jcastromarcoceppi, ok14:48
jcastrowanna make one like tomorrow or something?14:48
marcoceppijcastro: yeah, just like a quick 10-15 min video14:48
marcoceppijuju debug-hooks, juju ssh + tailing logs, juju debug-log14:49
jcastrook we'll do it tomorrow14:51
jcastromaybe bust out two or so?14:52
marcoceppijcastro: yeah, sounds good14:52
ashipikaany clues as to why juju ssh 0 would not work?14:52
ashipikaor where to start debugging it?14:52
ashipika(manual provisioning)14:52
marcoceppiashipika: if you're getting an ssh key error, it's because your ssh key wasn't copied during enlistement. Manual provider is still under development14:55
ashipikaok.. thnx14:57
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
lazypowerDoes the EC2 side of root-disk constraints populate in EBS flavor? I've added --constraint "root-disk=50G" to my provisioning request, and the root disk is still at 8gb, i thought maybe it went into the /mnt directory, but thats provisioned with 318GB of ephemeral storage. In either case, it doesn't appear to have taken hold.16:06
marcoceppinatefinch: Does the EC2 side of root-disk constraints populate in EBS flavor? I've added --constraint "root-disk=50G" to my provisioning request, and the root disk is still at 8gb, i thought maybe it went into the /mnt directory, but thats provisioned with 318GB of ephemeral storage. In either case, it doesn't appear to have taken hold.16:19
marcoceppiper lazypower16:19
natefinchit should adjust the root (i.e. /  ) partition.   What version of Juju?16:21
mgznatefinch: it probably doesn't work with EBS16:23
mgzthe ec2 provider hardcodes /dev/sda116:23
natefinchmgz, right, no it doesn't.16:23
mgzand I'm pretty sure the root device comes up on something else when using EBS16:23
mgzlazypower: ^16:24
natefinchsorry, I neglected to pay attention to that part of the question, my bad.16:24
lazypowerHmm... interesting16:42
lazypower1.16.4-unknown-amd64 is the version of juju i'm running. Latest package in BREW16:42
marcoceppilazypower: 1.16.5 was released a wee bit ago, brew should have been updated but there may have been a snag16:43
lazypowerLet me run another update, make sure i am indeed on -HEAD16:43
lazypowerHere comes 1.16.5 - it made it in.16:44
mgzlazypower: if the issue is what it appears to be, nothing has changed in 1.16.516:45
mgzif you can not use an EBS image, everything should be fine16:45
lazypowerWell my concern is the volume for my MongoDB BSON data globs. Those need ot reside on a disk larger than 8gb. Let me poke around in the charm store and see if there's a related charm for mapping extra disk space.16:46
lazypowerI dont like the idea of having it live in ephemeral storage. If the box reboots, poof goes the data16:46
mgzthere are certainly charms that add extra (persistent) even storage though hacks for use with dbs etc16:46
mgzI'm not sure of a good one to point you at, the ones I've seen are pretty hairy16:47
lazypowerYeah thats why I avoided them initially16:47
lazypowerSo i completely understand where you're coming from there.16:47
mgzmarcoceppi: have we got any charms/helpers that do sane things with persistent storage?16:47
lazypowerIdeally i can do this manually - but when someone comes behind me ot modify this tech stack, I'd like it to be as straight forward as possible. If there are hidden things that weren't performed by juju, chances are they will assume it comes that way out of the box.16:48
marcoceppimgz: not really, we don't have a consistent persistent stoarge story within juju. The best we have is using like NFS or gluster to string servers as storage16:48
jcastromarcoceppi, when doing these README updates, should I care about line wrapping at 80 or not?16:49
marcoceppijcastro: no, it gets parsed either way16:49
marcoceppijcastro: I just noticed on the merges17:00
marcoceppiwhy are you using h2 instead of h1 for headers in the README?17:00
marcoceppi(## vs #)17:00
jcastro# Looks too big17:04
jcastroand the title on the GUI is like the H117:04
lazypowerI did the same thing Jorge. Using h2's for my sub-headers and h1 for the charm title17:05
jcastrolike if you move to the other tabs in the GUI17:05
jcastrofor the non readme sections, they're H2ish17:05
marcoceppijcastro: cool17:06
jcastromarcoceppi, when doing the audit on mysql I get this17:06
jcastroW: config.yaml: option vip does not have the keys: default17:06
jcastroI can probably fix that by setting the proper key right?17:06
marcoceppijcastro: yeah, vip needs a default key in the config.yaml, and it needs to be set to empty string ""17:07
jcastrook17:07
jcastrosince that changes something that isn't a readme I will MP that one17:07
marcoceppijcastro: ack, thanks17:07
marcoceppijcastro: that'll allow me to test to make sure "" is acceptable as a default17:08
jcastroI think it's '' isn't it?17:10
jcastrohmm, this file seems to use " and ' interchangeably17:10
marcoceppijcastro: it's interchangeable17:12
jcastrook17:12
jcastroI wonder if we should standardize?17:13
jcastroat least within the same file?17:13
marcoceppijcastro: we should have the GUI render everything in the README h1 tags smaller17:16
marcoceppiIMO17:16
jcastroyeah it wasn't something I did on purpose17:17
jcastroit was just "oh, the readme will be part of a bigger page, so start as a subheading"17:17
marcoceppijcastro: meh, doesn't matter either way17:17
jcastrowell, decide now17:17
jcastrobecause I've done 217:17
marcoceppijcastro: Okay, well we can never assume the readme is going to be part of a larger page, it's its own document and should be formatted as such17:18
jcastroalso, am I going crazy or was `juju add readme` real?17:18
jcastrook, I'll update the 2 charms now then17:18
marcoceppieverything else should bend to it's will17:18
marcoceppijcastro: it's being added, juju charm add readme17:18
marcoceppi1.2.417:18
marcoceppijcastro: I'll patch the README too, no need to MR17:19
jcastrothe template you mean?17:19
jcastrook I'll do mysql and ubuntu17:19
marcoceppijcastro: yeah, the template17:20
marcoceppisince I'm already there rummaging around17:20
jcastroindeed17:24
mxcso i finally "solved" my azure issue... migrated to AWS17:28
mxcbut, quick question about configuration, shouldn't:17:29
mxc> juju get mongodb17:29
mxcERROR service "mongodb" not found17:29
mxcshow me the config file?17:29
marcoceppimxc: yes, is mongodb deployed and in juju status?17:30
marcoceppijcastro: 1.2.4 charm-tools uploaded to ppa, should be built soon17:30
mxcahh, no, not yet17:30
mxcI was trying to get the scaffolded config file17:30
mxcthanks marcoceppi17:30
marcoceppimxc: yeah, that queries the deployment, to get the config you'll need to either download the charm or look online17:31
* marcoceppi makes a bug to add juju charm config <charm>17:31
mxcok, got it.17:31
jcastrohey17:32
jcastrothat sounds like an awesome idea though17:32
mxcmay be a good idea to add a note about that in the docs..17:32
jcastroget config options even if it isn't deployed17:32
jcastrojuju info config17:32
jcastrojuju info readme17:32
jcastroetc.17:32
mxcplease and thank you17:32
jcastrosorry, I mean charm info config, charm  info readme17:32
mxcif i wanted to work on that, i'd need to create a launchpad account, install bzr, and relearn bar rigt17:33
marcoceppijcastro: yeah, created this: https://bugs.launchpad.net/charm-tools/+bug/126041917:33
_mup_Bug #1260419: add config key for listing configuration of a charm <Juju Charm Tools:Triaged by marcoceppi> <https://launchpad.net/bugs/1260419>17:33
marcoceppimxc: for the most part, yes17:33
jcastroyeah that way you can read up on the options, since you have to wait for the instance to fire up anyway17:33
marcoceppijcastro: def, probably going to make that a 1.3.0 feature17:34
mxcpart me of wishes canonical would surrender and move to github17:34
marcoceppisince juju charm info <charm> already exists, I didn't want to make juju charm info readme <>17:34
marcoceppitoo much typing17:34
marcoceppimxc: I used to mirror charm-tools and amulet on github, but it's too much work to be able to accept merge proposals from both sources :\17:35
jcastrowe have mirrors of the charms in github currently17:35
mxcmarcoceppi: i know..  trying to have it both ways is a monstrous pain in the ass..  i just have this hopeless hope that shuttleworth gives up and moves everything to github17:36
mxcis there a way to use a file besides .juju/environments.yaml to bootstrap?18:06
natefinchmxc: no18:11
mxcok, thanks18:12
jcastrohey marcoceppi18:28
jcastroso I am unofficially going to also consider warnings as bugs as part of the audit18:29
jcastroif I'm going to go through each one, might as well get bang for the buck18:29
marcoceppijcastro: yeah, warnings are bugs18:36
marcoceppierrors means they shouldn't even be in the store18:36
jcastroack18:37
=== BradCrittenden is now known as bac
marcoceppijcastro: 1.2.4 has landed, feel free to update19:36
jcastroON IT19:36
jcastroarosales, https://pastebin.canonical.com/101920/19:39
arosalesjcastro, thanks19:39
jcastrobbiab, new kernel19:40
marcoceppijcastro: charm add readme workin' okay?19:51
jcastroI haven't used it yet19:51
jcastrothe last 2 readmes I did were mostly complete19:52
jcastrotrying it now19:52
jcastromarcoceppi, hey so19:55
jcastroif we want to make new charms pass tests19:55
jcastrowhere can I see where my charm's tests results are?19:55
jcastrolike, show me an example of a charm that is flunking its tests19:55
andre__hi19:56
=== andre__ is now known as Guest97524
jcastromarcoceppi, charm add readme works awesome btw19:56
marcoceppijcastro: no where, atm, but I'm not saying we should require to pass, we should have a policy that charms should have tests19:56
jcastrotrue19:56
marcoceppiwe should have a testing infrastructure up early Jan19:57
jcastrohey so what do you tell people now  when they submit but they don't have tests19:57
marcoceppimid-early jan19:57
Guest97524I am trying to deploy using juju but I cannot do more than bootstrap19:57
jcastroGuest97524, what happens?19:57
Guest97524can anybody help me please?19:57
marcoceppijcastro: I'm saying, everything in the queue gets grandfathered, added to audit, and commented that tests will be a req. Everything else going forward, after udpating the docs, we fail review because of no tests19:58
Guest97524so, appearentely juju bootstraps successfully19:58
jcastroright19:58
jcastrook so what we need to do is propose "every new charm from now on must include tests" as policy19:58
marcoceppiGuest97524: what happens when you try to deploy? can you run deploy with --debug --show-log19:58
jcastromarcoceppi, but does it make sense to do that now before the infra is up?19:59
jcastromaybe I can strongly hint that that's coming19:59
* marcoceppi shrugs at jcastro19:59
jcastrook20:00
jcastroI'll send a strawman to the list for input20:00
marcoceppijcastro: cool20:00
Guest97524but, when I try to run juju status, it keeps saying: connection refused (--debug flag)20:00
jcastrobasically, new charms will include tests, deal with it.20:00
jcastroGuest97524, did you wait for the bootstrap to come up first?20:00
marcoceppiGuest97524: that means bootstrap likely failed, what provider are you using20:00
jcastrothat usually takes a few minutes20:00
Guest97524I mean, bootstrap doesn't report any errors, even with debug and show-log20:01
Guest97524I'm using it to deploy on a MaaS environment20:01
marcoceppiGuest97524: bootstrap is an asyncronous process, it could fail in certain ways20:01
marcoceppiGuest97524: ah, do you see a node provisioned in you maas master?20:01
Guest97524the MaaS controller allocates a random machine, but juju doesn't install anything on it20:02
marcoceppiGuest97524: can you see if there is anything in /var/log/cloud-init* ?20:02
arosalesmarcoceppi, jcastro I am a +1 for tests in charms and I acknowledge that existing charms should be grandfathered20:02
marcoceppion the maas machine20:02
Guest97524and there's not even a juju log in /var/logs20:02
arosalesbut we should promote the audit to have all charms with test and encourages maintainers to add tests20:03
arosalesgoing forward policy review should have a check for tests20:03
arosalesjcastro, to confirm you are going to propose to the list as policy, correct?20:03
jcastrowriting it up now20:03
marcoceppiGuest97524: right, because it likely failed during provisioning. Is there a cloud-init log?20:03
arosalesjcastro, re your paste bin can we also get the Blueprint sync'ed up with the effort and process to reference in your post20:03
* jcastro nods20:04
Guest97524there is a cloud-init log20:04
marcoceppiGuest97524: can you pastebin that log to http://paste.ubuntu.com ?20:04
Guest97524apparently without any errors20:04
jcastrohttps://blueprints.launchpad.net/juju-core/+spec/t-cloud-juju-charm-audit20:04
jcastrothis one  right arosales?20:04
Guest97524sure: http://paste.ubuntu.com/6563207/20:05
arosalesjcastro,  ya  I think that is our latest :-)20:05
marcoceppiGuest97524: something's wrong. What version of juju are you using?20:06
arosalesjcastro, I would also specifically spell out in your post the main points to review in the audit and tools to help do so (ie charm tools)20:06
Guest97524I am using version 1.16.520:06
marcoceppiGuest97524: and what version of MAAS?20:06
marcoceppiGuest97524: Are you using the one from the cloud archive?20:07
Guest97524my client machine is a saucy release, while the maas controller and machines are precise release20:07
arosalesjcastro, the points to review to ensure folks know what a readme should look like (include example usage), description about the charm, icons, tests, passes proof, etc20:08
Guest97524maas version: 1.5.420:08
jcastroarosales, yeah, the issue is that the email is getting long20:09
jcastroarosales, I was thinking of just adding all of those things to the review policy instead20:09
Guest97524I got juju from ppa repository (ppa:juju/stable)20:09
jcastrowhich is where it should be anyway20:09
arosalesjcastro, I'll fire up a pad20:09
arosalesjcastro, policy should have it for sure.20:10
arosalesperhaps put the details in the blueprint20:10
arosalesand reference it there. .  .20:10
jcastroyeah20:10
jcastrogood idea20:10
jcastroI'll do that20:10
arosalesjcastro, thanks20:10
marcoceppiGuest97524: latest maas is 1.420:11
arosalesjcastro, I am updating http://pad.ubuntu.com/bxNaItLUMi from your initial thoughts20:11
Guest97524'sudo maas --version' gives me 1.5.4, updated it today20:12
Guest97524it is strange because MaaS allocates the machine, but nothing happens on it20:17
marcoceppiGuest97524: It's not getting the user-data which drives cloud-init to complete the setup20:20
arosalesjcastro, I updated the perms on the ss to be open to all to edit.20:20
jcastromarcoceppi, pretend I want to get started writing tests for my charm, you send me to ... ?20:20
marcoceppijcastro: the docs I'm writing20:20
jcastromarcoceppi, when will you have those? ballpark?20:22
marcoceppieow20:22
arosalesjcastro, http://pad.ubuntu.com/bxNaItLUMi looks good20:26
arosalesjcastro, to confirm you are going to reconcile the blueprint,  propose testing to the list, and email the list on the Great Charm Audit of 2014, correct?20:27
jcastrotesting has been proposed20:29
jcastrofinishing up the pad now, will reconcile the blueprint and then send to list in about ~1020:29
jcastroto finish up all those things20:29
arosalesjcastro, thanks!20:32
arosalesno escaping the The Great Charm Audit of 2014 now20:32
dpb1jcastro: I would like to write some tests for my charms, but I'm having trouble finding out how to write a juju test at all.  I understand how to write python tests, but not how to write a juju test.  other than to come up with my own harness.20:56
jcastrodpb1, heh, marco is in the process of writing that document right now20:57
jcastroshould be ready tomorrow20:57
jcastromarcoceppi, do you have a TLDR for dpb1 so he can get started?20:57
lazypowerdpb1: there is ane xisting document about charm testing. Have you seen it? https://juju.ubuntu.com/docs/authors-testing.html20:57
lazypower*existing20:58
marcoceppilazypower: dpb1 that docs just go over some bash stuff20:58
marcoceppidpb1: I can show you a few example tests I've written if that helps20:58
dpb1marcoceppi: would love to see that.20:59
marcoceppidpb1: here's an example wordpress test https://gist.github.com/marcoceppi/772754320:59
dpb1lazypower: I'll look that over.  I've seen it before, but maybe it has more content now.21:00
marcoceppidpb1: there's also amulet.PASS and amulet.FAIL statuses you can raise to denote the state of the test21:00
dpb1marcoceppi: I attemted to use amulet, but ran into issues with subordinates, btw.  I haven't narrowed down the cause yet.21:01
marcoceppidpb1: here's another example: https://gist.github.com/marcoceppi/677961621:01
dpb1marcoceppi: when I do, I'll let you know.21:01
marcoceppidpb1: which subordinate? ones you're deploying or the ones it creates?21:01
dpb1marcoceppi: when i attempted to relate them.  It had some namespace type of issues.21:01
dpb1the...21:01
dpb1sentinels.21:01
marcoceppidpb1: yeah, juju broke amulet for a while21:02
marcoceppidpb1: that's been patched21:02
dpb1ok... I'll give it another shot21:02
marcoceppiI believe since 1.16.121:02
dpb1ok21:02
dpb1jcastro: marcoceppi: I'll give it another shot.  But that was the first thing that came into my mind with the "line in the sand" email, is I didn't really know how to do it yet. :)21:03
marcoceppidpb1: yeah, I'm writing docs to dive in to amulet stuff more, as well as improving the generic testing page21:04
dpb1cool21:04
jcastrodpb1, yeah I wanted to get that discussion started too21:04
jcastroso marco can go "see how easy it is?" as a follow up21:04
dpb1OK, looking forward to the improvments.  I'll give it another shot and get you something specific back if I hit issues.  Thanks.21:05
jcastromarcoceppi, actually, if you're not going to land that document today it doesn't hurt to reply to my mail with "here's a tldr" with those examples, and just let people know you'll have it ready tomorrow21:05
marcoceppidpb1: thanks! any feedback, bugs, whatever, is appreciated. I'm looking to pump a lot of the feedback in to amulet to make it better21:08
dpb1marcoceppi: great! :)21:14
dpb1marcoceppi: first question: how do I add the charm from my branch? "d.add('mysql')"22:12
marcoceppidpb1: just add it as you would, the framework intercepts it and will deploy from local for a matching name22:13
dpb1marcoceppi: ok... let me try22:13
marcoceppidpb1: if you wanted to deploy a same name charm, you should use a full cs URL22:13
dpb1marcoceppi: and to test something *on the unit*, I should call out to juju ssh?22:17
marcoceppidpb1: at the moment yes, there's an exec endpoint but it's not stable yet22:18
dpb1ok22:18
marcoceppidpb1: let me check, I may have landed the exec already22:18
marcoceppidpb1: yeah, so the "run" api endpoint exists in the sentry, but it's not in the amulet library, I'll make sure that gets released tonight22:20
dpb1marcoceppi: sweet, I'll look for it22:21
marcoceppidpb1: yeah, I'll mail the list when the new amulet version drops, docs will co-incide with that22:21
dpb1k22:21
dpb1marcoceppi: so, here is my first attempt:  I installed amulet via apt-get install amulet from the stable ppa  http://paste.ubuntu.com/6563839/22:26
marcoceppidpb1: is swap your charm? Looks like it's not loading from the local branch22:29
marcoceppidpb1: the test looks good though, let me file a bug and look into local branch switching22:29
dpb1marcoceppi: yes, it's a new subordinate that just adds swap to a system22:30
dpb1I put up a review for it, but was going to use it as a test bed for... writing an amulet test. :)22:30
=== gary_poster is now known as gary_poster|away
marcoceppidpb1: yeah, I see the problem in the code. I'll have a new release out tonight. Thanks for being a guiena pig ;)22:33
dpb1marcoceppi: np.  I'll circle back around tonight when I see it and give it some more testing.22:34
marcoceppidpb1: many thanks!22:34
mxcis there a way to fine tune the security group settings on EC2?  For example, if i spin up some charms, juju defaults to opening up 22, 17070, and 37017 to 0.0.0.022:51
mxci thought the "idea" of juju relations was that it only opens the ports it needs to and only to the other machine in the relation22:52
mxcthis seems to be the only option: http://askubuntu.com/questions/156715/can-i-specify-tighter-security-group-controls-in-ec222:54
mxcnext question, has anyone deployed mongodb with juju and enabled the mongo monitoring service?23:17
marcoceppimxc: lazypower was looking in to that23:47
mxcwoohoo23:48
mxclazypower: if you;re around and want to chat MMS, i'd be happy to push any work I do on it back upstream23:49
lazypowerSurely. I'm working on another charm but i'm certainly available23:51
mxcmsg ok?23:51
lazypowermxc: my thought was to build MMS into its own subordinate. Its a python app and not packaged as part of MongoDB core. It diverged earlier this year.23:51
lazypowersurely23:51
mxcactually, never mind, this may be useful to others23:52
mxclazypower: i saw that it diverged.  the mongodb config though has placeholders for some mms-fields23:52
mxclazypower: i was kind of hoping that it was built in to the charm, but i see its not23:52
lazypowerAccording to Jira those are to be treated as leftover artifacts from the exploratory dev cycle.23:52
lazypowerThe placeholder config options do nothing. The daemon actually skips them23:53
lazypowerNow, I can see why we would want to put it into the mongodb unit, however, the MMS service was meant to run from anywhere and monitor any MongoDB installation that you have valid connection credentials for. There are performance tuners that want every last drop of system resource to go to the MongoDB Daemon itself. My co-worker is like that. We ended up sticking MMS on one of our Jenkins slaves that doesn't power down.23:54
lazypower</anecdotal>23:55
mxccan you think of any similar, subordinate service charms to use as a skeleton?23:56
lazypowerSubordinates are surprisingly simple to write. I wrote a papertrail charm that sets up papertrailapp's gem for log monitoring. Its somewhat similar.23:57
lazypowerin a kinda not really sorta way23:57
lazypowermarcoceppi: can you think of any subordinate services that compliment a parent charm that mxc could use as a guide?23:57
mxcpapertrail could be close enough23:58
lazypowermxc: preference between github or launchpad23:58
mxchugely for github23:58
lazypowerhttps://github.com/chuckbutler/papertrail-charm23:59
mxcthanks23:59
lazypowerWait, the readme is outdated here23:59
lazypowerlet me see whats up with that23:59

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