/srv/irclogs.ubuntu.com/2013/08/14/#juju.txt

=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie is now known as defunctzombie_zz
=== CyberJacob|Away is now known as CyberJacob
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie_zz is now known as defunctzombie
=== tasdomas_afk is now known as tasdomas
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie is now known as defunctzombie_zz
marcoceppijamespage: ping06:40
jamespagemarcoceppi, hey06:41
marcoceppijamespage: thanks for your help yesterday, we had a question today about the ceph charm during our charm school06:41
jamespagemarcoceppi, fire away06:42
marcoceppifsid config option says "fsid of the ceph cluster. To generate a suitable value use `uuid`. This configuration element is mandatory and the service will fail on06:42
marcoceppi      install if it is not provided."06:42
marcoceppiWhy not just have the charm generate an fsid using uuid during a hook instead of having the charm fail deployment? Or, why have the charm fail at all, why not just silently wait until it's set?06:43
jamespagemarcoceppi, because it has to be consistent across all of the monitor nodes and there is no reliable way todo that in hooks (even cluster hooks)06:43
marcoceppijamespage: you can't have peer election of fsid?06:44
jamespagemarcoceppi, so injecting it as config (as well as the monitor secret) is a simpler and more reliable approach06:44
marcoceppijamespage: gotchya, any feedback on the second half of their question?06:44
jamespagemarcoceppi, well I wanted to ensure that a charm user knows that they have not done something required06:44
jamespageso erroring out the hook is pretty much the only way to provide feedback!06:45
marcoceppijamespage: right06:45
jamespagemarcoceppi, I guess I could have provided default values06:45
jamespagebut I wanted to avoid there being 100's of ceph clusters all with the same fsid and secret :-)06:46
marcoceppijamespage: yeah, it rubs me wrong because charms should provide sane defaults06:46
marcoceppibut I understand why it was done this way06:46
jamespagemarcoceppi, if we had a nice way of doing atomic sharing of stuff like this across peers then it would be a different approach06:46
marcoceppithey were just laughing at the idea of having to run uuid, and I didn't know enough about the charm to say why it didn't just do that06:47
marcoceppijamespage: what happens if you change the fsid after initial deployment? does it ruin everything or will the charm properly accept it?06:47
marcoceppican ceph handle a change in fsid*06:47
jamespagemarcoceppi, no it can't06:47
marcoceppiOkay, so that's why06:48
jamespagerequirement for immutable config - I have expressed this to the juju-core team06:48
marcoceppijamespage: what you have now is fine, I can echo that sentiiment saying "this affects users"06:48
marcoceppigive us immutable configs!06:48
marcoceppijamespage: thanks for the information06:48
jamespageplease!06:48
jamespagemarcoceppi, oh - the other thing is that changing source does not actually do anything post install06:48
jamespagemarcoceppi, I know some charms (like the openstack ones) support upgrades through that route06:50
jamespageceph does not06:50
marcoceppijamespage: thank you sir!07:01
jamespagemarcoceppi, np07:02
=== CyberJacob is now known as CyberJacob|Away
=== defunctzombie_zz is now known as defunctzombie
_mup_Bug #1212146 was filed: JuJu fails installing a unit (Failure: exceptions.KeyError: 'JUJU_ENV_UUID') <juju> <juju-jitsu> <maas> <twisted> <juju:New> <https://launchpad.net/bugs/1212146>08:24
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== jam1 is now known as jam
utlemmingwhat is the PPA where Juju pulls its mongodb from for juju-core?15:15
=== tasdomas is now known as tasdomas_afk
jamespageutlemming, ppa:juju/stable15:22
utlemmingjamespage: thank you kindly Mr. Page15:22
jamespagesidnei, for the life of me I could not work out why the lxc provider was using and apt proxy of "http://localhost:8000"15:23
jamespagesidnei, but then I realised it was using the setting from the host15:23
jamespagesidnei, which is my case self refers15:23
jamespage...15:23
sidneijamespage: you can change the host to use 10.0.3.1 which is the lxc bridge15:35
jamespagesidnei, yeah - testing that now15:35
sidneijamespage: im open to suggestions on how to improve that. hazmat suggested just assumming that if 3142 is listening on 10.0.3.1 just use that blindly, which i'm not a big fan of. squid-deb-client would auto-detect a proxy but that might be too magic.15:36
jamespagesidnei, hmm15:37
sidneimaybe the answer is just documenting15:37
jamespagesidnei, in my setup I actually run squid-deb-proxy on my laptop15:38
jamespageand I have it configured to use a peer squid-deb-proxy that I have at home if its contactable15:39
jamespageotherwise it just goes direct to the archive15:39
jamespagesidnei, the nice things is that everything is local off SSD with no network in the way15:39
jamespagesidnei, I'd be open to adding squid-deb-proxy to the juju-local package on the list of Depends15:39
sidneijamespage: i don't have any preference, but pyjuju had apt-cacher-ng instead15:41
jamespagesidnei, I never liked that personally15:42
jamespagesidnei, squid-deb-proxy is in main, apt-cacher-ng is not15:42
sidneithat's a pretty good argument :)15:42
sidneiapt-cacher-ng has some advantages that you can tell it to mirror a whole repo and there's a way to purge unused files manually, but again, for someone that's advanced enough to care they can set that up themselves15:43
jamespagesidnei, I agree its more repository aware15:44
jamespagesidnei, but me likes squid :-)15:44
jamespagesidnei, I swung big time when I realised it did intelligent peering15:44
jamespagesidnei, although its nicer in that apt-cacher-ng will map all *.archive.ubuntu.com to a single source15:46
sidnei*yes*15:46
jamespageoh - and welcome back debug-hooks15:48
* jamespage had missed that15:48
sidneijamespage: ultimately, you're in a better position to advise how to auto-configure the containers and wether to pick squid-deb-proxy or apt-cacher-ng than me.15:50
jamespagesidnei, OK _ lemme give it some thought15:53
arosalesjcastro, do you want to fire up the G+ for the weekly charm meeting?16:00
jcastroDSJFGHWERTHJFWEDFSA16:00
jcastroI totally forgot16:00
jcastrough16:01
jcastroI am totally unprepared16:01
jcastroone sec.16:01
jcastrohttps://plus.google.com/hangouts/_/62e91c8590f44673e739cf992bc2ac06bfebbc3d?authuser=0&hl=en16:02
arosalesWeekly charm meeting URL: https://juju.ubuntu.com/community/weekly-charm-meeting/16:02
arosalesether pad: http://pad.ubuntu.com/7mf2jvKXNa16:03
arosalesFor folks interested in joining our weekly charm meeting16:03
arosales^^16:03
evis there some trick to testing relation-get/relation-list outside of normal execution in gojuju. I vaguely recall being able to set the right envvars in pyjuju, but the socket path doesn't seem to stay around in gojuju16:20
evjust trying to test a for x in relation list; do relation-get private-address $x; done16:21
sidneiev, debug-hooks is back16:21
evsidnei: I've never entirely understood debug-hooks. I run it, I get tmux, and then I'm supposed to add relations and things to see them pop up in additional windows?16:22
sidneiev, correct. you trigger any hook and it will pop a new window, where you can do some manual stuff and optionally call ./hooks/<hook>16:23
evbut I'd like to just work with the current arrangement, rather than having to do an add-unit to force it to give me relation-get and relation-list16:23
evis this not possible?16:23
sidneiit may be possible, i just never bothered16:23
* ev shrugs16:24
evI'll give that a try16:24
evthanks!16:24
evthat worked. Thanks again, sidnei16:27
sidnei\o/16:28
=== CyberJacob|Away is now known as CyberJacob
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
jcastroarosales: ok I think I found a problem with the HP instructions18:50
jcastrobut it might be just me18:50
jcastroin the instructions the tenant-name is like evilnick-project118:50
jcastrobut in my HP cloud panel it's long number18:50
jcastroarosales: https://bugs.launchpad.net/juju-website/+bug/121239619:02
_mup_Bug #1212396: HP Cloud instructions need update <Juju Website:New for evilnick> <https://launchpad.net/bugs/1212396>19:02
arosalesjcastro, are you looking at the tenant name or id?19:03
arosalesjcastro, in the HP console go to19:03
jcastroyeah19:03
arosalesAccount --> Manage Projects19:03
jcastroright19:03
jcastrothat wasn't there before19:03
jcastrowhich is why the docs are out of date19:04
arosalesyou should see the project name, and then the ID19:04
jcastroI know where it is now19:04
arosalesya, the console has changed since the docs where screen cap'ed19:04
arosalesjcastro, what you want here is the "name" not the ID though19:04
jcastroright19:04
arosalesjcastro, thanks for updating it. Let me know if you need me to validate anything19:05
jcastroit's working for me now, did a deploy, etc.19:06
jcastroI wonder if we can set a watch on an HP cloud console page19:06
jcastroor if this will just be the nature of the beast19:06
=== dosaboy_1 is now known as dosaboy
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk
marcoceppijcastro: tennant name, tennant id, project name are all the same (though different values) it's the "Project Name" now in HP Cloud21:18
adam_guh. with juju-core,  how do i remove a relation between two services, when a previous relation joined hook had failed?22:36
adam_gagent-state-info: 'hook failed: "relation-joined"22:36
adam_gremove-relation command succceeds, but the relation isn't actually removed. and i am unable to re-add it22:37
thumper:(22:37
thumpersounds like a bug22:37
thumperadam_g: is there a --force or something?22:38
adam_gthumper, doesn't look like it22:38
adam_gFWIW, i see the unit attempting to fire the departed and broken hook. but in this case, the charm does not implement either22:39
marcoceppiadam_g: we ran in to this yesterday. juju resolved the service22:54
adam_gmarcoceppi, huh?22:55
=== CyberJacob|Away is now known as CyberJacob
marcoceppiadam_g: if service is in an error state you can't process anymore actions against it until the service/unit has been resolved. Meaning the remove-relation was accepted by bootstrap and is queued until you resolve the relation error on the unit.23:18
marcoceppirunning juju resolved aganist the machine until it drops out of error would then allow it to continue processing the events queued (removal) which would then allow you to re-add the relation23:19
adam_gmarcoceppi, oh, i read your last comment differently. yeah, i believe i tried to resolve the error and remove the relation23:19
marcoceppiadam_g: I noticed, yesterday, that we had to run resolved a few times to get a unit back to health, fwiw23:19

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