Juju unit-keystone-0: Temporary failure resolving 'us.archive.ubuntu.com'; awaiting error resolution for "install" hook

Hi All. Configured juju-proxy vm (19.168.3.100) with Squid Proxy for 192.16.3.x/24

Below vms connected configured to access above proxy.

  • juju-client-vm (19.168.3.59)
  • juju-controller-vm (19.168.3.60)
  • keystone-vm (19.168.3.61)

Successfully created manual-cloud and added keystone-vm to the manual-cloud.

But juju deploy keystone --to 0 gives following error.

Juju unit-keystone-0: Temporary failure resolving 'us.archive.ubuntu.com'; awaiting error resolution for "install" hook

I have updated /etc/environment in keystone-vm but no luck.

Why unit-keystone-0 is not able connect to proxy. Is anything todo with UNIT proxy?

Any help would be much appreciated. Thankyou

Manual-cloud:

user@juju-client:~$ juju status
Model  Controller            Cloud/Region          Version  SLA          Timestamp
ceph   manual-cloud-default  manual-cloud/default  3.2.0    unsupported  17:49:17-07:00

App       Version  Status  Scale  Charm     Channel      Rev  Exposed  Message
keystone           error       1  keystone  yoga/stable  654  no       hook failed: "install"

Unit         Workload  Agent  Machine  Public address  Ports  Message
keystone/0*  error     idle   0        192.168.3.61           hook failed: "install"

Machine  State    Address       Inst id              Base          AZ  Message
0        started  192.168.3.61  manual:192.168.3.61  ubuntu@22.04      Manually provisioned machine

All vms are configured with below proxy:

:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

http_proxy="http://192.168.3.100:3128"
https_proxy="http://192.168.3.100:3128"
ftp_proxy="http://192.168.3.100:3128"
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,192.168.3.0/24"
HTTP_PROXY="192.168.3.100:3128"
HTTPS_PROXY="192.168.3.100:3128"
FTP_PROXY="192.168.3.100:3128"
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,192.168.3.0/24"

Debug Log:

machine-0: 17:44:52 INFO juju.worker.deployer checking unit "keystone/0"
machine-0: 17:44:52 INFO juju.worker.deployer deploying unit "keystone/0"
machine-0: 17:44:52 INFO juju.worker.deployer creating new agent config for "keystone/0"
machine-0: 17:44:52 INFO juju.worker.deployer starting workers for "keystone/0"
machine-0: 17:44:52 INFO juju.api connection established to "wss://192.168.3.60:17070/model/c96d9000-ea39-402d-82d2-8c37b547f7be/api"
machine-0: 17:44:52 INFO juju.api connection established to "wss://192.168.3.60:17070/model/c96d9000-ea39-402d-82d2-8c37b547f7be/api"
unit-keystone-0: 17:44:52 INFO juju Starting unit workers for "keystone/0"
unit-keystone-0: 17:44:52 INFO juju.worker.apicaller [c96d90] "unit-keystone-0" successfully connected to "192.168.3.60:17070"
unit-keystone-0: 17:44:52 INFO juju.worker.apicaller [c96d90] password changed for "unit-keystone-0"
unit-keystone-0: 17:44:52 INFO juju.worker.apicaller [c96d90] "unit-keystone-0" successfully connected to "192.168.3.60:17070"
unit-keystone-0: 17:44:52 INFO juju.worker.upgrader no waiter, upgrader is done
unit-keystone-0: 17:44:52 INFO juju.worker.migrationminion migration phase is now: NONE
unit-keystone-0: 17:44:52 INFO juju.worker.logger logger worker started
machine-0: 17:44:52 INFO juju.worker.leadership keystone/0 promoted to leadership of keystone
machine-0: 17:44:52 INFO juju.agent.tools ensure jujuc symlinks in /var/lib/juju/tools/unit-keystone-0
machine-0: 17:44:52 INFO juju.agent.tools was a symlink, now looking at /var/lib/juju/tools/3.2.0-ubuntu-amd64
unit-keystone-0: 17:44:52 INFO juju.worker.uniter unit "keystone/0" started
unit-keystone-0: 17:44:52 INFO juju.worker.uniter resuming charm install
unit-keystone-0: 17:44:52 INFO juju.worker.uniter.charm downloading ch:amd64/jammy/keystone-654 from API server
machine-0: 17:44:52 INFO juju.downloader downloading from ch:amd64/jammy/keystone-654
unit-keystone-0: 17:44:52 INFO juju.worker.uniter unit "keystone/0" shutting down: preparing operation "install ch:amd64/jammy/keystone-654" for keystone/0: failed to download charm "ch:amd64/jammy/keystone-654" from API server: download request with archiveSha256 length 0 not valid
unit-keystone-0: 17:44:52 ERROR juju.worker.dependency "uniter" manifold worker returned unexpected error: preparing operation "install ch:amd64/jammy/keystone-654" for keystone/0: failed to download charm "ch:amd64/jammy/keystone-654" from API server: download request with archiveSha256 length 0 not valid
unit-keystone-0: 17:44:53 ERROR juju.worker.meterstatus error running "meter-status-changed": charm missing from disk
machine-0: 17:44:56 INFO juju.agent.tools ensure jujuc symlinks in /var/lib/juju/tools/unit-keystone-0
machine-0: 17:44:56 INFO juju.agent.tools was a symlink, now looking at /var/lib/juju/tools/3.2.0-ubuntu-amd64
unit-keystone-0: 17:44:56 INFO juju.worker.uniter unit "keystone/0" started
unit-keystone-0: 17:44:56 INFO juju.worker.uniter resuming charm install
unit-keystone-0: 17:44:56 INFO juju.worker.uniter.charm downloading ch:amd64/jammy/keystone-654 from API server
machine-0: 17:44:56 INFO juju.downloader downloading from ch:amd64/jammy/keystone-654
machine-0: 17:44:56 INFO juju.downloader download complete ("ch:amd64/jammy/keystone-654")
machine-0: 17:44:56 INFO juju.downloader download verified ("ch:amd64/jammy/keystone-654")
unit-keystone-0: 17:44:57 INFO juju.worker.uniter hooks are retried true
unit-keystone-0: 17:44:57 INFO juju.worker.uniter.storage initial storage attachments ready
unit-keystone-0: 17:44:57 INFO juju.worker.uniter found queued "install" hook
unit-keystone-0: 17:45:04 WARNING unit.keystone/0.install E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/i/ieee-data/ieee-data_20210605.1_all.deb  Temporary failure resolving 'us.archive.ubuntu.com'
unit-keystone-0: 17:45:04 WARNING unit.keystone/0.install E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/python-netaddr/python3-netaddr_0.8.0-2_all.deb  Temporary failure resolving 'us.archive.ubuntu.com'
unit-keystone-0: 17:45:04 WARNING unit.keystone/0.install E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
unit-keystone-0: 17:45:04 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 100
unit-keystone-0: 17:45:04 INFO juju.worker.uniter awaiting error resolution for "install" hook