Comment 4 for bug 1975663

Revision history for this message
Nobuto Murata (nobuto) wrote :

> This is actually blocked by:
> https://bugs.launchpad.net/simplestreams/+bug/1975903

This has been resolved.

> We need to be mindful if the retrofit still works after changing the visibility. We might need an equivalent to:
> GET /v2/images?visibility=community
> when trying to find the right image from the retrofit.

I've explicitly tested this, and confirmed that def find_source_image in src/lib/charm/openstack/glance_retrofitter.py is able to find visibility=community image with no problem.

Here is an extra debug output I added by hand, and there is an image found with 'visibility': 'community'.

2022-05-27 11:37:27 DEBUG unit.octavia-diskimage-retrofit/0.retrofit-image logger.go:60 image: {'architecture': 'x86_64', 'content_id': 'auto.sync', 'item_name': 'disk1.img', 'os_distro': 'ubuntu', 'os_version': '20.04', 'product_name': 'com.ubuntu.cloud:server:20.04:amd64', 'simplestreams_metadata': '{"aliases": "20.04,default,f,focal,lts,ubuntu", "arch": "amd64", "ftype": "disk1.img", "label": "release", "md5": "2dc7842d298d8163ab9f4fce19459598", "os": "ubuntu", "pubname": "ubuntu-focal-20.04-amd64-server-20220505", "release": "focal", "release_codename": "Focal Fossa", "release_title": "20.04 LTS", "sha256": "9a0f100258640fa68ee13e33f4ea636ee3f82e2b9991381553be65121ce3657b", "size": "595001344", "support_eol": "2025-04-23", "supported": "True", "version": "20.04"}', 'source_content_id': 'com.ubuntu.cloud:released:download', 'version_name': '20220505', 'name': 'auto-sync/ubuntu-focal-20.04-amd64-server-20220505-disk1.img', 'disk_format': 'qcow2', 'container_format': 'bare', 'visibility': 'community', 'size': 595001344, 'virtual_size': None, 'status': 'active', 'checksum': '2dc7842d298d8163ab9f4fce19459598', 'protected': False, 'min_ram': 0, 'min_disk': 0, 'owner': '9eba09b12e9743b384936f90bfac8672', 'os_hidden': False, 'os_hash_algo': 'sha512', 'os_hash_value': '1d05842a3c84e3e896b3e0bf7b0e847f92eb27b604615d9abbd2388e7f29e4312d6b2c5cf15db4ab05134dcff7d3f207663b508017e8989865f4f65babc616e7', 'id': 'b321ce1d-a9d7-4449-8941-f713fb8e031d', 'created_at': '2022-05-27T10:39:27Z', 'updated_at': '2022-05-27T10:39:43Z', 'locations': [{'url': 'rbd://cdd75094-dd95-11ec-b927-95a9929f2375/glance/b321ce1d-a9d7-4449-8941-f713fb8e031d/snap', 'metadata': {'store': 'ceph'}}], 'direct_url': 'rbd://cdd75094-dd95-11ec-b927-95a9929f2375/glance/b321ce1d-a9d7-4449-8941-f713fb8e031d/snap', 'tags': [], 'file': '/v2/images/b321ce1d-a9d7-4449-8941-f713fb8e031d/file', 'schema': '/v2/schemas/image', 'stores': 'ceph'}