For the record, by lowering MTU of eth0 on LXD on top of OpenStack VM by hand as `ip link set eth0 mtu 1442`, that makes binary download successful.
+ printf Attempt 17 to download agent binaries from %s...\n https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 Attempt 17 to download agent binaries from https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64... + curl -sSfw agent binaries from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --connect-timeout 20 --noproxy * --insecure -o /var/lib/juju/tools/2.9.8-ubuntu-amd64/tools.tar.gz https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 curl: (28) Operation timed out after 20001 milliseconds with 0 out of 0 bytes received agent binaries from https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 downloaded: HTTP 000; time 20.001599s; size 0 bytes; speed 0.000 bytes/s + echo Download failed, retrying in 15s Download failed, retrying in 15s + sleep 15 + n=18 + true + printf Attempt 18 to download agent binaries from %s...\n https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 Attempt 18 to download agent binaries from https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64... + curl -sSfw agent binaries from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --connect-timeout 20 --noproxy * --insecure -o /var/lib/juju/tools/2.9.8-ubuntu-amd64/tools.tar.gz https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 agent binaries from https://192.168.151.101:17070/model/9e5ed9b4-224d-4486-8dac-b56a70b9bd8b/tools/2.9.8-ubuntu-amd64 downloaded: HTTP 200; time 2.124569s; size 124661048 bytes; speed 58691642.000 bytes/s + echo Agent binaries downloaded successfully. Agent binaries downloaded successfully. + break + sha256sum /var/lib/juju/tools/2.9.8-ubuntu-amd64/tools.tar.gz + grep 635a3524acc09a557d92c53d3d3a6fa0b3b428fbd504c8d1b8e0d3dbefbf3176 /var/lib/juju/tools/2.9.8-ubuntu-amd64/juju2.9.8-ubuntu-amd64.sha256 635a3524acc09a557d92c53d3d3a6fa0b3b428fbd504c8d1b8e0d3dbefbf3176 /var/lib/juju/tools/2.9.8-ubuntu-amd64/tools.tar.gz
For the record, by lowering MTU of eth0 on LXD on top of OpenStack VM by hand as `ip link set eth0 mtu 1442`, that makes binary download successful.
+ printf Attempt 17 to download agent binaries from %s...\n https:/ /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64... juju/tools/ 2.9.8-ubuntu- amd64/tools. tar.gz https:/ /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 downloaded: HTTP 000; time 20.001599s; size 0 bytes; speed 0.000 bytes/s + echo Download /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64... juju/tools/ 2.9.8-ubuntu- amd64/tools. tar.gz https:/ /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 /192.168. 151.101: 17070/model/ 9e5ed9b4- 224d-4486- 8dac-b56a70b9bd 8b/tools/ 2.9.8-ubuntu- amd64 downloaded: HTTP 200; time 2.124569s; size 124661048 bytes; speed 58691642.000 bytes/s + juju/tools/ 2.9.8-ubuntu- amd64/tools. tar.gz 57d92c53d3d3a6f a0b3b428fbd504c 8d1b8e0d3dbefbf 3176 /var/lib/ juju/tools/ 2.9.8-ubuntu- amd64/juju2. 9.8-ubuntu- amd64.sha256 57d92c53d3d3a6f a0b3b428fbd504c 8d1b8e0d3dbefbf 3176 /var/lib/ juju/tools/ 2.9.8-ubuntu- amd64/tools. tar.gz
Attempt 17 to download agent binaries from https:/
+ curl -sSfw agent binaries from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --connect-timeout 20 --noproxy * --insecure
-o /var/lib/
curl: (28) Operation timed out after 20001 milliseconds with 0 out of 0 bytes received
agent binaries from https:/
failed, retrying in 15s
Download failed, retrying in 15s
+ sleep 15
+ n=18
+ true
+ printf Attempt 18 to download agent binaries from %s...\n https:/
Attempt 18 to download agent binaries from https:/
+ curl -sSfw agent binaries from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s --connect-timeout 20 --noproxy * --insecure
-o /var/lib/
agent binaries from https:/
echo Agent binaries downloaded successfully.
Agent binaries downloaded successfully.
+ break
+ sha256sum /var/lib/
+ grep 635a3524acc09a5
635a3524acc09a5