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

mwhudsonhello00:11
mwhudsonis it possible to compile juju with gccgo?00:11
mwhudsonasking because it would be cool to run juju on (simulated) arm64 nodes00:11
davecheneymwhudson: maybe, i've never tried00:15
davecheneyi'd be interested in hearing your results00:15
davecheneya few00:15
davecheneythings00:15
mwhudsoni guess i only need to compile the 'tools' with gccgo?00:15
davecheney1. i thought that arm32 could run on arm6400:15
davecheneymwhudson: oh, that is going to make it it a lot harder00:16
mwhudsonharder?00:16
mwhudsoni don't need to do that i guess00:16
davecheneyi think we hard code the gc toolchain00:16
davecheney2. does gccgo support arm64 ?00:16
mwhudsonnot all arm64 implementations can run arm32, though indeed most can00:16
davecheneymwhudson: can the implemetation you are planinng on deploying to run arm32 bins00:16
davecheney?00:16
davecheneyoh00:16
mwhudsondavecheney: i heard rumours that it does but i don't know00:16
mwhudsonum, i don't know :)00:17
davecheneyand if lsb_release -a returns aarch64 or something then there will be more problems00:17
mwhudsoncurrently just targeting the arm foundation model00:17
davecheneymwhudson: you're brave00:17
davecheneyi don't have 5 years to spend waiting for it to compile00:17
mwhudsonhm00:17
mwhudsondarn it00:17
mwhudsonmy build of aarch64-unknown-linux-gnu-gccgo just failed :(00:18
davecheneymwhudson: i'm sure i can knock up a branch or the release tarball that will *think* it is aarch64 when its' just arm3200:18
davecheneymwhudson: that doens't suprise me00:18
mwhudsonmake[4]: *** No rule to make target `../libatomic/libatomic_convenience.la', needed by `libgo.la'.  Stop.00:18
davecheneyno offense to the fast model developers00:18
mwhudsonuh hah, that looks architecture dependent00:18
davecheneybut unless you are paid to use the fast model00:19
davecheneyit's not worth your time00:19
mwhudsondavecheney: i'm not going to _build_ anything on the fast model00:19
mwhudsoni'm not that daft00:19
davecheney:)00:19
davecheneymwhudson: i'm pretty sure I can make a version of 1.12 that will bootstrap on arm6400:20
davecheneywith a little bit of hacking00:20
davecheneyyou'll have to use juju bootstrap --upload-tools00:20
kurt_is there a "condensed" version of juju status?  I'm fond of using watch in conjunction with status and my newer services are all pushing off the bottom of the terminal.  I guess I could do something fancy with perl or sed/awk.  But I'm lazy.00:20
mwhudsonright00:20
davecheneykurt_: juju status --format=json | something that understands json ?00:20
davecheneykurt_: you can also do00:20
mwhudsoni guess there is another issue looming, as i don't suppose juju has a provider that uses the foundation model00:20
davecheneyjuju status {service/unit}00:20
kurt_ah ok, thanks00:21
davecheneymwhudson: no, i don't think the foundation model is considered a cloud00:21
* davecheney shudders00:22
davecheneyi said coud00:22
davecheneycloud00:22
mwhudsonok, seems gccgo requires libatomic and libatomic isn't there on aarch64 yet00:24
davecheneymwhudson: also libgo contains a port of the go standard library from the Go project00:27
davecheneyand the Go standard lib doesn't have support for aarch64 atomics and things00:28
davecheneyso I'd say, unless it's been confirmed to work00:28
mwhudsonah ok00:28
davecheneygccgo won't work on aarch6400:28
mwhudsonso this is all a bit of a stretch00:28
mwhudsonthat's ok :)00:28
davecheneymwhudson: if you want to deploy juju workloads on aarch6400:43
davecheneyi recommend using the 32bit tools00:43
=== hloeung is now known as Guest71555
davecheneyof all the things that could go wrong, that would be the least of them00:43
=== Guest71555 is now known as hloeung
weblifem_3: finished those changes ( http://pastebin.com/UnFsJBNT ).  I need a little help with my bash (I never use python), when I reach the end of my for statement I want it install the PPA.  I thought $SHA = $shaCheck[::-1] would work but it doesn't.  I should enclose the entire statement for null if the config is left blank, do that later.03:09
weblifethis question goes to any other python pros03:09
sarnoldweblife: I would prefer to use the --status option to sha256sum or shasum program and not try to check the text value of the output03:19
sarnoldweblife: is there any way you can use gpg to verify the hashes?03:21
weblifesarnold: maybe this is my first experience of using hashes.  m_3 asked if I could make it do upstream verification, so gave it a try.  What do you mean --status?03:31
weblifejuju status?03:31
sarnoldweblife: sha256sum --status03:31
sarnoldweblife: that hides the output and lets you use the exit status of the sha256sum program to tell success/failure..03:32
weblifeif I recall from the help there is an algorithm option for option I saw to do something like that but I would need to find that document again.  Have no clue if its possible though. let me look.03:34
sarnoldweblife: "man shasum" or "man sha256sum"  :)03:35
sarnold(I haven't actually checked which sums are in the node upstream, I just sort of assume 256 by now..)03:35
weblifehttp://nodejs.org/dist/v0.10.16/SHASUMS.txt03:36
sarnoldaha, sha1sum03:36
sarnoldaha!03:37
sarnoldhttp://nodejs.org/dist/v0.10.16/SHASUMS256.txt03:37
weblifebut if it doesn't exist it gives you a only a return03:37
sarnoldand better still, there's a signed version :) http://nodejs.org/dist/v0.10.16/SHASUMS256.txt.asc03:38
sarnoldweblife: you can probably assume sha256sum will be provided in the future, if not the past. :)03:38
weblifesarnold: I can only try.  Which one SHASUMS256.txt.asc or SHASUMS256.txt.gpg ?03:41
sarnoldweblife: I'd use .asc03:41
weblifesarnold: back to researching this, your making this fun :x03:42
sarnoldweblife: woo! :)03:43
sarnoldweblife: I don't know how familiar you are with gpg, gpg --recv-key 6C481CF6 ; gpg SHASUMS256.txt.asc03:44
weblifesarnold: I'm not familiar with hashes at all :x  Never worried about it.03:46
sarnoldweblife :)03:47
weblifesarnold: It looks like I will still run into the same problem above if there is no matching file.03:59
weblifeI know nothing about hashes except for the basics and there is a lot to learn, gonna leave to the experts since I will probably never use these. Submitting as is soon as I figure this last check out.04:06
=== tasdomas_afk is now known as tasdomas
kurt_Hi - anyone on here know about deploying cinder on MAAS from juju-gui?05:57
marcoceppikurt_: I think we typically use ceph06:24
kurt_marcoceppi: jcastro passed this on to me today: http://pastebin.ubuntu.com/6003753/plain/06:25
kurt_the template you gave me uses cinder too06:25
kurt_ie. http://paste.ubuntu.com/6001802/06:25
kurt_marcoceppi: the template shows setting the block device to "None" and that seemed to work.  LOL, I'm not understanding how its allocating blocks if that's set to none.06:27
marcoceppiyou'd have to read the charm06:27
* marcoceppi checks06:27
marcoceppiare you taking about the charm itself? I don't see that in the paste06:28
kurt_I'm looking at the template you kindly passed on yesterday06:29
kurt_I think its your environments.yaml06:30
kurt_cinder is definitely included, and the block-device string is set to None06:31
kurt_"block-device": None06:31
marcoceppikurt_: I copied those settings from the following wiki06:32
=== defunctzombie_zz is now known as defunctzombie
marcoceppihttps://wiki.ubuntu.com/ServerTeam/OpenStackHA06:33
kurt_i c06:34
kurt_so its really either cinder or ceph, right?06:37
kurt_yawns…is tired06:38
=== rogpeppe1 is now known as rogpeppe
stubIs it on the roadmap for the local provider to use ephemeral lxc containers?09:55
=== defunctzombie is now known as defunctzombie_zz
=== natefinch is now known as natefinch-afk
=== robbiew1 is now known as robbiew
varudHello, I hate to be the guy that jumps in with a stupid question ... but I can't figure out what the point of the juju gui is?  Can I export from there to some sort of yaml file for deployment to MAAS or AWS?13:54
jamespageguh - anyone know which version of maas works with juju-core 1.12?13:55
jamespagemgz, jam: ^^13:55
jcastrovarud: yes. You can export deployments from the gui itself and then import them into other environments14:00
varudI just had an epiphany, the demo site is a demo site14:00
jcastrohazmat: heya, do you have docs somewhere on deployer?14:00
varudand I need to deploy juju-gui as a charm to my environment14:00
jcastroright14:00
varudWhile that's obvious now, it's extremely cryptic to somebody new to juju14:01
varudhad my head scratching for a while14:01
hazmatjcastro, there's some in source / sphinx docs directory.  i was going to publish to read the docs site14:01
jcastroany ideas on how we can make that more obvious?14:01
varudhttps://jujucharms.com/14:02
varudInstead of saying 'Environment on Demonstration'14:02
varudSay 'Demo Mode' with a link to https://juju.ubuntu.com/resources/the-juju-gui/14:02
mgzjamespage: er, the current vrsion of maas should, no?14:02
jamespagemgz, in precise?14:02
jcastrovarud: that's a good idea, I'll file the bug now14:02
jamespage#bang14:02
jamespagenope14:02
rick_hvarud: we're working through some demo/walkthrough material as recent feedback was just along your line there.14:02
varudOn a side note, while I've got your ear14:02
jcastrorick_h: oh nice, is that tracked anywhere?14:03
varudI'm trying to deploy OpenStack on one machine (I know, that's crazy)14:03
jcastrovarud: I am always all ears!14:03
varudand would like to use MaaS14:03
rick_hjcastro: not yea, came out of IoM feedback and the UX'y people are thinking/working on how to present it best14:03
mgzprecise almost certainly needs a newer thing, I'm not sure what the sru/backport status is14:03
varudBut doesn't there need to be a management node14:03
rick_hhazmat: let me know if you get it working, I was trying to get the charmworld api docs up on there and hit https://github.com/rtfd/readthedocs.org/issues/435#issuecomment-2292901514:04
jamespagemgz, there is a plan14:04
varudso in that case, I'll need to manually set up MaaS on a handcrafted VM on the machine14:04
varudand then deploy to the rest of the machine14:04
varudor am I missing something14:04
jcastroI think this is the virtual MAAS use case14:04
jcastrojamespage: right?14:04
jcastrobeing able to just do it all on one machine.14:04
hazmatjcastro,  rick_h, actually it wasn't read the docs i was doing the pypi doc setup direct with sphinx..  ala http://pythonhosted.org/an_example_pypi_project/buildanduploadsphinx.html14:05
rick_hhazmat: ah, never mind then14:05
jamespagejcastro, varud: hmm - that would work14:05
jamespagevarud, how big is your machine?14:05
hazmatjcastro, http://pythonhosted.org/juju-deployer/14:05
varud12 cores14:05
jcastrohazmat: I don't care where they are or in what format, I have an idea for a bundle and I'd like to play with deployer14:05
varud128GB RRAM14:05
jcastrohazmat: perfect!14:05
jcastrohazmat: so here's my idea. We take an openstack deployment and just use it as a bundle14:06
jcastroand then we tell people like varud, here is your openstack bundle, just deployer it.14:06
hazmatjcastro, sure there are a few examples of that, and its how we do openstack testing.14:06
jcastroright, so what I think we need to do is basically put the bundles somewhere14:07
varudOne more thing as a new juju person ... can you guys consider not using wordpress everywhere in your docs :-/14:07
hazmatjcastro, charmworld and gui support for bundles is coming14:07
jcastroso people can just fire it up instead of going through all the manual openstack steps14:07
jamespagevarud, should work OK14:07
jcastrovarud: I totally agree with that and we'll be updating that.14:07
rick_hjcastro: hazmat very soon14:07
hazmatjcastro, at which point openstack could just be deployed from the gui against a maas provider14:07
varudit makes it seem like juju is old ... which it's not14:07
jcastropeople think all we do is wordpress, lol14:07
jamespagevarud, lemme dig out the charm - you can run it standalone...14:07
varudput something sexier there14:07
jcastrovarud: what would you put in there?14:08
jcastrorick_h: when you say very soon, how soon?14:08
varudmaybe a bitcoin miner :-) I doubt people would like that though14:08
varudlet me think14:08
rick_hlike week-soon I believe. That's in charmworld. Then gui needs to show it.14:08
rick_hjcastro: ^14:08
jcastrorick_h: dude, that is awesome.14:08
jcastrorick_h: so, are you telling me that in a week people will be able to share and deploy bundles from the gui?14:09
rick_hjcastro: so end of week the plan is to support pulling bundles into the backend and start work on juju gui front end. Next week finish bundle workd in gui.14:09
rick_hjcastro: so end of month...worky worky14:10
jamespagevarud, https://code.launchpad.net/~virtual-maasers/charms/precise/virtual-maas/trunk14:10
jamespagevarud, I've not tried it standalone14:10
jcastrorick_h: so I think it'd be awesome to do an openstack bundle14:11
rick_hjcastro: definitely14:11
varudthanks jamespage14:11
jcastrowith or without vmass14:11
jcastrodepending on what jamespage says14:11
rick_hjcastro: yea, basically an addendum to the video Mat did deploying openstack via the gui14:11
jcastrorick_h: actually, openstack will probably be the hairiest bundle anyway, might as well use it as the testcase14:11
jamespagejcastro, I agree14:11
varudyes, since that video is why I'm here actually14:11
jcastrorick_h: awesome, so TLDR, you guys were already working on this.14:11
varudoutreach works14:11
rick_hjcastro: like "Here's the how to, now let's take the shortcut and use the bundle"14:12
jcastrokurt_ could have really used the bundle too14:12
rick_hjcastro: not creating the bundle specifically, but on the radar as a use case pushing the work14:12
* jcastro nods14:12
varudIn case my use case is relevant (I think it's not atypical actually)14:12
jcastronow my next question ... do we have a working bundle somewhere people can use with deployer in the meantime?14:12
jcastroyour use case is very relevant!14:12
varudI want to deploy all the openstack services on one machine isolated with LXC14:13
varudand then allocate nova-compute with KVM hypervisor14:13
varudusing MaaS14:13
varudas a proof of concept but one that's capable of handling real traffic14:13
* jcastro nods14:13
varudI think that scenario is a great way to dive into juju14:13
rick_hvarud: yep, and we're working on getting there bit by bit14:14
varudlet me know if I can help14:14
varudsince I'm basically focused on that very thing14:14
rick_hthanks varud14:15
varudAs for a replacement for wordpress in docs/demos, I'll think of something tonight ... hopefully Python based :-)14:18
varudLater and thanks for the help14:18
jcastrodiscourse maybe?14:18
jcastrothe one thing that we got feedback on is one time we did a talk on juju and demo'ed hadoop14:19
jcastroand a bunch of people didn't grok that14:19
jcastromaybe we should have a simple demo + an advanced demo14:19
varudthat looks great14:19
varudI was thinking of pelican and stuff like that but it doesn't show much since you don't need multiple services for a static site generator14:19
varudhadoop is certainly a use case but you want something that you can see14:20
varudowncloud might work too14:20
jrwrenis there a discourse charm?14:20
jcastroyeah, it's not in the store yet though, it's in ~marcoceppi14:21
varudor etherpad14:21
varudgotta go, but I'll be back on the list now that I know people are here14:21
jcastrojrwren: https://jujucharms.com/~marcoceppi/precise/discourse-HEAD14:22
varudI'm in Nairobi so UTC+3 is my day14:22
rick_hjrwren: doh, jcastro beat me to it14:22
varudI like discourse though, great idea14:22
jrwrensweet14:22
varudlater14:22
jrwrenlol @ tcmalloc. it must help ruby14:23
jcastrom_3: ping me when you're around14:26
=== tasdomas is now known as tasdomas_afk
=== varud is now known as varud_away
=== BradCrittenden is now known as bac
kurt_jcastro: good morning.  Something I'm wondering.  The guides all have cider for block storage, but I'm hearing ceph is the new direction.  Any comments on that?14:51
jcastroceph is the hotness14:52
jcastrojamespage: I am assuming we put cinder in the guides because that's the official openstack thing?14:53
jamespagekurt_, yes14:53
jamespagekurt_, ceph is implemented as a cinder backend for block storage14:54
jamespagekurt_, so the API is still cinder; its just backed by ceph rather than local disk + iscsi14:54
jamespagekurt_, and ceph freaking rocks!14:54
jamespagehighly scalable, highly avaliable storage - sweet!14:55
kurt_jamespage: are there any deployment guides you can share?  I've seen this: http://ceph.com/dev-notes/deploying-ceph-with-juju/14:55
* jamespage has to declare that he also maintains Ceph in Ubuntu....14:55
jamespagekurt_, are you using juju?14:55
jamespagethat might be a stupid question bearing in mind which channel we are in14:55
kurt_jamespage: yup14:55
kurt_lol14:55
=== natefinch-afk is now known as natefinch
jamespagekurt_, OK - so first of all deploy ceph using charms14:56
jamespageand then juju add-relation cinder ceph14:56
jamespageand juju add-relation nova-compute ceph14:56
jamespageand bobs your uncle14:56
kurt_lol14:57
jamespagekurt_, this is still current - http://javacruft.wordpress.com/2012/10/17/wrestling-the-cephalopod/14:57
kurt_does it matter the order of deployment?14:57
jamespageaside from the reference to nova-volume at the bottom.14:57
kurt_if I've already got cinder deployed?14:57
jamespagekurt_, so long as you have not already provisioned storage from cinder local disk you should be OK in any order14:57
kurt_cool14:58
kurt_I agreed ceph looks cool and promising14:58
kurt_agree rather14:58
kurt_jamespage: thanks for your comments15:03
jamespagekurt_, np15:03
kurt_jamespage: do you recommend not using the gui for the ceph portion and doing it manually as shown in the WP guide?15:04
jamespagekurt_, you can do it with the gui - the tricky bits are generating the uuid and the ceph monitor secret - unfortunately they still have to be done via a shell15:05
jamespagekurt_, do you just want to try it with a single node?15:05
jamespagethat is possible - its obviously not HA but its good for testing15:06
jamespageand limits machine consumption!15:06
kurt_I have 27 VMs at my disposal :D15:06
kurt_Maybe that's better for a proof of concept run15:07
kurt_The guide uses 3, which is also fine too15:07
kurt_but if you have guidance on single node deployment other than just doing -n3 and anything I couldn't figure out on my own, do share.15:08
m_3jcastro: hey15:08
jcastrom_3: hey for charm testing ....15:08
jcastrom_3: is there a way we could automate checking to see which ports a charm uses?15:09
jcastrom_3: so for example a bunch of private clouds only use 80/443, etc.15:09
=== freeflying is now known as freeflying_away
jamespagekurt_, I'd recommend a read of https://jujucharms.com/precise/ceph-14/#bws-readme15:09
jcastroAnd last week I added a best practice that charms shouldn't use weird ports15:09
jamespagekurt_, if you want todo it with a single node just drop the 'monitor-count' to 115:09
m_3jcastro: oh, not dynamically15:09
m_3jcastro: you just wanna see which 'open-port' calls are made15:10
kurt_ok, thanks jamespage15:10
jamespagekurt_, if your instances get ephemeral storage15:10
jamespageyou can use that for storage15:10
jamespageephemeral-unmount: /mnt15:10
jamespageshould ensure that this works ok15:10
jamespagewith osd-devices: /dev/vdb or whatever15:11
jcastrom_3: not just the open-port, I mean if you're doing weird stuff like adding GPG keys via a keyserver, stuff like that.15:11
jcastroso like let's say my charm uses some custom PPA or repo15:11
m_3jcastro: lemme look at status output... I just tore stuff down, so one minute15:11
kurt_this part of the deployment is new for me.  still some stuff to figure out15:11
jcastrom_3: this is more of a "hey I wonder if this is a good idea"15:12
m_3jcastro: wait, you mean _outbound_ traffic?15:12
m_3no15:12
m_3that'd probably be um... harder15:12
fwereadem_3, stub, marcoceppi: seeking opinions re https://bugs.launchpad.net/juju-core/+bug/1192433 -- I feel that early departure is a god idea for peers (as noted in bug) and for providers, but not for requirers, which run the risk of being cut off by the provider if they appear to depart early15:13
_mup_Bug #1192433: relation-list reporting dying units <jujud> <relations> <juju-core:Triaged by fwereade> <https://launchpad.net/bugs/1192433>15:13
m_3fwereade: k, looking15:14
fwereadem_3, the main issue is that this is actually the first provider/requirer asymetry we'd be implementing if we did this, and it's not clear what the impact might be -- if people have generally been using pro/req in the "natural" way -- ie requirers connect to providers -- it will be fine; but it will be somewhat surprising for any charms with relations implemented "backwards"15:17
m_3fwereade: and total confusion wrt subs imo15:18
m_3oh, wait but that wouldn't apply... nm15:18
fwereadem_3, I think it would still apply -- but I'm not sure the situation is actively different there15:19
fwereadem_3, it all hinges on how people have interpreted pro/req15:19
jcastrofwereade: https://juju.ubuntu.com/docs/authors-charms-in-action.html15:21
* m_3 wouldn't expect that to be consistent across charms15:21
m_3didn't william actually write that?15:22
jcastroyes15:23
jcastroat the sprint I moved it over to the docs15:23
jcastrojust wanted to point out that it got generated, etc15:23
m_3ah, gotcha15:23
fwereadejcastro, this change would involve a tweak or two there, tis true15:23
m_3hmmmm... I'm ok with asymmetry wrt prov/req... have to think a bit more about ramifications15:24
m_3fwereade: although I catch myself often blurring the line between juju's relation/service state and the actual state of the _service_ when thinking about dying or unresponsive counterparts in a relation15:26
fwereadem_3, yeah, a case could be made that it's the charm author's responsibility to deal with unresponsive relatives regardless, and that any situation that would be helped here is actually a symptom of a charm bug15:28
m_3but I guess the net result is the same with unresponsive bits... so earlier departure would work15:28
m_3fwereade: getting more info... in an actionable way (hook)... is probably easier to deal with though15:30
fwereadem_3, yeah, I would in general prefer to make charmers' lives easier ;)15:30
jamespagemgz, tried recent everything - still no luck - https://bugs.launchpad.net/juju-core/+bug/121445115:30
_mup_Bug #1214451: Unable to bootstrap maas environment <juju-core:New> <https://launchpad.net/bugs/1214451>15:30
mgzhmmm15:31
m_3fwereade: appreciate that!  yeah, I'm thinking that asymmetry (which is sort-of implied in the naming) is an ok thing given we're getting a lot more info from juju about the relation15:31
jamespagemgz, I got the same error with 12.04 maas + juju-core 1.12 fwiw15:32
jamespagejuju sync-tools worked like a dream tho!15:32
=== varud_away is now known as varud
=== varud is now known as varud_away
marcoceppifwereade: the problem is we never really enforce what provides and requires means, and since relations are bidirectional most charms just ignore it15:47
marcoceppiit being the convention of provides and requires. In fact, the whole idea of provides and requires is extremely opinionated from charm author to author15:49
roaksoaxjamespage: upgrade to whatever is in -proposed15:50
jamespageroaksoax, daily-backports works15:50
roaksoaxjamespage: that contains the fix for that maas error with juju core15:50
jamespageroaksoax, whats in -proposed?15:50
jamespageah - right15:51
roaksoaxjamespage: or that too. (yeah meant 12.04 -proposed for the SRU'd fixes)15:51
jamespageroaksoax, I'd rather test -proposed15:51
jamespageroaksoax, but downgrading maas is a purge/reinstall I suspect!15:51
roaksoaxyep15:52
fwereademarcoceppi, can you point me to some examples? ISTM that it can only really meaningly vary across unconnected groups of charms15:54
fwereademarcoceppi, hmm, well, I guess it's not necessarily transitive15:54
fwereademarcoceppi, but defining, say, an app server charm that *provides* both http and mysql would seem... surprising15:54
fwereademarcoceppi, but perhaps given that we don't enforce internal consistency it may be too much to ask :/15:55
marcoceppifwereade: let me see if I can find a few examples15:55
marcoceppiI vaguely remember coming across a few examples where a charm was providing an interface it actually meant to consume and another charm was requiring an interface it was to provide just to fit in with previous charms developed15:57
fwereademarcoceppi, m_3: quick aside: would you anticipate problems if we implemented perceived-early-departure for peer relations only (for now at least)?16:00
marcoceppifwereade:  I don't think that'd cause a problem, can't see that being an issue off the top of my head16:01
m_3fwereade: dunno... I was thinking haproxy before which is direct, non-peer relations16:14
m_3fwereade: but yeah, sounds reasonable to start with peers and we'll see where to go from there16:15
fwereadem_3, is there a problem with haproxy and early-provider-departure?I don't see it16:17
fwereadem_3, (I know that's not quite what you said, but I'm even more confused about that -- a peers change wouldn't affect it at all, surely?)16:17
=== teknico1 is now known as teknico
m_3fwereade: no, haproxy manages down relation counterparts at the service level... but it's the prototypical example of a charm needing `relation-list`16:29
m_3so it was the first one that popped to mind earlier16:29
=== TheRealMue is now known as TheMue
m_3but it could still eventually benefit from earlier notification of down relation counterparts (not peers)16:31
weblifegetting the following error with 'charm create test': Failed to find test in apt cache, creating an empty charm instead.16:33
marcoceppiweblife: that's not an error16:34
marcoceppithat's expected output of charm create, it's just saying that it can't find that name "test" in apt cache, it's creating an exmpty charm instead16:34
weblifeOkay but it seems to be missing things like the svg icon file. So I figured this was an error.16:36
marcoceppiweblife: make sure you're getting it from the ppa16:37
marcoceppiweblife: ppa:juju/pkgs16:37
weblifemarcoceppi: thank you as always16:38
sinzuihi ~charmers. I see https://jenkins.qa.ubuntu.com/ is not responding, and mange.jujucharms.com wants to collect charm test data from it17:16
sinzuiDo we need to change were test data is collected from?17:16
hazmatm_3,  do you know who maintains on that jenkins^17:19
m_3hazmat: there was a problem yesterday with jenkins version upgrades...  in #is17:21
hazmatm_3, thanks17:21
m_3sinzui: ^^17:21
sinzuithank m_317:21
m_3the jenkins build_publisher plugin is very sensitive to versions... but this was a bigger problem in general for jenkins.qa.ubuntu.com17:22
hazmatsinzui, fwiw the response i got back is that its being worked on from webops vanguard17:23
lamontit's a #is thing, not #webops, being actively worked since before I went checking17:25
sinzuihazmat, lamont fab. charmworld itself isn't broken, It is just logging a lot of hate17:26
* m_3 thinks it's destructive to internalize too much of that17:27
sarnoldhehe17:27
lamontheh17:28
lamontlogging hate is better than eating hate17:28
roaksoaxlin/win 317:39
beunolin/win!17:39
weblifeyeah back up and running normal17:49
adam_gjamespage, i think this fell by the wayside, any chance of a poke again? https://code.launchpad.net/~gandelman-a/charm-helpers/sync_include_hints/+merge/17432017:50
mhall119arosales: smoser: you guys have some Cloud & Server sessions imported into Summit, but they need to be added to the schedule.  I sent an email this morning about how to do that, let me know if you have any questions.17:53
arosalesmhall119, thanks I'll take a look at that today17:53
mhall119thanks arosales17:55
jamespageadam_g, +118:10
adam_gjamespage, cool. thanks. also, this look like a sensible approach? http://paste.ubuntu.com/6007366/18:15
=== varud_away is now known as varud
=== defunctzombie_zz is now known as defunctzombie
=== varud is now known as varud_away
natefincharosales: got a second to talk about juju on windows?18:54
adam_gjamespage, disregard that paste. such a config wouldn't really work19:02
arosalesnatefinch, hello19:03
arosalesnatefinch, sure, I don't know in what context but I am glad to talk19:04
natefincharosales: hi... Mark Ramm said you might have the info on our obligations for delivering juju on windows... and looks like I'm the one that'll be making sure we meet those obligations19:05
arosalesnatefinch, ah ok. Do you want to G+?19:06
natefincharosales: yeah, perfect19:06
arosalesnatefinch, https://plus.google.com/hangouts/_/2177b0954df808545cd6dac802822b1fcb7316bf?authuser=1&hl=en19:07
kurt_jamespage: you mentioned earlier about generating a ceph monitor secret and the uuid.  Must this be done on the node to be deployed on?  There's a bit of a chicken and egg thing if the answer is yes unless it's automated in the charm?19:07
marcoceppikurt_: I believe th uuid and secret are derived from the fsid which is a required configuration option needed at deploy time19:09
kurt_marcoceppi: pardon my ignorance, but are those indigenous to the node being deployed on - or can they be generated on a completely different node?19:10
marcoceppikurt_: they're the same between all nodes and are proivded by the user via configuration.19:11
marcoceppibasically you're just running juju set ceph fsid=`uuid`19:11
kurt_marcoceppi: but how do I create this? Is it a randomly generated thing?19:12
marcoceppikurt_: the fsid just needs to be a random string. The charm author recommends `uuid` but you could have it set to anything19:12
kurt_I am doing my deployment via MAAS19:12
kurt_ah, ok19:12
marcoceppikurt_: but it's set during deployment, so in the juju-gui, prior to deployment, you can fill the fsid with any random string19:13
kurt_And the same thing for the monitor secret?19:13
marcoceppikurt_: I assume so, let me check19:14
kurt_Can I assume I can use exactly what's already been used in the examples?19:14
marcoceppikurt_: which examples? I'd not recommend using anything in examples as it's the same reason there aren't default optoins for these. It creates an attack vector where someone knows the password to access your disks19:16
kurt_yes, understood19:16
marcoceppikurt_: the readme for monitor-secret recommends running `ceph-authtool /dev/stdout --name=mon. --gen-key`19:16
marcoceppiyou can run this on any node that has ceph-authrool, doesn't need to be run directly on the node19:16
marcoceppieven your local machine19:17
kurt_awesome, thanks.  I was going to run this on my maas master node, so that works.19:19
kurt_fyi - jamespage sent me this earlier:  http://javacruft.wordpress.com/2012/10/17/wrestling-the-cephalopod/19:19
kurt_he said its mostly up to date, just the nova bits at the bottom are out of date19:20
marcoceppikurt_: well, he did say mostly ;)19:20
kurt_true indeed19:21
marcoceppiWe realize MAAS + Juju and the openstack charm docs aren't quite up to date. The charms have had a lot of work done on them and there just hasn't been time to document everything. I hope we can resolve both of these soon19:21
kurt_I'm figuring it all out slowly but surely19:22
kurt_I'm 90% there19:22
marcoceppiplease feel free to document and report back what you find! We really apprecaite you working through all this19:22
kurt_sure.  I do plan to blog it.  I'm hoping for promotion from somebody over there once I get it done. :)19:23
kurt_maybe on one of your own blog sites19:23
marcoceppiid definitely promote it19:26
kurt_can I have url to your blog?19:26
marcoceppihttp://marcoceppi.com19:27
kurt_GRRR--several of my VMs crashed.  This may be too much stress for Fusion to handle.19:27
kurt_Thanks!19:27
=== varud_away is now known as varud
jamespagekurt_, that was all great advice about the ceph config options from marcoceppi19:46
=== varud is now known as varud_away
jcastrokurt_: huh did you mention earlier you're on juju .7?19:46
marcoceppijcastro: did he?19:47
kurt_yes19:48
kurt_.719:48
jcastroout of curiosity, how did you end up with that?19:48
jcastrodid you search via apt-cache search for juju or ... ?19:48
kurt_I was trying to remember19:49
kurt_maybe I installed from ppa?19:50
kurt_I started off from this guide http://ceph.com/dev-notes/deploying-ceph-with-juju/19:50
jcastroscuttlemonkey: heya, maybe that page should be updated?19:52
jcastrokurt_: so at some point when you're ready to do it all again for repeatability I'd like to see how juju 1.12 does with what you're trying19:53
kurt_sure.19:53
jcastroadam_g: though you guys are still just starting to test the openstack charms with juju-core right?19:53
kurt_I'm reeling from a vmware crash right now. :) I may have pushed it to it's limits19:53
adam_gjcastro, we are testing it19:54
jcastroas long as it's not our fault for the crashes I'm happy. :p19:54
kurt_LOL19:54
kurt_you would think vmware is stable as all get out19:54
kurt_ok, time for system reboot19:56
marcoceppijcastro: I would even say use 1.13 and wait for 1.14 - it's already better than 1.1219:56
scuttlemonkeyjcastro: wha?19:56
marcoceppiIn fact I have strong feelings about this whole odds are dev evens are stable, but that's for another channel another day.19:57
scuttlemonkeyoh, yeah it's a bit stale...I should at least put a warning on there until I can go through and clean it up19:57
jcastroscuttlemonkey: your older ceph/juju blogpost.19:57
scuttlemonkeyI'll drop a note box on top of it here in a few19:58
scuttlemonkeyhopefully have time to poke at it later this week19:58
kurt_scuttlemonkey: you wrote that?19:58
scuttlemonkeykurt_: yeah19:58
kurt_nice19:58
scuttlemonkeythx19:58
kurt_are you pmcgarry then? :)19:59
scuttlemonkeyyah, that's me19:59
kurt_ah ok.19:59
kurt_I'm doing the ceph stuff right now.  So I've been looking at it quite a bit.20:00
scuttlemonkeynice20:00
scuttlemonkeyceph-deploy has come a long way in the last couple weeks20:00
scuttlemonkeywas hoping I could set aside some time to put it against the charm and normalize things a bit20:00
scuttlemonkeybut I haven't really been watching the charm dev20:00
kurt_cool.  One point of slight confusion (from the layman <- that's me) was the notion of needing to create a monitor secret and fsid prior to deployment and that they are random20:01
kurt_not random20:01
kurt_but can be any string generated by the tools20:01
kurt_and that those tools can be on any node20:02
kurt_not necessarily the one being deployed to20:02
scuttlemonkeyahh20:02
kurt_I was talking through that with marcoceppi20:02
kurt_So maybe you could add information related to generating those two things?20:03
scuttlemonkeyI should see if I can talk alfredo into monkeying with the charms...he is doing most of the ceph-deploy work these days and even did the ansible playbooks20:03
scuttlemonkeydidn't I have that in there?20:04
kurt_Ok.  That would be awesome.  I'd also just be happy documenting the process too. :)20:04
jcastromaybe he can reuse the playbook in the charm?20:04
scuttlemonkeyWe need to generate a uuid and auth key for Ceph to use. > uuid insert this as the $fsid below > ceph-authtool /dev/stdout --name=$NAME --gen-key insert this as the $monitor-secret below. - See more at: http://ceph.com/dev-notes/deploying-ceph-with-juju/#sthash.1rrpTWly.dpuf20:04
jcastroFor an integration win!20:04
scuttlemonkeyjcastro: hehe inception-y goodness :)20:05
kurt_ah - was that there before???20:06
kurt_FFS, am I blind?20:06
scuttlemonkeykurt_: haha, yeah no worries :)20:06
scuttlemonkeyjcastro: ok, disclaimer included until I can get back to it20:07
jcastro<320:07
jcastroholla at me if you need anything20:07
kurt_Oh yeah - one more bit of feedback - your guide is tailored to AWS.  The steps aren't much different for a private deployment, right?20:07
kurt_if there is anything different, you may want to call it out20:07
scuttlemonkeyjcastro: will do, hopefully I can get alfredo all fired up :)20:08
jcastroyeah20:08
jcastroor maybe we should shove all that in the README20:08
jcastroalong with jamespage's blog post information20:08
scuttlemonkeykurt_: yeah, there are the potential for many so I wrote it for what I had and figured people would adapt as necessary20:08
kurt_and final thing w/r to "Prep for Ceph Deployment" section - you may want to make it clear those tools can be ran on *any* node that has the tools.  I know that's obvious for AWS, but not for someone doing a MAAS deployment.  That was where my confusion was.20:10
scuttlemonkeyahhh20:11
scuttlemonkeya fair point20:11
scuttlemonkeyok, wandering back off into the ether20:13
scuttlemonkeythanks for keeping me honest :)20:13
kurt_scuttlemonkey: thank you for your work with ceph and putting the guide together20:14
scuttlemonkeykurt_: my pleasure!20:15
=== varud_away is now known as varud
kurt_When my nodes go down, is there any easy way to restart juju services after a crash? Do I have to redeploy everything?20:39
kurt_ie.     agent-state: not-started20:39
kurt_This is actually my root-node, so I can't even "juju ssh 0" to the node to fiddle the bits20:42
kurt_Am I SOL and having to destroy the environment?20:44
kurt_ie. start from scratch (shudder)20:45
=== varud is now known as varud_away
kurt_it appears hosts don't like this condition and I'm forced to start over.  Is that a fair assumption?20:55
kurt_Nope figured it out.  http://askubuntu.com/questions/271312/what-to-do-when-juju-machine-0-has-got-agent-state-not-started-state20:58
weblife is it possible to upgrade a charm from a repository ? I tried this but no go: juju upgrade-charm --repository charms local:node-app21:07
=== freeflying_away is now known as freeflying
=== varud_away is now known as varud
=== varud is now known as varud_away
marcoceppiweblife: was the charm already deployed from local? or from charm store?21:48
weblifemarcoceppi: From local.  I just went ahead and re-deployed but if I can do it I would like to21:49
marcoceppiweblife: you don't need to specify local: next time21:50
marcoceppi juju upgrade-charm --repository charms node-app21:50
marcoceppisince juju already knows it's local:21:50
weblifebecause the charm is tagged already with local? but if I wanted to make it convert to charm store use cs:  ?21:51
marcoceppiweblife: so, fair warning I've only just recently learned about the switching part, and from what I've learned I'm terrified to use to too often21:51
marcoceppiWhen you're running upgrade-charm you never need to specify protocol (ie cs: or local:)21:52
weblifemarcoceppi: thank you for clarifying21:52
marcoceppiHowever. If you deployed a charm from the charm store you can switch to a local version using --switch21:52
hazmatroaksoax, ping21:53
marcoceppiweblife: I'd recommend looking at the output and warnings of `juju help upgrade-charm`21:53
marcoceppiweblife: if you were to pursue --switch21:53
weblifemarcoceppi: that sounds useful for testing a charm then customizing21:55
marcoceppiweblife: a good use case is "I've deployed from the store, and found a vital bug that I need to patch and can't wait"21:56
marcoceppiso you can switch to a local version with the hopes of eventually switching back to charm store (or not!)21:56
jcastrohttp://askubuntu.com/questions/335108/juju-cant-ssh-service-units21:57
jcastroI think he doesn't need the sudo right?21:57
marcoceppijcastro: did askubuntu bot stop?21:57
jcastroI might just be faster?21:57
marcoceppiI'll bounce it anyways21:57
kurt_Hey guys - I'm trying to recover from vmware crashing21:58
kurt_systematically going through and having to restart the agents, then reboot the nodes21:58
kurt_the gui is slow as molassis21:58
kurt_just spinning21:58
marcoceppijcastro: weird, I don't know any posts that recommend not having the ssh key in maas, in fact it didn't work when I tried.21:58
* marcoceppi looks forward to getting his maas setup running21:59
weblifethe bot is slow.  I made a post before and it lagged.21:59
kurt_any ideas, or am I pretty much SOL and need to destroy my entire set up?21:59
marcoceppiweblife jcastro it appears it errored out22:00
jcastrokurt_: it sounds to me like restarting everything will take longer22:00
weblifekurt_: vmware gui is super slow.  That was my experience when doing blackberry development.22:01
kurt_weblife: not vmware gui - juju-gui22:01
weblifekurt_: then I dunno, your SOL :)22:01
kurt_jcastro: I take it juju isn't very good at recovering from such situations?22:02
marcoceppikurt_: well the gui is communicating live via an API to bootstrap, so that might explain why it's so slow22:02
marcoceppikurt_: if you restart a machine Juju agents _should_ restart as long as the bootstrap node is running22:02
jcastrokurt_: I would capture the logs from the bootstrap and see what a core dev says22:03
jcastrobb later tonite, dinner22:03
kurt_marcoceppi: which logs - just debug?22:03
marcoceppikurt_: the bootstrap node has logs in /var/log/juju22:03
marcoceppiactually, all nodes have /var/log/juju/22:03
kurt_is the debug-log simply and aggregation of that info from all nodes?22:04
marcoceppikurt_: yeah... debug-log iirc, is just rsyslog forwarding all logs from all nodes to the bootstrap node, then just tailing that log22:04
kurt_ok, what I thought...22:05
kurt_nothing interesting there. darned22:06
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== varud_away is now known as varud
=== varud is now known as varud_away
hazmatkurt_, so re gui22:52
hazmatkurt_, if you reload it what do you see?22:52
kurt_heh heh, now that I ..just..seconds ago destroyed my environment? yes? :D22:53
hazmatdoh22:53
kurt_nothing - it just spins22:53
kurt_the basic palette was there, and its logged in, but the circle was just spinning22:53
hazmatkurt_, so typically in chrome, you can go into the inspector (right click inspect element), switch to network tab, reload the page.. and see the websocket traffic22:53
kurt_ah22:53
hazmatwhich is basically a connection to the environment22:53
kurt_I looked at the error and access logs for apache and didn't see anything really interesting either22:54
hazmatthe gui charm has to play a game, where it proxies the websocket api endpoint via haproxy, so that it can use the same ssl cert for serving up the page.. but its basically the same22:54
hazmatkurt_, you'd have to login to the gui unit and check the haproxy logs i suspect22:54
kurt_are there any common issues you've ran in to?22:55
hazmatkurt_, once things are in a steady state, your not going to find much interesting in the juju debug-log output22:55
hazmatkurt_, no22:55
hazmatkurt_, it generally just works22:55
hazmatkurt_, hence the curiosity around what went odd22:55
kurt_right.22:55
hazmatkurt_, you've got vmware, pxe boot instances registered in maas22:55
hazmat?22:55
kurt_yeah for sure22:56
hazmatkurt_, it could be a network issue between the gui proxy and the state server instance, or between the browser and the gui proxy.22:56
kurt_that whole part works, with of course the exception that vmware won't actually boot the nodes22:56
hazmati've seen similiar setups with virtualbox pxe it works... and we have an old kvm charm that does something similiar (virtual-maas)22:57
kurt_yes it could.  It may have been worth troubleshooting NAT.  Didn't think too deeply about that partl22:57
kurt_yes, I figured out kvm work, but it can use libvirt22:58
kurt_I'm working with one of the libvirt devs to get libvirt working correctly with vmware under mac osx, then I should be good22:59
kurt_hopefully then maas can boot vmware fusion like it does kvm22:59
hazmatcool23:00
kurt_but pxe under vmware with the lower cost versions is known not to work23:00
hazmati've heard the virtualbox w/ pxe + maas setup on osx works, though its a bit manual to setup23:00
hazmatalthough could be scripted23:00
kurt_sorry, let me rephrase - WOL does not work23:01
kurt_pie boot works fine23:01
hazmatah23:01
kurt_pxe boot23:01
* hazmat wishes there was a software emulation of ipmi23:01
kurt_that would be nice23:01
kurt_why don't you guys write the stack for it? :D23:02
hazmatwould make testing ipmi setups much simpler.. as it is now.. its get a bunch of hardware for a lab setup.23:02
kurt_pxe boot is working fine under vmware - its just the WOL stuff that I wished worked correctly23:02
kurt_that's part of what makes MAAS so cool23:03
kurt_it would be even cooler if it supported true elasticity23:04
adam_gusing juju-core, is it not possible to terminate a machine that is in the 'pending' state?23:06
hazmatadam_g, using what version ? sounds similar to https://bugs.launchpad.net/juju-core/+bug/119071523:08
_mup_Bug #1190715: unit destruction depends on unit agents <juju-core:Fix Committed by fwereade> <https://launchpad.net/bugs/1190715>23:08
hazmatits in trunk23:08
adam_ghazmat, 1.13.1-raring-amd64 + juju-deployer23:08
adam_ghazmat, thanks ill read that over in a few23:09
hazmatadam_g, is there anything in the provisioning logs?23:09
fwereadeadam_g, if it has a unit, you the unit's existence blocks the machine's removal; but you should be able to remove the unit and then the machine23:09
adam_ghazmat, actually, i just destroyed and rebootstrapped. ill check again in  a few23:09
fwereadeadam_g, it's awkward but shouldn't be unrecoverable23:10
adam_gfwereade, i successfully destroyed the service units associated with the pending machine.  after they were gone, i tried to terminate the machine but nothing happened23:10
adam_gill poke again in a few23:10
fwereadeadam_g, that's not immediately familiar; the provisioner ought to have picked that up then23:12
fwereadeadam_g, do you recall what the machine's life status was, and/or whether an instance id was set? those would help me figure it out23:13
adam_gfwereade, http://paste.ubuntu.com/6008312/23:15
adam_gmachines 5 and 9 were the ones that never came up to begin wtih, and seemed not to terminate23:15
adam_gunless i was being impatient23:15
adam_g(didnt notice the 'dying' state at the timne)23:15
fwereadeadam_g, yeah, the provisioner ought to have spotted that; the logs from machine 0 would be helpful23:16
adam_gfwereade, ill see what i can get together next time the provider decides not to give me a machine23:17
fwereadeadam_g, thanks23:19
adam_gfwereade, ok, back in the same situation23:29
adam_gprovider issue seems to be instance coming up with no networking23:30
* fwereade winces a bit23:30
adam_gfwereade, what do you want from machine 0? /var/log/juju/* ?23:30
fwereadeadam_g, machine-9.log should be enough23:31
fwereadeadam_g, -023:31
adam_gfwereade, http://paste.ubuntu.com/6008358/23:32
adam_g(machine-0.log)23:32
adam_ghttp://paste.ubuntu.com/6008361/23:32
adam_g(juju status(23:32
=== varud_away is now known as varud
fwereadeadam_g, hmm, not clear what's happening there... thumper, any thoughts?23:39
fwereadeadam_g, in a spirit of devilment, I'd be interested to know what happens if you kill the machine agent on 0 and see what happens when it comes back up23:39
thumper?!23:40
adam_gfwereade, here is some more log tail since last paste: http://paste.ubuntu.com/6008379/23:41
adam_gone sec, ill kill it23:41
adam_ghttp://paste.ubuntu.com/6008381/23:43
adam_gincluding kill and restart23:43
fwereadeadam_g, sorry, but I think I'm baffled for tonight -- would you create a bug please?23:48
fwereadeadam_g, maybe it'll be obvious in the morning but I'm not seeing it now23:48
=== varud is now known as varud_away
adam_gfwereade, sure23:50
adam_gfwereade, https://bugs.launchpad.net/juju-core/+bug/1214651.23:56
_mup_Bug #1214651: Machine stuck in 'pending' state cannot be terminated <juju-core:New> <https://launchpad.net/bugs/1214651>23:56
adam_gfwereade, thanks for the help so far23:56
fwereadeadam_g, thanks for the report :)23:57

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