Slow downloads from registry.jujucharms.com

Hi,

We’ve noticed slow downloads from registry.jujucharms.com (the registry where image resources for charms are served from). However, to be able to debug this I’d like to be able to reproduce with a docker pull. Doing so gives me an authentication error though (if I take the location of the image that’s been used based on the output of kubectl describe -n ${juju-model-name} pod ${juju-application-name}-${id}).

Is it possible for me to get authentication credentials to be able to reproduce a docker pull of a particular image to make debugging easier?

Thanks, Tom

Right now, you can find the request that Juju sends by looking at the resource definition in charmhub. For example, if you go to

It will tell you about the revisions of the postgresql-image resource. Inside charmhub it is just a JSON file that gives the definition of the image URL and the password, etc necessary to download it. Charmhub lets you download that resource JSON file and that will include the password, etc. Which gives you:
{
  "ImageName": "registry.jujucharms.com/charm/kotcfrohea62xreenq1q75n1lyspke0qkurhk/postgresql-image@sha256:8a72e1152d4a01cd9f4697093d3815af4a48bb68731b2b292e3cb18163d8feff",
  "Password": "MDAxOGxvY2F0aW9uIGNoYXJtc3RvcmUKMDAzMGlkZW50aWZpZXIgOTBlODUwYWU2MzllNTZmMGU2OTc5MmYyOTQzZWY4ZDYKMDA1NGNpZCBpcy1kb2NrZXItcmVwbyBjaGFybS9rb3RjZnJvaGVhNjJ4cmVlbnExcTc1bjFseXNwa2UwcWt1cmhrL3Bvc3RncmVzcWwtaW1hZ2UKMDAxM2NpZCBhbGxvdyBwdWxsCjAwMmZzaWduYXR1cmUghzwoR8THj8usK6ytvyxvGT7UbLKl/fS9K16+68B6wUEK",
  "Username": "docker-registry"
}
1 Like