gsss charm doesn't handle missing object-store endpoint properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance-Simplestreams-Sync Charm |
Fix Released
|
Medium
|
Dmitrii Shcherbakov |
Bug Description
One of the clouds I'm working on doesn't have an object store endpoint by design (there's no Ceph/RadosGW/Swift; images are stored in external S3-compliant storage).
After the changes introduced by LP: #1843486, even with use_swift=False, it doesn't start image sync with the following error:
INFO * 07-26 16:16:02 [PID:706977] * root * ps_service_
INFO * 07-26 16:16:02 [PID:706977] * root * Not updating product streams service.
INFO * 07-26 16:16:02 [PID:706977] * root * Beginning image sync
INFO * 07-26 16:16:02 [PID:706977] * root * Executing command: ['juju-run', 'glance-
INFO * 07-26 16:16:02 [PID:706977] * root * Configuring sync for url {'url': 'http://
INFO * 07-26 16:16:02 [PID:706977] * root * Executing command: ['juju-run', 'glance-
ERROR * 07-26 16:16:02 [PID:706977] * root * could not retrieve any object-store endpoints
INFO * 07-26 16:16:02 [PID:706977] * root * sync done.
INFO * 07-26 16:17:01 [PID:707407] * root * glance-
This could be workarounded by setting ignore_
description: | updated |
Changed in charm-glance-simplestreams-sync: | |
status: | Triaged → In Progress |
Changed in charm-glance-simplestreams-sync: | |
status: | Fix Committed → Fix Released |
milestone: | 21.10 → 21.04 |
I think the possibility of not having object-store in the cloud should be taken into account.
There is an existing option (set to True by default) which is related, however, its deprecated for removal to avoid having to manage an apache2 instance:
use_swift:
type: boolean
default: True
description: >
DEPRECATED FOR REMOVAL
Should the charm set up the product-streams endpoint with swift's URLs?
If this value is set to False, product-streams metadata will be hosted
on a local Apache server running on the unit and endpoints will be
registered referencing the local unit. This does not support HA
or TLS and is for testing purposes only.