Auto retry downloading charm

Bug #2006509 reported by Leon
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Medium
Unassigned

Bug Description

I am deploying a bundle with a cloud-init script and occasionally the cloud-init aborts due to transient failures in charm download. For example:

Executing changes:
- upload charm alertmanager-k8s from charm-hub from channel edge with architecture=amd64
ERROR cannot deploy bundle: cannot add charm "alertmanager-k8s": downloading charm "ch:amd64/focal/alertmanager-k8s-53" from origin {charm-hub charm 0xc001de28e8 edge amd64/ubuntu/focal }: cannot retrieve "https://api.charmhub.io/api/v1/charms/download/07j6JDIq52o1PstlKtrrpDLxAq4mPU5P_53.charm": cannot get archive: Get "https://canonical-bos01.cdn.snapcraftcontent.com/download-origin/canonical-lgw01/07j6JDIq52o1PstlKtrrpDLxAq4mPU5P_53.charm?token=1675814400_d06c69884b0a3e13678b0cdaa3d06ab9306e0917": read tcp 10.1.79.200:37160->91.189.91.42:443: read: connection reset by peer

I wonder if there's already an auto-retry in place, and if not then should it be added?

Tags: deploy
Revision history for this message
Juan M. Tirado (tiradojm) wrote :

We have some plans for refactoring part of the charm/bundle deployment process. These changes will address this problem. Unfortunately, this will not be done in the short term.

Thanks for reporting.

Changed in juju:
status: New → Won't Fix
Revision history for this message
Ian Booth (wallyworld) wrote :

This isn't "Won't Fix"; it's something we should and will deal with. In a distributed environment, Juju should be resilient to transient failures. That behaviour is baked into various cloud SDKs already (so we get it for free). But we need to plug gaps in other areas as well.

Changed in juju:
status: Won't Fix → Triaged
importance: Undecided → Medium
tags: added: deploy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.