/srv/irclogs.ubuntu.com/2015/06/08/#juju.txt

=== ming is now known as Guest47081
nwingfieldHow can I specify in the `requires` section of metadata.yaml that a database is required, but could be one of several choices (e.g., mongodb OR postgresql OR mysql)?02:55
blrnwingfield: you would add an interface for both mysql and postgresql and mongodb but set them as `optional: true`03:00
blrnwingfield: there may be a way to require that at least one is provided, but I'm not certain03:01
nwingfieldyeah, i can’t find any examples of mutually exclusive interfaces03:01
nwingfieldi’ll give that a shot though03:02
thumpernwingfield: hey there, yes have all three as optional03:06
blrthanks thumper03:06
thumperbut with new status work, the charm could be put into a status that says "awaiting database"03:06
thumperso anyone that goes "juju status" would see that it isn't yet running03:06
thumperthis is the new 'workload status' work03:07
nwingfieldthat will be nice03:10
nwingfieldthanks for the help blr, thumper03:11
chrome0I've got a spinning jujud here - it's dumping tons of lines with "machine X has new addresses" over and over, cf. http://paste.ubuntu.com/11644054/08:21
chrome0Anyone seen something like this?08:21
schkovichthere are two manual environments running in rackspace. i have a task to move n machines from environment A to environment B. is something like that possible at all?10:32
gnuoyjamespage, if you have a moment: https://code.launchpad.net/~gnuoy/charms/trusty/percona-cluster/use-dc-stable/+merge/26137213:04
Odd_BlokeIs there a difference between 'juju-run ...' and 'sudo juju-run ...' on an instance?15:09
aisraelOdd_Bloke: I wouldn't think so, as `juju-run` runs as root already15:11
Odd_Blokeaisrael: I'm running it from a shell as not-root; does it escalate itself?15:13
lazyPowerOdd_Bloke: there is one context in which juju run will run as the ubuntu user15:13
lazyPowerand i beleive thats when you target --machine, vs using --service or --unit15:13
lazyPowerOdd_Bloke: otherwise the context of a juju run session is executed as root, no elevation required.15:14
BialogsIs there a way to tell Juju not to overwrite configs? I'm editing Glance config and when I reboot Glance the configs switch back to the Juju settings.15:44
rick_h_Bialogs: it's in the charm and what it does. The charm has to support non-charm related edits to the configs.15:45
Bialogsrick_h_: Thanks15:46
lazyPowerhey marcoceppi, have you ever seen the juju unit commands just flat out hang?16:32
lazyPowereg: unit-get, juju-log, etc.16:32
lazyPowerdoesn't seem to matter which command i run, its just hanging around like its attempting to connect to the event socket and never timing out.16:33
Zetasdoes it initiate an ssh connection?16:48
=== kadams54 is now known as kadams54-away
lazyPowerI'm not sure about that Zetas, but i want to say no.17:26
rick_h_lazyPower: is there a gui running? canit connect to the wss?17:27
lazyPowerrick_h_: i terminated the env and stood it back up. its worth noting that this also happened after dhx'ing into the unit, and that may have made an environmental change17:28
rick_h_oh hmm, ok17:28
lazyPowerso i dont necessarily think this is core related, and more something wonky happened17:28
rick_h_lazyPower: have the url for charm testing handy? It's not linked in the bug and I can't find it in the docs under charm testing or anything.17:30
rick_h_lazyPower: is that not "live" atm?17:31
lazyPowerrick_h_: thats a deceptively large topic, are you looking for the amulet docs? as in "how do i test my charm"?17:31
rick_h_lazyPower: the "charm tests failed on my charm, I think I fixed them, where's that test rnuner that would prove this to be true on a reporting page" testing17:31
lazyPowerah17:32
lazyPowerhttp://reports.vapour.ws/latest-bundle-and-charm-results17:32
lazyPowerthat's not linked in the docs - the individual test runs should be embedded in the bug filed for the MP/Review request17:32
rick_h_lazyPower: right, just following up on https://bugs.launchpad.net/charms/+bug/1459345 and curious if the update ran/passed tests17:33
mupBug #1459345: Review/promulgation request for the Redis charm <Juju Charms Collection:New> <https://launchpad.net/bugs/1459345>17:33
lazyPowerrick_h_: that was probably run out of band by hand by a charmer.17:33
lazyPoweri do know, that the current impl of the revq is linked to an older testing project in jenkins, and we have a newer setup that's using container isolation to kick off the tests that seems more reliable.17:34
rick_h_lazyPower: ah ok. Well not much we can do then. ty17:34
lazyPowerwe still have an open ticket to integrate the new method, and make it a tad more self-serving to end users, eg: open MP, get automated results like osci17:34
lazyPowerthats upcoming this cycle by devx aiui, but no promises. I dont manage the workload on that team :D17:35
marcoceppilazyPower: we have more than an open ticket, there's a spec being drafted that makes CI way more robust17:35
lazyPowereven. better.17:35
rick_h_hmm, juju-gui results going back to aug of last year?17:35
lazyPowerrick_h_: i may have spoken too soon i was able to reproduce. Deploying the gui now17:41
lazyPowerrick_h_: is there something specific to look for other than wss connectivity?17:41
rick_h_lazyPower: well if it can talk to the API but you can't from the cli it might be network issues or something17:41
rick_h_lazyPower: basically can you load up the gui, service details, unit details17:42
lazyPowerack, makes sense17:42
lazyPoweryeah gui is working as expected17:43
lazyPowerthis is weird, if i detach and re-run the hook it works as expected.17:44
lazyPoweryet when attached via debug-hooks, dhx, etc. it hangs on every unit-agent command17:44
lazyPowerconfig-get, juju-log, unit-get17:44
* lazyPower takes an env dump17:44
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
bilalHi, I was looking to deploy Openstack HA with juju and MAAS. I could not find any good step by step guide and architecture guide for it. Can someone help me point to it? I will be very thankful :)19:29
lazyPowerbeisner: ping :) ^19:52
lazyPowero/ bilal19:52
beisnerhi bilal -  the openstack charms do generally support HA use cases, however only non-HA openstack bundles (solutions) have been published thus far in the juju charm store.19:58
=== brandon is now known as web
bilalThanks beisner. So in order to make a charm e.g. keystone charm to work in HA usecase, what different steps do I need to do? Also do you know if maybe outside juju charm store, someone has posted HA reference architecture?20:05
thumperlazyPower: so I got the django 1.7 support tests all passing with bundletester over the weekend20:13
lazyPowerGREAT SUCCESS \O/20:13
thumperlazyPower: which included one with django 1.8, which also found a bug, which is also fixed in the branch20:13
lazyPowerthats awesome news thumper20:13
thumperthe autocommit attribute in the postgres config was removed in 1.820:13
thumperlazyPower: was using juju 1.24 to run the tests though, not 1.2320:14
thumperlazyPower: I have celery worker support working locally too20:14
lazyPowerthumper: ok, lets land the updates to 1.7 first20:15
thumperthere is a wip merge proposal up so I can track changes20:15
lazyPowerthen we'll get celery in a feature branch20:15
thumperlazyPower: yes, definitely20:15
lazyPowersounds awesome though, thanks for the dedication there20:15
thumperlazyPower: it needs some tests though20:15
lazyPowerso does whats in teh charm store :)20:15
thumperalso coming once this has landed will be moving all the feature tests to amulet20:15
lazyPoweroh thank the developer, that will be great20:15
lazyPowerinstead of continuing the carry the pre-amulet tests forward20:16
* thumper nods20:16
thumperas I mentioned before, I'd like this charm to become an example of a well written charm20:16
thumperan exemplar if you will20:16
thumperas we get workload status too, I'd like to hook this up20:19
thumperseeing the great work landing in juju master right now has me eager to use it20:19
thumperkinda hard to work out if django is fully "up" though since it is a framework charm20:20
* thumper thinks...20:21
thumperlazyPower: how about this as a crazy arse idea...20:21
thumperlazyPower: we encourate a "special" url in the app20:21
thumperlazyPower: something configurable, but defaulting to something like '/.juju-status'20:21
thumperlazyPower: and use that for workload status20:22
thumperif it is configured20:22
lazyPowerThat doesn't seem very practical and very scoped to juju.20:22
thumpersocialize juju into django apps :)20:22
lazyPowerI think something along the lines of checking for the CSRF token you get out of a django site would be good20:22
thumperthat doesn't tell me it is working20:22
thumperfor example20:22
lazyPowerit tells you the framework is responding, othewrise you'd get a 503 bad gateway error and no CSRF token in the <head> tag20:22
thumperas far as I'm concerned, django isn't working if my app isn't there20:22
thumpermy app provides https endpoints20:23
thumperlazyPower: this assumes that you are using the csrf middleware (which, you should be, but don't have to)20:23
thumperlazyPower: how about this...20:24
thumperlazyPower: as config20:24
thumperlazyPower: you specify which relations are needed20:24
thumperlazyPower: if all relations are made, service is up20:25
thumperlazyPower: that way, as the charm user, I could say "up means pqsql, amqp, django-settings"20:25
thumperalthough ideally we'd want to be able to specify the remote side name20:26
lazyPowerthat sounds strikingly similar to what the services framework is using as a basis for charming20:26
thumperI'd like to be able to say "you need a django-setting relation with foo"20:26
thumperlazyPower: I know nothing about the services framework20:26
lazyPowerbut what you're telling me you want to do sounds mor elike a health check of the service to a) ensure its online and b) has the associated components online and in a healthy state20:26
thumperexactly, this is what workload status is20:26
thumperand it shows up in juju status20:26
thumper(or it will soon...)20:27
thumper1.25 I think20:27
lazyPoweri think this needs more brainstorming than I have capacity for at the moment, because i see your point of "my service is an amalgamation of these components, just checking 200ok is not enough"20:27
lazyPowerbut theres a fair amount of overlap here that may or may not be present in other apps, and other healthchecks.20:27
* thumper nods20:27
lazyPowers/apps/services/20:28
thumperlazyPower: how about we schedule a chat some time this week20:28
thumperwith perhaps another eco member or two20:28
thumperand just spit-ball some ideas20:28
lazyPowerim booked this week in prep for DockerCon, can we do this after the conference if you need me there?20:28
thumperlook, this isn't urgent, and unlikely to happen in the next two weeks20:28
thumperso we can do it after20:28
thumperI'm really just thinking out loud20:29
thumperso to speak20:29
lazyPowerperfect, i dont want you to lose the enthusiasm/momentum you've got going though20:29
lazyPowerso i'm willing to be flexible when its not stacking :)20:29
thumperlazyPower: unlikely, I'm using this charm in a production environment20:29
thumperand I want it to be good20:29
lazyPowersounds good, we have open office hours20:31
lazyPowerand this would be brilliant to bring up during the office hours - it might be a bit early for you though20:31
thumperlazyPower: when is it?20:32
lazyPower6  AM in Canberra ACT20:32
thumperlazyPower: good think I'm in NZ and it is 8am then20:33
lazyPoweroh perfect20:33
lazyPoweri had no idea so i guessed at your locale20:33
lazyPowerwell i knew you were a kiwi, but thats as far as that goes20:33
thumperwith my wife leaving for work early, it isn't hard for me to start at 8am20:33
lazyPowerok cool, on the 18'th of this month at 8am20:33
thumperI'll pencil it in20:34
thumperlazyPower: I have to say, with all this charm dev work, it makes me want to add more to the charmhelpers and making juju better...20:35
thumperalso, I have a patch for bundletester20:36
lazyPowerorly?20:36
thumperbut I haven't worked out how to add a test...20:36
thumperlazyPower: just upper cases the debug flag20:36
lazyPowerthumper: does it change -l DEBUG to -l d ebug?20:36
thumperso it can handle 'debug'20:36
lazyPowerhaha20:36
lazyPoweri love it20:36
lazyPowercalled it20:36
thumper:)20:36
thumperlazyPower: https://github.com/juju-solutions/bundletester/pull/1920:38
lazyPowerthumper: commented, one of the devx peeps will give that a thorough review / merge20:40
thumpersure, np20:40
beisnerhi bilal, generally, the HA needs and topologies vary quite a bit from one environment to another.   also as you note, the approach is different per service (percona-cluster vs. keystone vs. glance and such).20:40
lazyPoweraisrael: 'preciate you20:41
aisraellazyPower: Right back atcha, dude.20:41
=== natefinch is now known as natefinch-afk
=== kadams54 is now known as kadams54-away
=== brandon is now known as web
=== kadams54-away is now known as kadams54
=== CyberJacob is now known as zz_CyberJacob
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away

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