glance mirror sync should not delete images not matched by item_filters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Currently glance mirror image sync is deleting images that aren't in the item_filters. From the log below we can see that disco-arm64 has been filtered out of creation but not from deletion:
DEBUG * 06-27 21:35:28 [PID:1872394] * sstreams * Filtered out item: squashfs.
DEBUG * 06-27 21:35:28 [PID:1872394] * keystoneauth.
DEBUG * 06-27 21:35:29 [PID:1872394] * urllib3.
I believe item_filters should be used on deletion too.
Hi Alexandre,
Thanks for the bug report! It's not entirely clear to me what I'm seeing here, or how I could reproduce it. Could you provide more details of how I could go about reproducing what you're seeing? Also, could you confirm that this isn't a bug in the glance- simplestreams- sync charm, rather than the simplestreams Python library that it utilises? Once you've provided this information, please do set the bug status back to New.
Thanks!
Dan