Comment 0 for bug 1975663

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

At this point, the charm uploads synced images with visibility=public. Which means everyone using the cloud will see the images like auto-sync/ubuntu-focal-20.04-amd64-server-20220505-disk1.img.

In some cases, cloud admins would like to have their own images only in the default list. If that's the case, it makes sense to upload images with visibility=community instead of public so we can leverage those images for producing amphora retrofitted ones still.

https://specs.openstack.org/openstack/glance-specs/specs/ocata/implemented/glance/community_visibility.html

The binary already has the support so the remaining piece is to pass the option from the charm.

[bin/sstream-mirror-glance]
    parser.add_argument('--visibility', action='store', default='public',
                        choices=('public', 'private', 'community', 'shared'),
                        help='Visibility to apply to stored images.')