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

m_3lifeless: cool thanks00:00
=== TheRealMue is now known as TheMue
=== almaisan-away is now known as al-maisan
twobottuxaujuju: How to SSH into local juju instance? <http://askubuntu.com/questions/152428/how-to-ssh-into-local-juju-instance>08:25
shanghi, anyone knows where I can find more documents on MAAS? like BIOS update, firmware upgrade... etc08:51
=== mcclurmc_ is now known as mcclurmc
hazmatlifeless, i'm not really understanding what your looknig for re " so, what I'd really like is to be able to shove juju into an lxc and give it a single callback to a 127.0.0.1 only service to fire up more lxc's,  that would let me run multiple juju environments"12:12
jmlhello all13:22
jmlI have a django app that I'm developing that I'd really like to get into a charm13:22
=== al-maisan is now known as almaisan-away
=== zyga is now known as zyga-food
jcastrojml: mhall119 is working on a django charm generator thing13:50
jmljcastro: ah thanks. I was sort of hoping to get something up today. noodles pointed me at his blog post (http://micknelson.wordpress.com/2011/11/22/a-generic-juju-charm-for-django-apps/)13:53
jmlI'll work from that and from the bug he linked me to (https://bugs.launchpad.net/charms/+bug/1012942)13:53
_mup_Bug #1012942: Charm Needed: python-django (with WSGI container) <Juju Charms Collection:New> < https://launchpad.net/bugs/1012942 >13:53
jcastrohttp://mhall119.com/2012/06/charming-django-with-naguine/13:53
mhall119jml: IMO, a single django charm won't work, there's too many different ways to use and deploy django14:01
mhall119it's more of a library than a service14:01
jmlmhall119: yeah, that makes sense to me14:03
jcastroSpamapS: ping me when you're around pls14:09
jml"1) It requires Puppet, which isn’t natural for a Python project" – hah. hah. hah.14:32
SpamapSjcastro: wassup14:32
jcastroHey is juju broken in quantal?14:32
SpamapSShouldn't be14:32
SpamapSevidence?14:33
jcastroI tried to deploy "ubuntu" but it couldn't find it in the cs:precise/ubuntu, then I realized I forgot I had moved the box to quantal14:33
jcastrotry "juju deploy ubuntu"14:33
jcastroand juju says it can't find it in the store, it's in the browser though14:33
SpamapSoh that charm is broken in the charm store14:33
SpamapSWe need to get access to the importer's logs14:33
jcastrooh ok, so it's not just me, whew14:34
jcastroSpamapS: ok so I am thinking we should link up mims' jenkins hotness in that "tools" menu on the charm browser14:35
negronjl'morning all14:42
bloodearnestheya all14:44
bloodearnestam playing with juju on lxc, with mysql<->wordpress<->haproxy and my haproxy isn't working14:45
bloodearnestI did juju ssh haproxy/0, but I can't find where the haproxy logs are at?14:45
SpamapSbloodearnest: I don't think haproxy logs much.14:46
bloodearnestSpamapS, right14:46
SpamapSbloodearnest: perhaps syslog?14:46
=== zyga-food is now known as zyga
bloodearnestSpamapS, nothing in there14:47
SpamapSbloodearnest: I am no haproxy expet, I wrote the charm as a proof of concept.. perhaps the manual will hep in this case?14:49
bloodearnestalso, the juju-generated stanza for proxying to wordpress has this line: server localhost localhost:80 check14:49
SpamapSs/expet/expert/14:49
bloodearnestwhich seems odd14:49
bloodearnestSpamapS, ok14:49
bloodearnestI get a 503 with the default config14:49
SpamapSbloodearnest: yeah it looks like wordpress is using the wrong hostname14:52
bloodearnestSpamapS, is that an lxc issue?14:52
SpamapSrelation-set port=80 hostname=`hostname -f`14:53
bloodearnest(i.e. juju on lxc)14:53
SpamapSno its a charm issue14:53
SpamapShostname -f is forbidden ;)14:53
SpamapSshould be `unit-get private-address`14:53
SpamapSbloodearnest: I'll fix that right now14:53
bloodearnestSpamapS, sweet14:53
SpamapSeven tho I think we're getting a totally rewritten wordpress charm this week :)14:53
bloodearnestwhen will that be available?14:53
bloodearnestSpamapS, right14:53
bloodearnestFYI, canonical ISD is having a juju sprint this week, so you might get bugged a bit :)14:54
SpamapSCOOL14:55
* SpamapS shuttles the toddler off to preschool ... bbl14:55
newz2000I'm with bloodearnest14:55
SpamapSbloodearnest: fixed in lp:charms/wordpress14:55
bloodearnestSpamapS, legend, thanks14:56
* mars <- afk, need another cup of tea14:59
newz2000How do I know if I'm using an updated charm or not?15:10
* newz2000 wants to tryout SpamapS's new wordpress charm15:11
jmlsorry, newbie questions. I've deployed 'python-moin' to lxc on my laptop. How do I get to it?15:13
james_wjml, you mean to the moin web interface?15:14
jmljames_w: I guess.15:15
jmljames_w: I really mean any actual proof of its upness15:15
james_wjml, juju status should show an ip address for the "machine" it is running on, hitting that in your browser might be fruitful15:15
jmljames_w: it does noet.15:15
jml        public-address: null15:15
james_wjml, what's the full juju status?15:16
jmlhttp://paste.ubuntu.com/1047479/15:16
james_wjml, looks like it is still coming up15:17
james_wagent-state: not-started15:17
james_wagent-state: pending15:17
jmloh wow, that does take a while15:18
jmlhow can I see progress / get an eta15:18
* jml has taken the garbage out, posted a bunch of thank you letters, cooked and eaten some lamb kebabs, made a request for clearer requirements and checked facebook about 6 times since running 'deploy'15:19
hazmatjml, ps aux15:20
hazmat| grep lxc15:20
hazmatjml, or check the agent log15:20
jmlhazmat: what agent log?15:21
jml120       1232  0.0  0.0  25964   840 ?        S    Jun17   0:00 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/lxc/dnsmasq.pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=lxcbr015:21
jmlroot     27369  0.0  0.0  21156  1032 ?        Ss   14:37   0:00 lxc-start -dn lpdev15:21
hazmatjml, machine agent log15:21
jmlhazmat: doesn't exist.15:21
hazmathmm15:21
* hazmat gets out of meeting15:25
hazmatjml, so on a broadband connection it shouldn't take more than 15m15:26
hazmatjml, wrt to logs their in the $data-dir specified in environments.yaml15:26
hazmatjml, could you  ps aux | grep juju | pastebinit15:26
jmlhazmat: http://paste.ubuntu.com/1047493/15:27
jmlhttp://paste.ubuntu.com/1047492/ is the contents of my data-dir15:27
hazmatjml, huh.. did you reboot it?  the machine agent should be logging to /tmp/juju-local/jml-local/machine-agent.log15:28
hazmatper its cli params15:28
jmlhazmat: "reboot it"? I don't know. When I ran 'juju bootstrap', that failed because the directory was owned by root. So I trashed the existing directory and ran 'juju bootstrap' again15:31
hazmatjml, ah.15:31
hazmatjml, you have to destroy-environment after first bootstrap failed..15:31
jmlon the understanding that it didn't conform with the behaviour on CharmSchool so some local thing had probably happened to screw it up, and no one would have told me to store something important in /tmp/, would they?15:31
jmlhazmat: ok. do I do that now? or should I trash it again?15:32
hazmatjml, yeah. pls destroy-environment, and boostrap again15:32
hazmatit looks like the previous bootstrap (first) created the machine agent upstart job but never had a place to log to.. but its oddl... it shouldn't care about root perms, because it runs as root to startup the lxc15:33
* jml shrugs.15:34
newz2000Hmm, had a working config of Wordpress + MySQL, then destroyed everything and started over, now (2x) juju deploy mysql results in agent-state: start-error15:37
newz2000any idea what's going on here?15:38
newz2000by everything, I mean all the services, not the environment15:38
bloodearnestnewz2000, did you destro-environment15:38
newz2000no15:38
newz2000should I?15:39
bloodearnestdunno :)15:39
* newz2000 gives it a shot15:39
jmlok. now I get an IP address in 'juju status', but I can't connect to it (and netstat shows no listening ports on that IP)15:42
jmljcastro: hey, for my lxc experience should I just paste the backlog here? :P15:45
jcastroI had a todo to do it this cycle15:45
jcastrobut seeing you today I decided to clear my schedule and just document all the things15:46
hazmathmm.. getting the docs reviews are proving difficult15:48
jcastroit's always the easy ones15:49
mgzanyone know what getting ConnectionRefusedError in watch_machine_changes on the master is a symptom of?15:52
mgz<http://pastebin.ubuntu.com/1047526/>15:52
mgzjuju thinks it launched an instance, but actually didn't, and I don't see anything else of relevence in the juju logs15:53
hazmatmgz is the service provider responding?15:54
hazmatmgz,  connection refused would imply it couldn't talk to the provider api endpoint15:55
mgzit might just be more borked routing in canonistack, I'll check15:55
jmljcastro: thanks :)15:55
hazmatmgz, just use something known working.. like hpcloud..15:56
hazmatspecial casing canonistack because it doesn't have enough working infrastructure to resemble an openstack deployment feels like its working around the wrong problems15:57
newz2000SpamapS: I think there might have been a regression in the wordpress charm that was recently updated. Now when I start an instance I get "it works!"15:58
mgzbah, I know what it is... the routing actually works inside, but my local workaround is getting on to the provider and breaking it15:59
newz2000SpamapS: oh, wait, i forgot to expose it15:59
fugue88newz2000: That's the wp-config.php thing I mentioned.15:59
fugue88fugue88: So, maybe a problem with the wordpress charm not expecting to have different hostnames passed into it.15:59
newz2000SpamapS oh, that didn't change it. Still "it works!"15:59
fugue88But not a problem with the haproxy charm.15:59
newz2000fugue88: yes, but I'm just hitting the wordpress IP16:00
newz2000not using haproxy or anything yet16:00
mgzhazmat: where does the conf get stored on the master?16:00
hazmatmgz, conf?16:01
mgzhazmat: as in, it's not in /home/ubuntu/.juju/environments.yaml but was serialised and passed across somewhere16:04
hazmatmgz its in zk16:04
mgzdammit :)16:04
hazmatmgz /usr/share/zookeeper/bin/zkCli.sh16:04
hazmatmgz interactive console ls /    .. get /environment16:04
mgzta, poking.16:05
hamptonpaulkping SpamapS16:09
jmlmhall119: why does naguine think my django project uses sqlite3?16:10
* SpamapS is back16:12
SpamapSnewz2000: the wordpress charm is broken w.r.t. hostnames16:13
SpamapSnewz2000: I thought I had fixed it so the "default" host was wordpress tho16:13
mgzwell this is daft, java.lang.NumberFormatException on setting any string with a space in it...16:13
newz2000SpamapS: I see! I think this is somewhat inherited from the debian package16:13
mgzmust be a way of passing content of a file16:13
newz2000SpamapS I think I've foobar'd my juju setup so take my current feedback with a grain of salt.16:14
SpamapSnewz2000: well when in doubt, destroy and re-deploy :)16:15
newz2000SpamapS: I've just done that and now I can't successfully deploy mysql. Gonna do dist-upgrade and reboot. Then I'll test and get back to you.16:15
=== salgado is now known as salgado-lunch
hazmatjcastro, fixed re docs in review queue16:17
jcastro<316:17
hazmatalthough the display could use some work16:18
jcastrooh, those are core branches16:18
hazmatjcastro, no their doc branches16:19
hazmatjust displayed badly16:19
jcastrooh16:19
jcastrooh nice, so really, more good targets then16:19
hamptonpaulkping SpamapS: I believe I am having an issue with https://bugs.launchpad.net/juju/+bug/920454 - is there currently a workaround of any sort?16:20
_mup_Bug #920454: juju bootstrap hangs for local environment under precise on vmware <local> <juju:Confirmed> < https://launchpad.net/bugs/920454 >16:20
hazmatjcastro, fixed16:21
=== almaisan-away is now known as al-maisan
mgzsorry to everyone who's about to get a very large diff in email.16:52
bloodearnestSpamapS, I think the issue w/wordpress is when putting haproxy in front - forwarded hostname is different so fails to find the right config in /etc/wordpress16:52
marcoceppibloodearnest: that is a known issue with the current charm16:53
hazmatmgz, woot!16:53
bloodearnestmarcoceppi, k thanks, got a bug I can watch?16:54
marcoceppilet me find it16:54
=== salgado-lunch is now known as salgado
jcastroooh happy, there's the openstack provider incoming, woo!16:55
robbiewwoot!16:58
mgz:)16:58
SpamapSmarcoceppi: are you done w/ the new one yet?16:58
marcoceppiSpamapS: not yet, should be done with it this week16:58
SpamapSmarcoceppi: let me rephrase that. Does the new one work for even the most basic use case yet?16:58
mhall119jml: does it say it uses sqlite in your settings.py?16:59
SpamapSmarcoceppi: at this point, I'd rather have "not done but actually works sort of" over "thing that basically doesn't work at all"16:59
marcoceppiSpamapS: It's not at the point where I'd feel comfortable having people used it. A lot of stuff is still being shuffled around in it16:59
marcoceppiand the subordinate isn't even anywhere near operational yet17:00
jmlmhall119: oh right. I thought I'd blatted over that, but I was getting confused with a different project.17:00
SpamapSmarcoceppi: mmk. :-/17:00
marcoceppiyeah17:00
bloodearnestSpamapS, I think your earlier change fixed this bug - or at least it did for me https://bugs.launchpad.net/charms/+source/wordpress/+bug/90331217:04
_mup_Bug #903312: Inocorrect Server is specified in Haproxy when using haproxy with Local Provider <wordpress (Juju Charms Collection):New> < https://launchpad.net/bugs/903312 >17:04
SpamapSbloodearnest: right. Not sure if that will fix the haproxy issue17:05
SpamapSbloodearnest: if it does though, huzzah17:06
bloodearnestSpamapS, the hazproxy works correctly, but the wordpress doesn't :)17:07
SpamapSright17:08
SpamapSman.. the old wordpress charm kind of sucks (no offense to the authors). I think it might have been *the first charm ever written* .. but.. we've learned so much since then17:09
bloodearnestmarcoceppi, is this the bug in question? https://bugs.launchpad.net/charms/+source/wordpress/+bug/95820417:09
_mup_Bug #958204: Apache doesn't know about the server's private address <wordpress (Juju Charms Collection):Confirmed> < https://launchpad.net/bugs/958204 >17:09
marcoceppibloodearnest: that's it17:09
* SpamapS does a little cleaning up even tho marco is days away from fixes17:10
hamptonpaulkSpamapS: did you happen to see the above question about Bug #920454? Switching away from vmware for the time being, just would love any input you may have.17:10
_mup_Bug #920454: juju bootstrap hangs for local environment under precise on vmware <local> <juju:Confirmed> < https://launchpad.net/bugs/920454 >17:10
bloodearnestmarcoceppi, kk, thx17:10
bloodearnestSpamapS, is "what you've learned since then" documented anywhere?17:11
bloodearnest:)17:11
marcoceppibloodearnest: there are a series of posts that outline what we've learned (and it was oh so much) but the best documentation is the next release of the charm17:11
SpamapSbloodearnest: sadly no, we have a lot of work to document those best practices17:11
SpamapSmarcoceppi: I'm not even talking about that17:12
SpamapSjust basic stuff17:12
SpamapSlike what to do in install vs. config-changed17:12
marcoceppiSpamapS: oh yeah, sadly there isn't a like charming 101 kind of post17:12
bloodearnestmarcoceppi, is the next version available for instruction purposes?17:12
SpamapSwe don't need posts17:12
SpamapSwe need books really17:13
SpamapSWe should mirror the upstart cookbook17:13
SpamapSor rather, follow its model17:13
marcoceppithe upstart cookbook is huge though17:13
SpamapSIf I want to do X, do it this way. If I want to do Y, do it that way.17:13
marcoceppiand I found it difficult to navigate btw17:13
SpamapSHrm thats a bummer.17:14
marcoceppibloodearnest: it's really not ready yet (to the point that it doesn't run at all without lots of interventions) but that's because it's mid-refactor17:14
marcoceppiSpamapS: I agree that there should be a resource for this though17:14
marcoceppiI really like how Go does their intro to Go http://tour.golang.org/#117:15
marcoceppiNot sure how it could be adapted to Charming though17:15
bloodearnestmarcoceppi, kk - we're going to be writing a bunch of charms in order to a) learn how to and b) hopefully charmify Ubuntu SSO/Pay  so that kinda stuff (best practice, what to do where) would be useful17:16
SpamapSmarcoceppi: a tour would actually be fantastic17:16
SpamapSWe kind of do i for juju usage in all our talks17:16
marcoceppiI think a tour for juju would be boss17:17
SpamapSs/ i / it /17:17
SpamapShmmmm whats this then https://code.launchpad.net/~gz/juju/openstack_provider/+merge/11086017:17
marcoceppibut since charms are all so, unique - it's hard to be like HERE'S A TOUR OF CHARMING, but it's in bash - or it's all in python - or it's all in C#17:17
marcoceppiSpamapS: Oh, hello there17:17
SpamapSmarcoceppi: we're like construction workers who just saw Charlize Theron walk by in a sun dress.. ;)17:18
* marcoceppi whistles loudly17:19
* SpamapS gets tired of chasing local provider fail and goes back to EC2.. again17:31
* avoine can't wait to test the new OpenStack provider17:35
jcastroSpamapS: heh ... yeah17:35
SpamapSavoine:  should be able to test it just by branching that17:37
avoineI'm looking at the diff now17:37
avoineI'll do that17:37
jcastronegronjl: mira, around today?17:40
negronjljcastro: here ... working on the Structure/MaaS/Juju thing17:41
jcastroSpamapS: hey so we were missing the docs submissions in the queue, hazmat fixed it, check out the review queue now!17:41
jcastronegronjl: oh, so not a good time to ask about graphs then17:41
SpamapS/tmp/juju-createRVPUAG: line 28: /etc/resolvconf/run/resolv.conf: No such file or directory17:41
negronjljcastro:  lol ... not yet ...17:41
SpamapSanybody else see this while trying to use local provider?17:41
jcastronegronjl: we should G+ with m3 later today though, talk velocity?17:41
SpamapSoh wait, n/m .. needed latest juju17:42
negronjljcastro:  sure ...17:43
negronjljcastro: let me know when  .... I also have the Ubuntu Developer Contributor thing today in about 1 hour and 15 minutes or so17:44
jcastrooh ok17:44
jcastrowe can punt to tomorrow if you want17:45
negronjljcastro: better17:45
=== zyga is now known as zyga-afk
SpamapSkees: FYI, just merged all of lp:~kees/charms/precise/mumble-server/trunk into lp:charms/mumble-server. Thanks for adding maintainer. :)17:52
hazmatjcastro, there mouseovers for the origin branch name fwiw on the merges17:56
hazmatargh. their17:56
hazmatthey're17:56
* hazmat finds a new language17:56
keesSpamapS: thanks! I've got an update for my 'sbuild' charm as well, if you want to snag that oo.18:03
kees*too18:03
SpamapSkees: \o/18:04
SpamapSI think we're down to 20 that need maintainers18:04
* SpamapS needs to pick that torch back up.. 18:04
keesSpamapS: note that the sbuild charm is more than just maintainer addition -- it's a refresh for precise, and makes the confg control better.18:06
SpamapSkees: excellent. I tend to just accept anything from maintainers that doesn't introduce malware. :)18:08
keesSpamapS: \o/18:08
SpamapSI figure if you're willing to put your name on it, you are willing to hear from angry users :)18:09
keeshehe18:09
keesSpamapS: I did it as a normal bug rather than a merge request because I didn't realize the oneiric charms all got moved forward to precise18:11
SpamapSkees: yeah we're still figuring out how thats going to work long term anyway.18:12
SpamapSLooking more and more like it will work a lot like the distro, except with aggressive backporting for new stuff.18:12
keesSpamapS: cool18:16
SpamapShazmat: trying to test out local provider + proposed .. seems like juju-create is getting cached somewhere18:18
SpamapShazmat: any ideas where that might be?18:18
hazmatSpamapS, its the first container in the env18:18
hazmatSpamapS, lxc-ls18:18
SpamapShazmat: destroyed and bootstrapped.. should be gone right?18:18
hazmatyes18:18
pindongaSpamapS, hi there, so I'm playing a bit with juju, done the basic wordpress stuff bla bla18:37
pindongaso next I added an haproxy in front of the wordpress instance (so I can later on add more units there)18:37
pindongaand I know wordpress charm doesn't play very nicely along with the haproxy one18:37
pindongaand I know you guys are about to rewrite everything , so this is not a support request :)18:38
pindongaexcept for some help in understanding the charm18:38
SpamapSpindonga: sure, I'm looking at it right now also so.. :-P18:38
pindongaI see haproxy requires the other service to provide a reverseproxy relation18:38
pindongawhich wordpress doesn't do18:38
pindongaso I was trying to make wordpress expose such a relation18:39
pindongafor that I just need to edit the metadata and provide a reverseproxy-relation-{joined,changed} hooks right?18:39
pindongain the wordpress charm18:39
SpamapSerr18:40
SpamapSno you' have it backwards18:40
pindongaah :)18:40
pindongahence the question18:40
SpamapShaproxy requires the other service to have an *http* relation18:40
SpamapSwhich nearly all the webapps in the charm store do18:40
SpamapSthe name, reverseproxy, is irrelevant outside the hooks dir18:40
pindongaah, and it names that http relation 'reverseproxy'18:40
SpamapSwell irrelevant to the other side I should say18:40
pindongak18:41
SpamapSpindonga: haproxy names it reverseproxy. Most charms name the provider side 'website'18:41
pindongakk18:41
SpamapSthat interface.. http.. is very "proof of concept" .. we need to work out something better18:41
pindongaso, the idea I had was that when the relation gets established we just symlink /etc/wordpress/config-<haproxy-ip>.php -> /etc/wordpress/config-<local ip>.php18:42
pindongathat would make it work (for my purposes)18:42
pindongaso I need to add that to the "something"-relation-{joined,changed} hook on wordpress right?18:42
SpamapSpindonga: I believe there's a "default" possible as well18:43
SpamapSpindonga: which is what should be done18:43
SpamapSpindonga: but yes for your purposes.. I'd add that link wherever the main config-... is made18:44
pindongaI am just checking18:44
pindongathe main config is created during db-relation-changed18:44
pindongahowever that's not where this should happen18:45
lifelesshazmat: I'm here if you want me to expand on what I said18:45
pindongathe extra symlink would then happen when website-relation-changed probably18:45
pindongaSpamapS, thanks, I'll try it out and let you know18:45
SpamapSpindonga: yes that would work18:46
SpamapSpindonga: website-relation-joined would be fine actually18:46
SpamapSpindonga: you'll have the public-address at that point18:46
SpamapSwhich is what you want18:46
pindongayep,18:46
SpamapStho I think changed is "more correct"18:46
SpamapSsince in the future, that may change18:46
pindongait needs to happen in both18:46
pindongaprobably18:46
SpamapSpindonga: changed is always called once after joined no matter what18:47
SpamapSso, just in changed is appropriate18:47
pindongaah, good to know18:47
pindongais that documents in the hooks page?18:47
pindongas/documents/documented/18:47
SpamapSpindonga: https://juju.ubuntu.com/docs/charm.html#hooks18:49
pindongayep, thx18:49
hazmatlifeless, awesome18:50
hazmatlifeless, so  i saw rabbitmq queues and pika clients to juju..18:50
lifelesshazmat: huh... ?18:50
hazmatlifeless, sorry.. crossed the streams that was ted18:51
hazmatlifeless, what are you trying to do?18:51
lifelessme, I had a chat with m_3 and filed a bug as a result, about juju's degree of entanglement with my machine, for the 'local' provider.18:52
lifelessits much more intrusive than I had anticipated18:52
hazmatlifeless, the upstart job, and the libvirt network?18:52
lifelessto the extent it won't work on half my machines here, and will duplicate basic functionality like my squid cache18:52
lifelesshazmat: running apt-cacher-ng, running zookeeper18:52
lifelesshazmat: the latter, AIUI, constraining me to one local environment at a time18:53
hazmatlifeless, it doesn't18:53
hazmatlifeless, we run each env's zk on an offset port18:53
hazmater. random port18:53
hazmatlistening on the bridge i believe18:53
lifelessah, well thats something; however my lxc bridge is bridged to my LAN :)18:54
SpamapSit uses the libvirt default network18:55
SpamapSnot the lxcbr18:55
lifelesssorry for being imprecise.18:56
lifelessI have a grunty workstation. its what I run $stuff on.18:56
lifelessto make getting at its kvms and lxcs easy, its libvirt bridge is my LAN.18:57
SpamapSyeah, thats a bug that needs fixing for sure.. should allow an option to override the default network18:57
lifelesshow is the traffic securing work coming? I presume its trusted-traffic at the moment still ?18:58
hazmatlifeless, demo of multiple local envs.. fwiw http://paste.ubuntu.com/1047850/18:59
hazmatlifeless, so transport level nothing yet19:00
hazmatlifeless, securing zk storage, i've hit a libzk issue, i need to debug, getting some deadlocks19:00
hazmatre transport i don't see much outside of stunnel  or a twisted tls proxy.19:01
hazmatlifeless, that's wrt to zk communication.. machine level security we need to switch out to firewalls. etc19:01
lifelesshah https://issues.apache.org/jira/browse/ZOOKEEPER-23519:01
SpamapShazmat: heh, figured out my proposed+local issue.. r542 incoming. ;)19:01
lifeless:( sadface.19:01
hazmatlifeless, yeah..19:02
hazmatlifeless, there are people who run it with stunnel over untrusted networks.. but its a serious issue.19:02
lifelessand yay, dup : https://issues.apache.org/jira/browse/ZOOKEEPER-100019:02
lifelesshazmat: I agree :>19:02
hazmatlifeless, atm, most of the developer bodies are on gojuju19:02
lifelesshazmat: so, what does juju bootstrap locally do - adds an upstart job which runs apt-cacher-ng + zk, creates a single seed lxc node ?19:03
pindongaSpamapS, if you don't mind one more question, I'm trying to debug the relation-changed hook... I exported the environment settings (JUJU_UNIT_NAME, JUJU_RELATION, JUJU_REMOTE_UNIT) but it's saying JUJU_AGENT_SOCKET is not set... how can I debug the relation-changed hook?19:03
hazmatlifeless, install apt-cacher-ng, upstart job for machine agent, and upstart job for a simple file storage19:03
SpamapSpindonga: juju debug-hooks servicename/# is the best way19:03
pindongaSpamapS, I'm in there19:04
lifelesshazmat: any way to tell it to shove off w.r.t. apt-cacher-ng ? I have caching already :)19:04
hazmatlifeless, on adding the first service, it creates an lxc container that it customizes and uses as a template for deploying units19:04
pindongabut now I went to where the hook is stored, and run it (following the tutorial)19:04
pindongahowever I get these errors19:04
hazmatlifeless, atm no.19:04
pindongawhile it tries to run unit-get and relation-get19:04
lifelesshazmat: and there is something that restarts units on laptop reboot, I believe? Where does that live ?19:05
hazmatlifeless, there is not .. local envs are toast on restart19:05
hazmatlocal provider has not seen much love19:05
lifelesshazmat: toast == not running or toast == deleted ?19:06
hazmatlifeless, not running19:06
lifelesshazmat: how do you cleanup such an environment?19:06
lifelessor restart it ?19:06
SpamapSpindonga: no you have to wait till the hook is executed, you can't just force it19:06
hazmatlifeless, juju destroy-enviornment19:06
SpamapSpindonga: remove/add the relation19:06
SpamapSpindonga: you'll get a new tmux window per hook execution19:06
lifelesshazmat: is it possible to restart it ?19:06
pindongaSpamapS, so before I do that: I run debug-hooks and it opened the ssh session to my unit19:06
pindongathat's ok?19:06
pindongaSpamapS, now I remove/add the relation, yes?19:06
SpamapSpindonga: thatss exactly right19:06
pindongaSpamapS, thx, sorry for the noise19:07
pindonga:)19:07
SpamapSpindonga: no, thanks for the noise. :)19:07
hazmatlifeless, you'd have to start zk, and the containers19:07
hazmatthe zk is not upstartified19:07
hazmatneither are the env containers19:07
pindongaSpamapS, didn't do anything afaict19:08
pindongajust did juju remove-relation but it finished19:08
pindongasame for add-relation19:08
pindongaor do I have to run these from within the unit I got opened via debug-hooks?19:08
lifelessso, the heart of my bug was, I guess, that we're special casing LXC more than we need to - doing a -tiny- cloud api for local use should be doable as a standalone project, and that would let 'local' have nothing special to do.19:08
hazmatlifeless, agreed..19:09
lifelessSaid cloud API could remember state like 'this lxc was running' as well.19:09
hazmatlifeless, SpamapS made the original lxc provider that way19:09
hazmatbut it didn't fly for what are at this point histerical raisons19:09
lifelessso local juju config would become, install lxc-cloud-api, create a user, put user details in environments.yaml, profit. Install a cache and configure that in environments.yaml if you need one.19:10
hazmatthe other delta for the local provider is that its too intimate with its customization of the container19:10
hazmatit should use cloud init and cloud-images ala every other provider19:10
hazmatthat's what lp:~hazmat/juju/local-cloud-img is a start on (the latter)19:10
lifelessyeah19:10
SpamapSpindonga: when the window opens, you have to run the hook yes19:10
lifelessis it worth someone writing such a local cloud API ?19:10
SpamapSpindonga: the idea is that you can run it with debuggers or strace or whatever19:11
pindongaSpamapS, ah, sorry, I think I start to understand19:11
pindongawasn't seeing the fact that it's a screen session19:11
SpamapSor just run it over and over fixing it :)19:11
pindongaand it's opening up more tabs19:11
hazmatlifeless, hmm.. interesting as a separate project?19:11
hazmator as a new local provider impl?19:11
lifelessseparate project.19:12
lifelessIt clearly has nothing to do with juju.19:12
lifelessarguably its related to libvirt in fact19:12
SpamapSlibvirt has lxc19:12
lifelessyes19:12
lifelessI don't think libvirt has a securable HTTP(s) interface though, no ?19:13
hazmatlifeless, it has a net api19:13
SpamapSsure, its called OpenStack :)19:13
hazmatthat too ;-)19:13
* m_3 would love to see a libvirt provider19:13
SpamapSa bit heavy tho19:13
pindongaSpamapS, , now when I run the add-relation command, I see this in the debug-hooks window: [wordpress 0:bash- 1:website-relation-broken*   ...19:13
lifelessSpamapS: 'bit'.19:13
pindongaSpamapS, however I can't change tabs, like with pure screen (ctrl-a 0, ctrl-a 1)19:13
marcoceppiSo now that Openstack provider support is almost done, when are we going to see Azure :)19:14
SpamapSpindonga: if it doesn't exist, you can just exit the shell19:14
hazmatlifeless, i'd eschew libvirt.. seems reasonable though19:14
SpamapSpindonga: its not screen, it is byobu19:14
lifelessSpamapS: thats like 'I had a 'bit' too much to drink at UDS'19:14
hazmatmarcoceppi, tbd, but don't hold your breath19:14
SpamapSpindonga: and I think its tmux byobu19:14
marcoceppihazmat: ;)19:14
pindongaah, now I exited that and it came up again with website-relation-joined (so this was actually queued up waiting for the other hook)19:14
pindongaSpamapS, k, starts to make sense (a bit weird, but progress :))19:15
SpamapSlifeless: well we did do the hat, and the nose.. but she has got a wart..19:15
lifeless:>19:15
lifelessSpamapS: seriously though, would running nova + swift locally really be appropriate here? Seems like they have massive overkill.19:16
SpamapSlifeless: they do. You'd have to spin up a container just for them.19:16
lifelesseven if nova grows lxc backend support, you're looking at a pretty tall stack once you bring up its message bus, authentication etc.19:16
SpamapSnova has lxc support already19:17
lifelessok, nice to know.19:17
SpamapSnova also has grown 0mq support, so rabbit can be disposed of at least19:17
SpamapSand sqlite can be used for the db19:17
lifeless0mq is still a queue :P19:17
SpamapSlifeless: but its a peer to peer queue, and in a local setting can be defaulted to localhost :)19:17
lifelessSpamapS: I'm not sure if you're saying 'its a good idea' or 'technically feasible but I still wouldn't like to do it'19:18
SpamapSI'm hashing it out in my head, and dumping the results in here19:18
SpamapSno goal19:18
lifelessfair enough19:18
lifelessWhile you do that, I'm going to go get cynthia out of bed19:18
SpamapSI should probably eat actually. :)19:18
* SpamapS goes looking for the Truck Norris gourmet burger truck19:19
SpamapSthey're spicy.. just a little KICK19:19
negronjlSpamapS: what happened to that diet thing you were going for ? :)19:25
m_3gourmet burgers are diet... right?  huh?19:26
lifelessnegronjl: did you get hold of moser ?19:27
lifeless(and good morning :P)19:27
negronjllifeless:  yup ... I've been working with a few guys on this already ..19:33
negronjllifeless:  I'm at #ubuntu-meeting atm ... trying to get Ubuntu Contributing Developer ... brb19:34
negronjllol ... denied Ubuntu Contributing Developer .... AGAIN19:38
negronjlI must really suck at this19:38
m_3negronjl: no way!19:38
negronjlm_3: yup ... denied19:39
m_3dang, I was thinking of going up before long... maybe I'll rethink that19:40
negronjlMy juju contributions don't count19:40
negronjlthis is the second time i try this ... no more.19:40
m_3man, that sucks19:41
pindongais it possible to call upgrade-charm using a different repository than the one you used for the original deploy?19:54
pindongaI get an error when doing so19:54
pindongaI've installed a charm from the charm store, and now I want to upgrade it from a local repo19:55
pindongafor toying around19:55
=== al-maisan is now known as almaisan-away
SpamapSpindonga: heh, there's a bug for that20:03
SpamapSpindonga: IMO the charm store is inherently broken until we have a 'switch-charm' command20:03
hazmatjimbaker, fwiw you've got a couple of approved doc merge proposals that have been sitting around for  a while20:04
hazmathttp://jujucharms.com/review-queue20:04
pindongaSpamapS, so you actually recommend deploying everything from a local repo?20:04
pindongais there a workaround for that bug, or do I have to recreate my instances from a local charm repo?20:05
pindongaand is it possible to add the local repo as the default option so I don't have to constantly pass in the --repository option?20:06
SpamapSpindonga: I do20:08
SpamapSpindonga: export JUJU_REPOSITORY=/home/you/charms :)20:08
SpamapSpindonga: you can't convert a service unit from one charm to the other, but if you're using ec2, you can destroy the service, and re-deploy onto the same machines. However, some charms will break on that.20:09
pindongaSpamapS, I'm doing it locally, and have just done that20:10
pindonga:)20:10
pindongathx for the env var20:10
pindongathe only problem with local is that it's slow :) (on my machine)20:11
pindongabut other than that it works , which is already a long way to go20:11
SpamapSpindonga: I agree.. SSD helps a lot20:12
pindongaI'm actually cheating against myself...20:12
pindongarunning juju inside of a qemu-kvm vm deploying to lxc instances inside of that, and all of that on a laptop 7200rpm disk20:12
pindongacan't expect it to be too fast :)20:12
SpamapSyeah even natively it will suck though ;)20:13
pindongaso, out of curiosity, what are the plans to support multiple services per host machine?20:13
jimbakerhazmat, true, i will move those into an appropriate specs directory in the docs20:13
SpamapSI'm not sure "specs" is right20:14
SpamapSPerhaps just headers saying that a spec is unimplemented20:15
jimbakerSpamapS, but these specs are implemented in this case20:17
SpamapSjimbaker: well in that case its just regular documentation20:17
jimbakerSpamapS, they just are not great for actual docs20:17
SpamapSjimbaker: whats the point of them then?20:18
jimbakerSpamapS, they do describe the implemented behavior. but they are not user friendly imho. on the other hand, maybe they are the first pass of what should be cleaned up for that purpose20:19
jimbakerSpamapS, however we do have some other internals oriented docs in juju docs, assuming they're still around20:19
SpamapSjimbaker: users need to have defined behavior before they need to have easy to read behavior definitions :)20:19
jimbakerSpamapS, right :)20:20
SpamapSOk, I just pushed a fix to wordpress in the charm store which makes it the only thing on port 8020:28
SpamapSwhich, consequently, makes it work w/ haproxy20:28
SpamapSmarcoceppi: no, I dare you to make that fix irrelevant :)20:29
pindongaSpamapS, cool, I'll try it out20:29
pindongahowever I'll first make sure I get it working locally via another way (to learn charms better)20:29
SpamapSmake sure you have bzr rev54, or charm rev 3420:30
marcoceppiSpamapS: well...it technically wont' work with multisite, but since you can't really expose/configure that with the current charm I guess that makes it okay :P20:33
SpamapSmarcoceppi: right, multi-site is a whole other thing20:38
marcoceppiSpamapS: new charm will support it, with site-specific subordinates20:39
SpamapSmarcoceppi: thats great... like I said, make my change irrelevant :)20:39
marcoceppiIt'll be hard, but I'll try not to :P20:39
pindongaSpamapS, final question of the day20:57
pindongaso my hook is trying to do a sed on an apache config file, however, from the hook itself I cannot read that file, but in the shell from debug hooks I can20:58
pindongaie, ls -l /etc/apache/sites-enabled shows the file, but doing cd /etc/apache/sites-enabled within the hook gives me an error20:58
SpamapSpindonga: thats a bit odd, but is it possible you're trying to edit it before apache is installed?21:01
SpamapSpindonga: also it should be /etc/apache221:01
pindongaSpamapS, no, it was me not reading carefully enough21:02
pindonga:/21:02
pindongasorry, and thanks21:02
pindongait worked now21:02
pindongas/apache/apache2/21:02
pindongacool, my charm now works with haproxy \o/21:03
pindongaSpamapS, what I did was to add a website-relation-changed hook and inside there I do 3 things21:03
pindonga1. sed the apache config to include ServerAlias ${remote_ip}21:03
pindonga2. ln -s /etc/wordpress/config-${local_ip}.php /etc/wordpress/config-${remote_ip}.php21:04
pindonga3. apache2ctl graceful21:04
pindongahow does that sound?21:04
pindongathat way you still can keep the wordpress stuff in a virtualhost entry21:04
SpamapSpindonga: thats pretty cool :)21:05
pindongaSpamapS, should I submit my charm for review somewhere?21:06
pindonga:)21:06
SpamapSpindonga: since marcoceppi is totally rewriting the w hole thing.. probably not. But I really do appreciate the effort. :)21:10
pindongaon the contrary, it was a really useful learning experience21:10
pindongathanks for all the help21:10
SpamapSmarcoceppi: hey, while you've been redoing wordpress.. have you come up with any insight on whether the endpoing host would be better off configured on the load balancers or on the app servers?23:19

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