Failure to sync an image with default mirror_list

Bug #1926295 reported by Tolga Kaprol
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance-Simplestreams-Sync Charm

Bug Description

We are using glance-simplestreams-sync rev 34 on our focal-ussuri release.

We discovered that the default mirror_list option on the charm started to fail since January. Since Focal and Bionic images were successfully updated, trusty and xenial were failing.

Juju status glance-simplestreams-sync for was "Image sync failed, retrying soon."

We simply removed trusty from default mirror_list setting and it worked.

Here is the log from glance-simplestreams-sync when it was failing:

ERROR * 04-27 12:00:10 [PID:1115534] * root * Exception during syncing:
Traceback (most recent call last):
  File "/usr/share/glance-simplestreams-sync/", line 432, in main
  File "/usr/share/glance-simplestreams-sync/", line 289, in do_sync
  File "/usr/lib/python3.8/", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/snap/bin/simplestreams.sstream-mirror-glance', '-vv', '--keep', '--max', '1', '--content-id', 'auto.sync', '--cloud-name', 'etom-cloud-auto-sync', '--path', 'streams/v1/index.sjson', '--name-prefix', 'auto-sync/', '--keyring', '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg', '--log-file', '/var/snap/simplestreams/common/sstream-mirror-glance.log', '--output-dir', '/root/tmpczeq3u24', '', 'release~(xenial|bionic|focal)', 'arch~(x86_64|amd64)', 'ftype~(disk1.img|disk.img)']' returned non-zero exit status 120.
INFO * 04-27 12:00:10 [PID:1115534] * root * Executing command: ['juju-run', 'glance-simplestreams-sync/0', 'status-set blocked "Image sync failed, retrying soon."']

Tags: onboiarding
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Triage: Indeed, in the config.yaml for the charm:

    type: string
    default: "[{url: '',
                name_prefix: 'ubuntu:released',
                path: 'streams/v1/index.sjson', max: 1,
                item_filters: ['release~(trusty|xenial|bionic|focal)', 'arch~(x86_64|amd64)', 'ftype~(disk1.img|disk.img)']}]"
    description: >
      YAML-formatted list of simplestreams mirrors and their configuration
      properties. Defaults to downloading the released images from

As trusty is EOL, it should probably be removed from the default list.

Changed in charm-glance-simplestreams-sync:
importance: Undecided → Medium
status: New → Triaged
tags: added: onboiarding
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.