/srv/irclogs.ubuntu.com/2013/03/26/#juju.txt

=== fenris is now known as Guest24195
freeflyingseems http://afgen.com/juju.html on https://juju.ubuntu.com/docs/faq.html page is broken02:53
=== fenris is now known as Guest18389
ongmap_Hi, im trying to relaunch in a different ec2 region. but error: Environments configuration error: /home/ubuntu/.juju/environments.yaml: environments.mytest.region: expected 'us-east-1', got 'ap-southeast-2'04:11
=== defunctzombie is now known as defunctzombie_zz
=== TheRealMue is now known as TheMue
=== Beret- is now known as Beret
=== huats_ is now known as huats
=== drrk_ is now known as drrk
facundobatistahello!12:25
facundobatistaI'm trying to bootstrap against an openstack, and I get ERROR Unexpected 400: '{"badRequest": {"message": "Security group is still in use", "code": 400}}'12:27
facundobatistafull log is http://pastebin.ubuntu.com/5649239/12:27
facundobatistaI really don't know how to debug this further, or fix it12:27
facundobatistaany recommendation is appreciated, thanks!12:27
salgadofacundobatista, I think that happens when your previous destroy-environment didn't finish or left stuff behind.  what does 'nova list' show you?12:28
facundobatistasalgado, two items, one ACTIVE and one in ERROR12:29
facundobatistasalgado, should I destroy them with "nova delete"?12:29
salgadofacundobatista, yep12:30
facundobatistasalgado, should I pass the "id" to it? I executed the "nova delete <id>" for both items, the commands finished ok, but "nova list" still shows them12:31
salgadofacundobatista, it takes a little while before they're really gone12:32
* facundobatista waits12:32
facundobatistasalgado, there they went away! :D now let's try bootstrap12:47
facundobatistayay, bootstrap ended ok12:47
facundobatistalet's try status12:48
salgado:)12:48
facundobatistasalgado, ok, "juju status" got stuck, ctrl-c'ed it after some minutes, and there I see this error:12:53
facundobatistaSSLVerificationError: Bad HTTPS certificate, set 'ssl-hostname-verification' to false to permit12:53
facundobatista2013-03-26 09:52:56,695 ERROR Bad HTTPS certificate, set 'ssl-hostname-verification' to false to permit12:53
salgadofacundobatista, sidnei tells me that's a because something timed out. I also saw that when my network was flaky12:54
* facundobatista tries again12:54
facundobatistanow I got this pretty fast:12:55
facundobatista2013-03-26 09:55:10,898 ERROR SSH forwarding error: ssh_exchange_identification: Connection closed by remote host12:55
facundobatistaand fourth time it ended ok12:59
facundobatistasalgado, thanks!13:00
salgadofacundobatista, you're welcome13:00
mariuskoEC2 images are broken!: https://bugs.launchpad.net/ubuntu-on-ec2/+bug/116035813:17
_mup_Bug #1160358: Hash Sum mismatch for Precise main and universe EC2 images <Ubuntu on EC2:New> < https://launchpad.net/bugs/1160358 >13:17
mariuskoNeed for fix/workaround is urgent13:20
=== wedgwood_away is now known as wedgwood
=== wedgwood is now known as Guest28578
=== Makyo|out is now known as Makyo
mthaddonhi folks, if I do a "juju resolved instance relation" is it supposed to remove the relation-errors: entry from juju status (pyjuju)?14:06
SpamapSmthaddon: yes.14:08
SpamapSmthaddon: if you want it to retry the hook that caused the issue, add --retry14:09
mthaddonSpamapS: so I'd rather not retry the hook (or at least, not until I have a staging env to test on) but I'm still seeing the relation-errors after having run that command - any debugging that can be done to figure out why it's not marked resolved?14:10
SpamapSmthaddon: got a pastebin of the status output?14:10
mthaddonSpamapS: http://paste.ubuntu.com/5649469/14:12
facundobatistaquestion, "juju ssh <machine>" is stuck at "INFO Waiting for unit to come up": https://pastebin.canonical.com/87751/14:12
facundobatistaif I do "juju status", I see that the instance is ok, however there's a strange error: https://pastebin.canonical.com/87746/14:12
mthaddonfacundobatista: no-one outside canonical will be able to see those, fwiw14:13
facundobatistauh, bad pastebin14:13
facundobatistamthaddon, thanks14:13
=== imbrandon_ is now known as imbrandon
SpamapSmthaddon: yeah that is ??? don't know why thats not working14:16
SpamapSfacundobatista: Waiting for unit to come up is waiting for the machine agent to start14:17
mthaddonSpamapS: I guess I'll need to try reproducing the error, and then fixing by upgrading the charm and doing a --retry14:18
facundobatistaSpamapS, but status says "pending"... doesn't that mean that is already started? http://pastebin.ubuntu.com/5649481/14:18
facundobatistaSpamapS, how can I know what went wrong?14:19
SpamapSfacundobatista: no, pending is "I have never heard from that agent"14:27
SpamapSfacundobatista: check the cloud-init-output.log and console log. Likely skew between your client and what was installed/attempted to install on the instance14:28
=== defunctzombie_zz is now known as defunctzombie
Angel_hola15:38
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
=== imbrandon_ is now known as imbrandon
stephenoI have what is hopefully a quick question.16:22
stephenoAre the relationship kev-value pairs unique on a per service basis, or per service unit?16:22
stephenocontext: The postgres charm creates a new user/password for each service unit that joins a service relationship.16:23
stephenoafter this happens, the relationship-changed hook is fired and this new key-value pair is sent to several units, overwriting their own user/pass info from previous relation-changed runs16:25
jppiiroi1enhi, would someone have time to help me on getting the juju up and running on local? i have followed the guides at https://juju.ubuntu.com/get-started/ and related https://juju.ubuntu.com/docs/getting-started.html#configuring-a-local-environment" ..but i am getting following issue (machine_agent.log) http://paste.ubuntu.com/5649810/ "SyntaxError: invalid syntax" ..running on raring 64-bit.. any ideas, hints would help a lot16:50
jppiiroi1en"Py_Initialize: Unable to get the locale encoding"16:50
jppiiroi1eni guess that is the main issue16:50
sarnoldjppiiroi1en: that looks like https://bugs.launchpad.net/juju/+bug/115902016:51
_mup_Bug #1159020: SyntaxError: invalid syntax <juju:Confirmed> < https://launchpad.net/bugs/1159020 >16:51
sidneihum, i've seen that before. seems like a missing locale in the container actually.16:52
sarnoldjppiiroi1en: I'm not entirely sure what that means -- if juju on raring doesn't work at all, or just the local provider on raring doesn't work at all16:52
sarnoldsidnei: hazmat's response: < hazmat> sarnold, i suspect there is an underlying python distro issue16:53
jppiiroi1ensarnold: oh yes, the same16:55
sidneiyeah, python 2.7.4rc1 was uploaded recently, the webbrowser module is also broken16:55
sidnei(if you have google-chrome installed)16:56
sidneinot that it's related16:56
sarnoldah! I knew someone else had broken but couldn't recall. heh.16:56
jppiiroi1enthank you for confirming this, now i know that it is not just my workstation which is having the issue :)16:56
sarnold:)16:57
hazmatsarnold, barry's on vacation this week, he gave me some pointers to try and debug though16:58
sarnoldhazmat: oh man, bad time to lose barry :)16:59
sidneiah, cool that other one is fixed bug #115963617:01
_mup_Bug #1159636: python2.7 failed to import webbrowser: NameError in register_X_browsers(): global name 'Chrome' is not defined - Regression in 2.7.4~rc1-2ubuntu1 <amd64> <apport-crash> <patch> <raring> <rls-r-incoming> <python2.7 (Ubuntu):Fix Released by doko> <python2.7 (Debian):Fix Released> < https://launchpad.net/bugs/1159636 >17:01
dpm_hi marcoceppi, I've been looking at the WP charm and I'd like to use it to create instances of developer.ubuntu.com for testing purposes. I believe I can use it as is, apart from one bit: the d.u.c theme requires a copy of the database to be installed. Is this something that I could do with the current charm? Would I need to add anything to it?17:02
SpamapSdpm_: a copy of what database?17:11
stephenowedgwood: I have a question about the postgres charm. Perhaps you could help?17:11
dpm_hi SpamapS, the mysql database Wordpress uses to store its content on d.u.c - the Wordpress thems depends on some content from the database, so for the d.u.c theme to work on new instances, it requires that database content17:12
SpamapSdpm_: ah, sounds like a simple case where you need something that loads that data. Perhaps a subordinate charm.17:15
wedgwoodstepheno: possibly. what's up?17:15
facundobatistaquestion... I had a typo in the install hook ('raate' instead of 'rate'), so it crashed... destroyed the service, opened the hook file, fixed it, saved it, then deployed the charm again... and it failed again in with the same problem! but the file was fixed... could it be it's getting the file from some cache or something?17:16
dpm_SpamapS, I'm not sure, I'm not too familiar with charms. jcastro_ mentioned adding an option to the existing charm to let people seed the DB (e.g. juju set mysql seed-db=blah.sql)17:17
sarnoldfacundobatista: when iterating development, 'juju deploy -u' is useful :)17:17
facundobatistasarnold, thanks17:17
SpamapSdpm_: I believe it already has one for pulling a snapshot from s3.. so perhaps that can be adapted17:24
dpm_SpamapS, I'm not sure, I could not find any similar option on http://jujucharms.com/charms/precise/wordpress17:26
=== defunctzombie is now known as defunctzombie_zz
stephenowedgwood: I have multiple service units connecting to the postgres:db relationship, and the charm creates a new user/password and pg_hba entry for each unit.17:27
stephenoI was wondering if the key-value pairs set on the relationship are unique per unit, or global to the service.17:28
stephenoBasically i don't know how to ignore the relation-changed hook with invalid info for the service units which have already joined the relationship.17:29
stephenoSo all units get the user/password of the last unit to join the relationship to postgres17:29
wedgwoodstepheno: I'll have to look at that. when did you deploy that charm? I feel like that behavior has changed.17:31
stephenowedgwood: this morning :)17:31
stephenoi've been trying it out for the last week or so17:31
stephenoon precise17:32
wedgwoodstepheno: can you explain what you mean when you say you "don't know how to ignore the relation-changed hook with invalid info" ?17:37
wedgwoodThere isn't a way (without changing the charm) to use the same credentials for each relation.17:38
stephenowedgwood: sure. When i add another unit to the relation, the postgres charm will create a new user/password for that user. At that time, the db-relation-changed hook will fire on all units of my service17:38
stephenowedgwood: relation-get user will now return the newly created user for the latest unit, but it's only valid for one unit in the service17:39
stephenoNot sure how to ignore this on the other units.17:40
wedgwoodstepheno: I see. that's definitely a bug.17:40
stephenoI'd prefer to have distinct key value pairs per unit, but i'm not sure if that's possible17:40
stephenoit would be awesome if i could just do 'relation-get user service/1', and have it return the key-value pairs for that particular service unit17:41
wedgwoodstepheno: It looks like that code was written without understanding how relation-changed worked. That may have been my fault.17:42
stephenoI was looking through the debug-log when running this, and saw juju output an array of kv pairs. e.g. [ { user : x, pass : 1, unit: 1 }, { user: y, pass: 2, unit: 2}]17:42
stephenobut i believe it merges those dictionaries, unfortunately17:43
wedgwoodstepheno: do you have a few minutes to file a bug about that? https://bugs.launchpad.net/charms/precise/+source/postgresql17:47
wedgwoodstepheno: now as far as ignoring relation-changed ... what charm are you using at the other end?17:49
stephenowedgwood: sure. I even have a few minutes to work on a fix if you'd like17:49
stephenoi'm using a modified version of the python-django charm17:49
wedgwoodstepheno: certainly. It's not apparent to me what the fix should be since presumably the user and password given to each unit should be unit specific but relation-set doesn't appear to support hat.17:50
wedgwood*that17:50
stephenowell, i suppose a quick fix would be to set a value from the postgres charm. relation-set unit-id=JUJU_REMOTE_UNIT17:52
wedgwoodyou'd set that so that the other side could ignore irrelevant changes?17:54
stephenowedgwood: yeah17:54
wedgwoodthat would have to be implemented in every relatable charm thought. it's a break from how the relation is expected to work.17:56
wedgwoodplus it would make it confusing to implement relation-changed for changes that *should* affect all units.17:56
stephenowedgwood: good point.17:56
stephenoIdeally we'd have the ability to set distinct key-value pairs per service unit17:57
stephenoand be able to set global kv-pairs per service17:57
stephenoi.e. relation-set host=POSTGRES_IP17:58
wedgwoodI think the fix might really be to use one set of credentials per database, rather than per relation. pg_hba would will enforce connection restrictions.17:58
stephenorelation-set user=USER JUJU_REMOTE_UNIT17:58
wedgwoodI'm going to do a few experiments to confirm how things work. stand by17:59
stephenowedgwood: sure. Thanks a bunch, i've been slowly losing sanity trying to scour the documentation to find a way to do this18:00
=== hatch_ is now known as hatch
wedgwoodstepheno: ok, I've confirmed the behavior you're seeing. I think the fix is to use one set of credentials per *relation* rather than per unit. pg_hba would still contain explicit grants for each unit.18:17
wedgwoodsorry, that's per-relation-per-database18:18
hazmatsidnei, you digging on  riemann?18:24
sidneihazmat: haven't got my hands dirty yet, but it's high on my list18:27
hazmatsidnei, it looks pretty nice, i had the same concern you did though..18:27
hazmatsidnei, for automation though.. it seems like its basically going to need generation of lisp as config18:28
hazmatunless its a known config18:28
sidneicant remember the concern i had. :)18:28
hazmatsidnei, ha18:28
sidneiah, indeed18:28
stephenowedgwood: thanks. Do you have a working fix, or should i file the bug report and take a crack at it?18:29
hazmatsidnei, in future ostack w/ heat should address some of the same stuff (cloudwatch, autoscale groups, etc)18:29
sidneihazmat: so in the context of juju, yes. some lisp generation, sub-rienmanns for each set of services, aggregating on one or more cetnral ones.18:29
wedgwoodstepheno: I probably won't have a chance to make a fix today. I'd really appreciate a bug and merge proposals are always welcome if you have the time.18:30
wedgwoodstepheno: thanks for finding that problem18:31
sidneihazmat: my short term plans were for replacing some of our statsd usage by rienmann events and use the graphite output instead, mostly to give better real-time visualization of core stats.18:33
hazmatstepheno, that should only be creating a single user/password/db for the entire service fwiw.18:35
stephenohazmat: got it. Is there a particular benefit to the current behavior(one user/password per service unit, one db per service)?18:37
hazmatstepheno, its helpful when diagnosing query perf issues, as it identifies the remote side.. it can also be useful for compromise mitigation18:39
sidneiwas about to say the same18:39
stephenohazmat: cool, that's what i assumed the intention was. I'll go ahead and file this bug report, and then file a feature request for juju-core to be able to set unique kv-pairs per service unit.18:40
hazmatstepheno, well the later is already true18:41
stephenohazmat: !18:41
hazmateach unit has its own private data store for k/v in the relation18:41
hazmatits just that each change to that data store is broadcast to the world.18:41
hazmatthe world being all the units of the other side of the relation18:42
hazmatin this case it seems the postgresql charm is basically overwriting its own data and broadcasting in attempt to communicate private info to an individual remote unit18:42
* hazmat really wants to see the tic-tac-toe relation18:43
stephenohazmat: i'm imagining the ability to set k/v specifically for the service unit that initiated the request. postgres would have global k/v for all related service units, and individual k/v for each service unit18:43
hazmatstepheno, you mean each postgres unit i think.. its kinda of against the goals to have that sort of individualized state.. ie. what happens when that pg unit dies..18:45
stephenohazmat: not exactly. the postgres charm would set k/v on the relation. The keyspace would look like this:18:46
stepheno{ host: x, db: y, unit_1: { user: 1, pass: 1}, unit_2: { user:2, pass: 2} }18:47
stephenothere are k/v global to the service, and unique values are possible per service unit18:48
hazmatgotcha18:48
sidneiideally if there's a k/v that's specific to a unit only that unit should be able to access it18:49
hazmatsounds reasonable and worth a bug or ml discussion, although i worry about abuse of individualized state18:50
sidneihazmat: speaking of ha, facing an interesting problem with that. got a couple services that need to talk to multiple endpoints (eg: multiple squid units), but only support being configured to talking to a single one (eg: http_proxy env variable). thinking that the best way around that might be an haproxy subordinate or even something more lightweight that then proxies/lbs to the multiple endpoints. got any better idea?18:51
stephenois this possible with the current infrastructure? it would be nice to set service global k/v with "relation-set key=value", and unique with "relation-set key=value service_unit"18:51
hazmatstepheno, its possible without the ns enforcement by the charm alone, additional visibility restrictions would need to be in juju18:52
hazmatjust via $JUJU_REMOTE_UNIT-key=value18:52
hazmatsidnei, i'm not sure i parse that.. are the multiple squid units all members of the same service.. and then the issue is then that the usage only supports a single host ? which would imply a different usage is needed.18:54
sidneihazmat: yes, multiple members of the same service, usage only supports a single host.18:54
stephenohazmat: yeah, i think i'll stay away from that approach for now. I'll write up a feature request for juju-core in a bit. Don't want to infect the postgres charm with framework workarounds when it might just be nice to have in juju-core18:55
sidneihazmat: so the idea of making single host -> localhost:$port -> lb to multipe units18:56
hazmatsidnei, yeah.. a local proxy managed as alternative sounds pretty reasonable.. haproxy is pretty lightweight18:56
hazmatstepheno, sounds good18:56
sidneihazmat: wonder if there's a generic pattern that can be extracted from that18:56
hazmatsidnei, if there is encapsulation to a sub should do the trick, with non generic (juju-info) relation to primary to encompass config passing, if its not centrally configured (svc) on the sub.19:05
sidneihazmat: let me see if i parse. sub to primary via juju-info, primary controls the sub via passing information in the juju-info relation?19:09
hazmatsidnei, not using juju-info .. using a custom interface that the primary and sub can communicate on19:11
sidneiah, gotcha. missed the 'non' in non generic above.19:11
hazmatthe sub-e-ness is dictated by a metadata flag and the sub relation by the 'container' scope.. the juju-info is just an implicitly provided one so generic subs can be defined (monitoring, logging, etc).19:12
hazmatcool19:12
_mup_Bug #1160538 was filed: juju-origin: bzr branch puts binaries  into /usr/local which needs to be explictly added to hook path <juju:Confirmed> < https://launchpad.net/bugs/1160538 >19:13
=== JanC_ is now known as JanC
=== chrischr1s is now known as chrischris
marcoceppiSpamapS dpm_ The "pull snapshot from S3" was a hack that's since been removed. The preferred method for loading extra data in to a database at the moment would be to create a script that does it for you and have it executed from the browser20:12
SpamapSmarcoceppi: s/browser/automated-deploy-workflowy-thing/20:35
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz
=== OutOfControl is now known as benonsoftware
=== defunctzombie_zz is now known as defunctzombie
=== wedgwood is now known as wedgwood_away
=== defunctzombie is now known as defunctzombie_zz
=== defunctzombie_zz is now known as defunctzombie
=== defunctzombie is now known as defunctzombie_zz

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