[09:08] <Hybrid512> o/
[09:08] <Hybrid512> I have some questions about ways to optimize the deploy process with Juju
[09:10] <Hybrid512> 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] <Hybrid512> 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] <Hybrid51227> are there any options that can be tuned to make juju a little faster ?
[15:11] <viswa> 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] <viswa> on running - juju deploy <app>
[15:13] <viswa> juju model-config is showing the right proxy configured for http, https, snap and no-proxy.
[16:40] <viswa> 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] <viswa> on running - juju deploy <app>
[16:40] <viswa> juju model-config is showing the right proxy configured for http, https, snap and no-proxy.
[16:43] <achilleasa_> viswa: can you clarify what you mean by image?
[16:44] <viswa> 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] <viswa> achilleasa_ I wish I answered your question
[16:49] <achilleasa_> viswa: when you configured you model, did you also provide a juju-http-proxy/juju-https-proxy value?
[16:49] <viswa> yes and I could see them in juju model-config too
[16:50] <achilleasa_> note that there is both an http-proxy and a juju-http-proxy setting
[16:50] <viswa> may I know what is the command to see juju-http-proxy setting
[16:52] <achilleasa_> so basically, when you bootstrap you just need to pass '--config juju-http-proxy=X' '--config juju-https-proxy-X'
[16:53] <achilleasa_> when you run `juju model-config` you should see a value there
[16:53] <achilleasa_> also, you mentioned that if you ssh in the box you can successfully 'lxc launch' things?
[16:53] <viswa> achilleasa_ I do see this in Ubunut
[16:53] <viswa> 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] <viswa> Reference - https://discourse.charmhub.io/t/offline-mode-strategies/1071
[16:54] <achilleasa_> I think you bootstrapped with the 'http-proxy' setting instead of 'juju-http-proxy'
[16:54] <viswa> achilleasa_ I was able to successfully run command lxc launch on running manually
[16:54] <achilleasa_> would it be possible to bootstrap again but this time use the juju-prefixed value?
[16:55] <achilleasa_> and inside the box, if you 'env | grep proxy' do you see the URL for squid?
[16:55] <viswa> achilleasa_ Sure I will do that
[16:56] <viswa> 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] <achilleasa_> yes, that one supersedes the plain one AFAICT
[16:56] <achilleasa_> one sec, let me double-check that
[16:57] <viswa> Coo! I could see http_proxy and https_proxy on env
[16:57] <viswa> pls let me know so that I will do bootstrap again
[16:57] <achilleasa_> yes, the juju-http(s)-proxy ones seem like the way to go
[16:59] <achilleasa_> 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] <vultaire> 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] <viswa> achilleasa_ I will do that
[17:31] <achilleasa> 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] <achilleasa> 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] <viswa> achilleasa do we need to provision the machine after adding proxy in juju model-configu
[17:49] <viswa> or juju automatically push the proxy configuraiton to the machine by the time I run juju model-config
[17:50] <achilleasa> no, the machine agent will do that for you a few moments after you change any of the proxy settings
[17:50] <achilleasa> if you juju debug-log you will spot a message where it lets you know that the proxy settings have been updated
[17:55] <viswa> achilleasa install hook failed saying proxy authenticaiton required on running debug-log
[19:58] <d4rks1d3> Hi
[20:22] <d4rks1d3> 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