/srv/irclogs.ubuntu.com/2017/07/07/#juju.txt

jac_cplanehow do i unset no-proxy env variable in juju 2.2?  this was not set in 2.1   - juju model-config no-proxy="" give error ERROR no-proxy: expected string, got nothing00:28
tvansteenburgh1jac_cplane: juju model-config --reset no-proxy00:33
=== tvansteenburgh1 is now known as tvansteenburg
=== tvansteenburg is now known as tvansteenburgh
jac_cplaneno --reset will set it to the default value - which is set to localhost00:33
jac_cplanethere is no --unset command00:34
=== jac__ is now known as jac_cplane
=== rogpeppe2 is now known as rogpeppe
Hetfieldgood morning. i have a hook failed: "config-changed" error on a unit. someone did something but i don't know what. is there a sort of log of juju action on a units?08:36
=== frankban|afk is now known as frankban
BringeHey, i do have a question about juju.11:20
zeestratBringe: Fire away.11:22
BringeWhat is the best practice if a machine with active services breaks down, how am i supposed to replace that? I'd like to "redeploy" it without having to build a "new" machine and adding every service to that new machine.11:23
BringeIs there a way to do that?11:23
BringeIn a private cloud with maas.11:25
rick_hBringe: so you'd add the new machine and then run add-unit to the applications using --to to specify where to place it?11:43
rick_hBringe: not sure on how it was setup to start with11:44
rick_hBringe: but that way relations/config/etc are kept and you're just adding a new unit for things11:44
BringeI agree, i can do that. Is there no more automated way of saying "put services that were on machine X onto machine Y"? :(11:46
digvjuju bootstrap fails Error: ld.so:object 'libeatmydata.so' from LD_PRELOAD cannot be preloaded , Running module ntp failed11:48
rick_hBringe: no, I suppose that's something someone could play with as a plugin using libjuju to script out a search of what's there andrecreate11:48
digvany idea?11:48
rick_hdigv: wow, that's a new one for me. Doing a quick look11:50
rick_hdigv: what cloud/series is this?11:50
digvMAAS11:50
rick_hdigv: do the machines come up cleanly if you just start them from MAAS?11:51
rick_hdigv: what OS are they in MAAS? trusty/xenial/?11:51
BringeWell thanks for the information, rick_h!11:51
rick_hBringe: sorry, always wish I could say "yea we can do that" but sometimes, not there yet11:52
digvyes.. it is clean setup with ubuntu xenial11:52
Bringedigv: We encountered a similiar problem, try forcing the kernel to be at least at xenial (hwe-16.04), that fixed it for us.11:53
Bringerick_h: No problem, we will find a solution.11:54
digvBringe: ok.. Let me try it quickly11:54
julenHi there! I'm also having some problem bootstrapping juju with MaaS. It stops at:12:12
julen13:50:14 INFO  juju.juju api.go:67 connecting to API addresses: [10.0.100.47:17070]12:12
julen14:00:12 DEBUG juju.api apiclient.go:837 error dialing websocket: Forbidden12:12
digvBringe: It's working.. thanks a lot :)12:12
julenIs it possible to define multiple "no-proxy" addresses as:12:49
julenjuju bootstrap machine --config http-prox=http...  --config no-proxy=192.168.1.2,10.0.0.212:49
julenAt the node bootstrapped by juju, I can run "nc -vz 10.0.0.51 17070"  and it works, but juju still gets stuck on that step12:54
julenIf I make curl to that address I get some binary stuff, so the http-proxy stuff seems right, but the API is still not responding12:57
cnfwpk: poke12:58
wpkcnf: pokeback12:59
cnf\o/12:59
cnfi'm done with meetings for today12:59
cnfback to fixing the juju thingies12:59
wpkyay!12:59
wpkCould you start 'from scratch'?12:59
wpkkill this machine, then add it, and step by step see what happens?13:00
cnfi can juju destroy-model, and juju deploy, if you want13:00
cnfit'll take a while, booting HP machines isn't fast13:01
cnfwpk: will that work, or did you want something more specific?13:01
wpkdestroy-model, add-model, model-config logging-config "<root>=DEBUG", deploy13:01
wpkthat should be enough13:01
cnfok13:01
cnfWaiting on model to be removed, 16 machine(s), 16 application(s)...13:02
cnfERROR expected "key=value", got "logging-config" ?13:03
cnfjuju model-config logging-config="<root>=DEBUG" works13:04
wpkAh, sorry, right13:08
cnfhmz, juju is being weird13:15
cnfwpk: how do i force remove a model from juju?13:19
wpkwhat do you mean by 'weird'?13:19
cnfMaaS shows all machines as ready13:20
cnfjuju says it can't release the machines13:20
cnfi'm stuck at Waiting on model to be removed, 4 machine(s)...13:21
cnfoh, seems it timed out, and did it anyway13:22
cnfo,O13:22
cnfok, now we wait half an hour13:24
cnfwpk: machines are up, juju is doing its thing13:37
wpkcnf: cool13:44
cnfwpk: it's almost there14:13
cnfwpk: what's the next step?14:13
wpkcnf: what's the current status?14:16
wpkis the machine dead as it was previously?14:16
wpkwell, network-wise dead14:16
cnfyep14:16
cnfon that vlan, anyway14:16
wpkcould you copy /var/log/juju/* from it somewhere?14:16
cnfhttps://bpaste.net/show/21ea96526ca714:17
cnfdo you need unit-neutron-gateway-0.log and unit-ntp-3.log as well?14:17
wpkcnf: could you also provide output of grep "" /etc/network/interfaces/* and ip a ?14:20
cnfyou mean /etc/network/interfaces.d/* ?14:20
wpk/etc/network/interfaces*14:20
wpkall files there, new and backups14:21
cnfok14:21
cnfyou had a / there that made me wonder :P14:21
wpktypo :)14:21
cnfwpk: https://bpaste.net/show/c2b08cb540ab14:23
cnfi still don't get where it gets 172.20.19.248 from, it should not have _antyhing_ in that subnet14:23
wpkand ip a?14:23
wpkand ip r14:24
cnfoh, https://bpaste.net/show/55a4b774600414:24
cnfi forgot to link it :P14:24
wpkok, so I don't see bond0.4013 there14:25
wpkI see br-bond0.4013 but no bond0.401314:25
cnfwpk: https://bpaste.net/show/4fe735871db014:25
cnfwpk: where?14:25
cnfitem 30 in ip a14:26
wpkah, sorry, yues, it's there14:26
wpkbut why master ovs-system?14:26
wpkcould you also do brctl show ?14:27
cnfbrctl show br-bond0.4013 ?14:27
cnfhttps://bpaste.net/show/ecb674077e4214:28
wpkbrctl show ovs-system ?14:29
wpkwhere is this getting from, it's not in the e/n/i anywhere14:29
cnfbridge namebridge idSTP enabledinterfaces14:30
cnfovs-systemcan't get info Operation not supported14:30
cnfwpk: i'm betting that's a neutron thing14:31
wpkhm, it might be. and it's eating bond0.401314:31
cnfhmm14:32
wpkcnf: did it worked on 2.1?14:32
cnfyes, but now that you point to that, some other details changed14:33
cnflet me try some shizzle14:33
cnfi need to destroy everything though14:33
cnfanything you'd like me to check before I do?14:33
wpkcnf: copy of syslog and unit-neutron-gateway-0.log14:34
wpkcnf: and then do your thing14:34
cnfk, deploying again14:38
cnfit'll take half an hour :P14:38
cnfugh, now juju isn't asking for all the machines it needs o,O14:59
cnfwhy is it not asking for more machines? o,O15:01
cnfwpk: any reason juju isn't asking MaaS for all its machines?15:04
wpkwhaa?15:05
cnfi have 4 machines configured in my model15:05
cnfjuju is only asking for 1 from maas15:05
cnfi'm watching the maas logs, it's just not getting any other requests15:06
cnfi can't juju retry-provisioning 015:06
cnfbecause machine 0 isn't in an error state15:06
cnfi see in MaaS15:07
cnfJul  7 16:58:50 MAAS maas.api: [info] Request from user juju to acquire a machine with constraints: [('tags', ['compute', 'openstack']), ('interfaces', ['0:space=5;1:space=1;2:space=2']), ('agent_name', ['a702d342-3c94-4ff5-8548-c296fb5d2dae']), ('zone', ['default'])]15:07
cnfwhich is right15:07
cnfbut no requests for the other 3 machines15:08
wpkSo the machine is in proper state in juju but not it's not provisioned?15:09
wpk(brb)15:09
cnfwpk: https://bpaste.net/show/77d220e2a78515:11
cnf3 machines in "pending"15:11
cnfnothing happening15:11
cnfnow the 1 machine is deployed15:13
cnfthe other 3 are not moving15:13
cnfwpk: so i just ran the same juju deploy openstack.yml again15:15
cnfnow it's getting the other 3 machines15:15
cnfO,o15:15
julenHi there!15:20
julenI'm having a weird problem while bootstrapping15:20
julenthe process stops waiting for the websocket, at:15:20
julenINFO  juju.juju api.go:67 connecting to API addresses: [10.0.0.52:17070]15:20
julenand then... DEBUG juju.api apiclient.go:837 error dialing websocket: Forbidden15:21
julenI am behind a http-proxy, but I the no_proxy and no-proxy variables are defined and from the shell I can access that IP:port with curl15:22
julenhow can it be that curl can connect but juju not?15:23
cnfwell, curl isn't connecting to the websocket15:25
julenreally? ... but after the request, it gets some stuff... binary, but something comes out15:25
julenthe error says "error dialing websocket: Forbidden", but I do see the IP and the port, and the proxy is not blocking it...15:28
julencnf: from my limited knowledge, I got the picture that a websocket is a port listening to http requests, right?15:32
cnfit's listening to websocket requests15:32
julenso, curl http://10.0.100.52:17070  is equivalent to what juju is trying to do15:32
cnfon the same port as your http request, generally15:33
cnfwebsockets do an upgrade on a http request, and then become a websocket15:34
cnfyour curl is just getting the html/css/js files15:34
julenaha!15:35
julenso, my error might have to do with some settings within the API15:35
cnfit might be you not being authenticated15:35
cnfor a proxy not allowing it15:35
julenhmm... that sounds possible...15:36
julenbut, I don't think our http-proxy has such a complex settings, to allow traffic but drop authentication15:37
julenis there any way I could check that?15:38
cnfnot authentication15:39
cnfjust not allowing websockets15:39
cnfyou send a websocket upgrade through the http proxy15:39
cnfit responds with "nope!"15:39
cnfthat _might_ be one of the reasons15:40
cnfnot saying that is the reason15:40
julen... and I probably can not check that with some curl request or something, right?15:40
cnfwell, use your browser, and enable webdev / debug tools15:41
cnfyou should be able to see all requests, and the responses15:41
cnfgenerally under network you can see the headers sent and received15:41
julenwell.. the browser seems to work. I get the headers...15:46
julenthe response  is just a couple of red dots, I don't know what that means15:47
julencnf: I have an openstack with nova with same settings and it works fully, so I guess I can discard the option of the proxy blocking the websockets, right?15:55
cnfwpk: prod16:15
wpkcnf: ?16:16
cnfwpk: shizzle works, i'm going home :P16:16
wpkcnf: could you explain what have you done?16:17
wpkcnf: for future generations :)16:17
cnfwpk: changed the data-port: in my model16:18
cnfwpk: so i shuffled some machines around16:24
cnfand my data-port was set to the wrong interface16:24
cnfi still don't know where it gets the 172.20.19 network16:25
cnfor why it wasn't aquireing the machines16:25
cnfbut it was ovs claiming an interface that was already provisioned (which i think it should not be allowed to, tbh)16:25
cnfwpk: so i guess it was me being an idiot16:28
cnfanyway, i'm going home16:28
cnfwpk: thanks a lot for your help! and have a nice WE!16:28
=== frankban is now known as frankban|afk
Budgie^Smoreo/ juju world'18:40
=== scuttle|afk is now known as scuttlemonkey
=== scuttlemonkey is now known as scuttle|afk

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