=== ramrunne1 is now known as dsp [09:08] o/ [09:08] I have some questions about ways to optimize the deploy process with Juju [09:10] I mean, Juju works great but I have a huge deployment that I split in parts using overlays and when adding new apps/units, it can take a long time before a new LXD container is started even though there is no load pressure on the hosts [09:11] sometimes I deploy maybe 2 or 3 apps at once with 3 units each but it gives me the impression that juju deploy apps one after the other waiting for the firt to come up before spinning the other and that wastes a lot of time for apps that are not always related [09:13] are there any options that can be tuned to make juju a little faster ? === Hybrid51227 is now known as Hybrid512 [15:11] I need help on MaaS proxy - I configured MAAS with Peer Proxy enabled and see squid proxy is running; and I also see all the managed machines were up and updated; now on running apps; The app installation fails saying unable to download the image; I was able to download the image If I login to the machine and run the same command but the app fails [15:11] on running - juju deploy [15:13] juju model-config is showing the right proxy configured for http, https, snap and no-proxy. [16:40] I need help on MaaS proxy - I configured MAAS with Peer Proxy enabled and see squid proxy is running; and I also see all the managed machines were up and updated; now on running apps; The app installation fails saying unable to download the image; I was able to download the image If I login to the machine and run the same command but the app fails [16:40] on running - juju deploy [16:40] juju model-config is showing the right proxy configured for http, https, snap and no-proxy. [16:43] viswa: can you clarify what you mean by image? [16:44] I am running juju deploy rabbitmq-server and I found that in the log and juju status saying trying to download the lxd image and it is failing in downloading it.If I am right that is ubuntu:focal image to bring the rabbitmq-server is failing [16:47] achilleasa_ I wish I answered your question [16:49] viswa: when you configured you model, did you also provide a juju-http-proxy/juju-https-proxy value? [16:49] yes and I could see them in juju model-config too [16:50] note that there is both an http-proxy and a juju-http-proxy setting [16:50] may I know what is the command to see juju-http-proxy setting [16:52] so basically, when you bootstrap you just need to pass '--config juju-http-proxy=X' '--config juju-https-proxy-X' [16:53] when you run `juju model-config` you should see a value there [16:53] also, you mentioned that if you ssh in the box you can successfully 'lxc launch' things? [16:53] achilleasa_ I do see this in Ubunut [16:53] These Juju-specific proxy settings are incompatible with the four corresponding legacy proxy settings described in earlier sections. Data validation is enabled to prevent collisions from occurring. [16:53] Reference - https://discourse.charmhub.io/t/offline-mode-strategies/1071 [16:54] I think you bootstrapped with the 'http-proxy' setting instead of 'juju-http-proxy' [16:54] achilleasa_ I was able to successfully run command lxc launch on running manually [16:54] would it be possible to bootstrap again but this time use the juju-prefixed value? [16:55] and inside the box, if you 'env | grep proxy' do you see the URL for squid? [16:55] achilleasa_ Sure I will do that [16:56] so I don't want to have http-proxy or https-proxy during bootstrap rather I need to have juju-http-proxy and juju-https-proxy [16:56] yes, that one supersedes the plain one AFAICT [16:56] one sec, let me double-check that [16:57] Coo! I could see http_proxy and https_proxy on env [16:57] pls let me know so that I will do bootstrap again [16:57] yes, the juju-http(s)-proxy ones seem like the way to go [16:59] not 100% sure if needed but you may also have to pass the proxy address as a 'juju-no-proxy' setting (you can set that post bootstrap) [16:59] Hi - Just wanted to ask, is there any sort of graphviz-like tool for rendering Juju bundles visually? I've been playing with the generatesvg.go tool in jujusvg, but it depends on gui-x/gui-y annotations. If I want to quickly visualize a bundle exported from a cloud, well, that doesn't seem to work well for that case. [17:04] achilleasa_ I will do that === achilleasa_ is now known as achilleasa [17:31] viswa: just tried it and it works for me with juju-htt(s)-proxy. I added squid's IP (which is the same as the lxd remote IP that I was testing on) as juju-no-proxy [17:32] also, can you please double-check your squid configuration to make sure that it's ACL doesn't block requests to the lxd image repository? [17:49] achilleasa do we need to provision the machine after adding proxy in juju model-configu [17:49] or juju automatically push the proxy configuraiton to the machine by the time I run juju model-config [17:50] no, the machine agent will do that for you a few moments after you change any of the proxy settings [17:50] if you juju debug-log you will spot a message where it lets you know that the proxy settings have been updated [17:55] achilleasa install hook failed saying proxy authenticaiton required on running debug-log === jose_ is now known as jose === shann_ is now known as shann [19:58] Hi [20:22] I am trying to understand how to do a juju charm, Someone can explain me what is the main difference between @hook('amqp-relation-joined') @when('endpoint.amqp.joined') ? There are some points that I am using when and when_not however with hooks is not triggering the funcion. Thanks for your help