/srv/irclogs.ubuntu.com/2014/02/12/#juju.txt

=== Darkwing_ is now known as Darkwing
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
=== mwhudson is now known as zz_mwhudson
hloeungbdmurray: delete the provider-state and bootstrap-verify files in the control bucket07:17
vilaaxw: hi there, still around ? (Replying to your mail while you pong ;)07:22
axwvila: hiya, I am07:23
vilaaxw: almost there07:25
vilaaxw: replied for the questions in the first part of the mail, that leaves us with the config you want me to try, let me re-phrase to make sure we're on the same page07:27
axwsure07:28
vilano , in fact, I can't ;) So, when you say "Could you07:28
vilatry bootstrapping, then try to manually ssh with the options above and "-v"07:28
vilato see what keys ssh is trying?", what config and what options do you mean ?07:28
axwI mean try running the ssh command I pasted:  ssh -v -i ~/.juju/ssh/juju_id_rsa -i ~/.ssh/id_rsa -i ~/.ssh/id_dsa -i ~/.ssh/identity <host>07:29
axwI realise they're not relevant to you, but that's what juju's doing07:29
vilaaxw: I realize the config that was working doesn't make a lot of sense given your explanations, but it was working which blurry what I should try07:29
vilaoh, right07:29
axwit *should* be working if you've got the private key loaded in ssh-agent07:30
axwthose -i's are just so we try the defaults in case they're not also loaded into an agent07:30
vilaso, restore a config with one key for chinstrap and a different one in authorized-keys-path ?07:30
axwyes please07:31
vilaha, loaded in the agent, hmm, hard to say if/when that was the case, let me setup that07:31
axwI will try the same to see if I can reproduce it07:31
axwyou said in your email it was though?07:31
axwdo you mean it was but maybe is not now?07:32
vilayeah, there is a grey area during which I suspect I upgraded juju to 1.17.2 while my node was still bootstrapped07:34
vilarunning $ juju bootstrap --show-log07:34
=== Ursinha is now known as Ursinha-afk
viladamn it it works07:35
axwdoh :)07:36
vilaand so does the ssh command above07:36
axwif it does fail again, just confirm that the agent has/n't got the key loaded07:37
vilassh-add -l lists the key in authorized-keys-pat07:37
vilah07:37
vilaaxw: I will but it's a passwordless key so I think those don't have to be added to the agent, will re-try with a clean one07:38
axwvila: it does if you want ssh to try it. otherwise it needs to be specified with -i, or in ~/.ssh/config07:39
vilaaxw: well, it is specified in my ~/.ssh/config in the section that goes through chinstrap07:39
axwthe authorized-keys-path one?07:40
vilayes07:40
=== CyberJacob|Away is now known as CyberJacob
vilare-trying after 'ssh-add -D'07:41
vilaqueried for my lp key07:42
vilastill working07:43
vilaqueried while bootstrap I mean, trying your ssh command07:43
vilaHost key verification failed.07:43
* vila fixes known_hosts07:43
axwvila: just pass -o StrictHostKeyChecking=no07:44
vilassh works too07:44
axwyou'll get that a lot otherwise07:44
vilahuh, OMG:07:44
vilaapt-cache policy juju-core -> 1.16.3-0ubuntu0.13.10.1~ctools07:45
vilawth07:45
viladoh07:45
axwdoh :)07:45
vilaI'm on the machine-0 host ;)07:45
vilaright, on my desktop: 1.17.2-0ubuntu1~ubuntu13.10.1~juju107:45
vilafrom http://ppa.launchpad.net/juju/devel/ubuntu/ saucy/main amd64 Packages07:46
=== Ursinha-afk is now known as Ursinha
axwso if that's working, I'm really not sure why it wasn't working before07:47
vilaaxw: gee, me neither but it sure wasn't, there was an error initially (using one key in ~/.ssh/config and a different one in envs.yaml) but I did align and reproduced the error (without ssh-add -D though but I can't see the link). Then I used the same key and it worked07:49
axwI'll play around with my keys and see if I can reproduce it07:50
vilaaxw: let's call it unreproducible for now07:50
vilaaxw:  is there some place I can check for logs about some ssh -vv juju may have internally ?07:50
vilaaxw: or some way to pass -vv to juju and get some output ?07:51
axwvila: nope, stupidly I did not add logging for that bit07:51
vilaaxw: bah, I guess, using the ssh command (with nohostchecks) is close enough right ?07:51
axwyes, and the "-i" args07:52
axwthey're important because they change behaviour of how default keys get picked up and so forth07:52
vilaaxw: sure, thanks for that one07:52
vilaaxw: yup, the commit msgs were very good to point me in that direction07:53
vilaaxw: I'm adding automated tests around bootstrap anyway, so I'll know if I run into that again07:54
axwgreat, thanks07:54
vilaaxw: thanks to you, enjoy your evening !07:54
axwcheers, and have a nice day :)07:55
cargillhi, after having some problems with an existing vagrant env, I removed it (removing Vagrantfile, ./vagrant, ~/.vagrant.d and ~/Virtualbox VMs), then set it up again and I cannot do juju ssh or debug-log anymore (in the freshly created environment)08:37
cargillthis makes juju slightly useless and me stuck because I have no idea whatsoever how to find out what went wrong (if it is #1202682, I do not understand how sinzui divined that it should be an ssh issue, so I cannot say I'm suffering from that)08:47
_mup_Bug #1202682: debug-log doesn't work with lxc provider <cts-cloud-review> <debug-log> <local-provider> <papercut> <ssh> <ui> <juju-core:In Progress by themue> <https://launchpad.net/bugs/1202682>08:47
=== rogpeppe1 is now known as rogpeppe
cargilloh, and /var/log/juju-setup.log logs a few different errors/warnings but I can still deploy (some) charms, so they might be inconsequential09:01
TheMuecargill: never worked with vagrant, the mentioned issue is when using the local provider09:03
TheMuecargill: but you could paste your setup log to have a look09:03
cargillTheMue: which the vagrant image sets up (it's a virtualbox machine that has juju+local set up)09:04
cargilldocumented here https://juju.ubuntu.com/docs/config-vagrant.html09:04
TheMuecargill: ah, based on lxc, so at least the ssh/debug-log problem could be the same. the local provider doesn't uses an explicit container for state and api. so ssh doesn't work here.09:08
TheMuecargill: but the log exists at $JUJU_HOME/<ENVNAME>/log/all-machines.log09:10
cargillif that's the case, that would explain debug-log not being able to run, but would not explain the failure to ssh to other containers09:18
cargillthis is juju-setup.log, this time for a precise vagrant box http://pastebin.com/zJ88WR6T09:21
cargillTheMue: there is no all-machines.log file anywhere on the box09:34
TheMuecargill: hmm, so it is more different from local provider than thought09:36
cargillif I understand the documentation, it should use a vanilla local provider, so maybe something is horribly broken, just not showing in the juju-setup.log?09:37
cargillyet nothing matching /error/i in the syslog09:39
cargillor anywhere relevant in /var/log09:40
cargillmust be something wrong with my setup (I wish juju just worked on Debian directly without an extra level of virtualization)09:43
cargillAny thoughts on how to find out what's wrong/how to work around this?09:58
cargillfunny, I can "juju ssh postgresql/0" but not "juju ssh 2" where 2 is the machine that postgresql/0 uses10:11
cargillwhy does postgres node see connections from another node as coming from 1.0.3.1 instead of the node's IP (10.0.3.86)?11:18
dimiterncargill, it seems you're using the local provider - its ip addresses are like 10.0.3.x, so this could be the host machine's ip in the lxc bridge11:31
cargillyes it is11:32
dimiterncargill, so that's why - the host's ip is also the default route on the lxc subnet11:32
cargilldimitern: this makes relations to postgres not work, since only the other node's IP gets whitelisted, not the host's IP11:35
cargillis this a bug?11:35
dimiterncargill, container networking is still not implemented, so you might expect issues like this11:46
cargillah, ok, so a known missing feature and need to work around that, fine with me, is there a list? :)11:46
dimiterncargill, and manual steps might be needed for charms to work, like setting config options etc. from the command line11:47
dimiterncargill, juju-dev@lists.ubuntu.com is the place to raise questions or the #juju-dev channel here on freenode, but reporting bugs is always welcome - just please make sure you do a search first to see if what you're seeing is not already reported11:48
cargillI mean a list of quirks to watch for in a "local" deployment11:49
dimiternthere's a list of known bugs - https://bugs.launchpad.net/juju-core/+bugs?field.tag=local-provider11:51
=== CyberJacob is now known as CyberJacob|Away
cargilldimitern: thanks12:07
melmothjuju people: what happen in a charm when a "juju destroy-unit" is called ?13:28
marcoceppimelmoth: faily certain that the unit is marked as dying, then any relations that exist go through the -relation-departed/broken cycle, then stop hook is called, then it's removed from topology13:33
=== frankban_ is now known as frankban
=== frobware is now known as zz_frobware
rick_h_marcoceppi: I'm trying to run two local envs and I see it noting storage ports and such but I'm getting an error ERROR cannot use 37017 as state port, already in use15:06
rick_h_when I try to bring up the second local env15:06
rick_h_is there a config bit for the env.yaml for that? I don't see a reference in the docs15:07
marcoceppirick_h_: that's annoying, what version juju?15:07
rick_h_1.17.2-trusty-amd6415:07
marcoceppirick_h_: there's like three things you need to do, iirc, and they're not really well documented anywhere15:07
marcoceppithumper: what do you need to run multiple local envs?15:07
rick_h_marcoceppi: ok, good to know it's not just me missing the boat then.15:08
rick_h_marcoceppi: he'll be afk, I can check with him tonight. I need to get some instructions written up for demos for sales folks15:08
marcoceppirick_h_: yeah, let me go poke at it real quick see if I can't jog my memory15:08
marcoceppirick_h_: if you do, please pass those notes on to me so I can get them in the docs15:08
rick_h_marcoceppi: k, appreciate it if you know, but no rush. I've got a couple of days to get things written out/tested15:08
rick_h_marcoceppi: rgr15:09
=== zz_frobware is now known as frobware
=== luca__ is now known as luca
=== cmagina_ is now known as cmagina
=== markthomas_ is now known as markthomas
=== hatch___ is now known as hatch
=== freeflying is now known as freeflying_away
stokachuis there a decent application for testing websockets in the console?18:35
stokachulike i want to test the connection to the juju api with json parameters18:36
marcoceppiDoes anyone know if you can deploy a subordinate to a subordinate19:03
=== CyberJacob|Away is now known as CyberJacob
=== zz_mwhudson is now known as mwhudson
=== Kyle- is now known as Kyle
=== psivaa is now known as psivaa-afk
=== thumper is now known as thumper-lunch
=== CyberJacob is now known as CyberJacob|Away

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