When delete a synced image from the slave, the sync stops working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance-sync-layer |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
If an image synchronized by the glance-sync-slave is deleted using glance api, sync stop working and the following exceptions are logged on the glance-sync-slave cronjob:
=======
2020-02-27 14:54:12 starting glance sync
2020-02-27 14:54:12 getting metadata from master
b''
2020-02-27 14:54:13 getting image list from slave
2020-02-27 14:54:13 INFO: is_latest_metadata :: 1dde7ef7-
2020-02-27 14:54:13 DEBUG: images pending to be deleted: set()
2020-02-27 14:54:13 WARNING: precautionary halt. No glance images found to be deleted. noop.
2020-02-27 14:54:13 DEBUG: processed images (to skip while parsing metadata files): {'1dde7ef7-
2020-02-27 14:54:13 INFO: download_
2020-02-27 14:54:13 INFO: creating image e69b8354-
2020-02-27 14:54:13 EXCEPTION: upload_to_slave :: 409 Conflict: Image ID e69b8354-
Traceback (most recent call last):
File "/srv/glance_
self.
File "/usr/lib/
return RequestIdProxy(
File "/usr/lib/
resp, body = self.http_
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
return self._handle_
File "/usr/lib/
raise exc.from_
glanceclient.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/glance_
**clean_
File "/usr/lib/
unvalidated
File "/usr/lib/
return self._get(image_id)
File "/usr/lib/
return RequestIdProxy(
File "/usr/lib/
resp, body = self.http_
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
return self._handle_
File "/usr/lib/
raise exc.from_
glanceclient.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/glance_
slave.main()
File "/srv/glance_
self.
File "/srv/glance_
self.
File "/srv/glance_
if "HTTPNotFound" in e:
TypeError: argument of type 'HTTPNotFound' is not iterable
=======
Steps to reproduce.
Syncronized an image:
$ openstack image list
+------
| ID | Name | Status |
+------
| 1dde7ef7-
+------
Delete it:
$ openstack image delete 1dde7ef7-
Run the syncronization script:
juju ssh gss/0 " source /srv/glance_
Changed in charm-glance-sync: | |
importance: | Undecided → High |
Changed in charm-glance-sync: | |
status: | New → Triaged |
Changed in charm-glance-sync: | |
assignee: | nobody → Xav Paice (xavpaice) |
status: | Triaged → In Progress |
tags: | added: bseng-480 |
Changed in charm-glance-sync: | |
importance: | High → Medium |
assignee: | Xav Paice (xavpaice) → nobody |
status: | In Progress → Triaged |
This charm is no longer being actively maintained. I will close this issue