Charm should not clean older metadata that ubuntu_active points to
Bug #1799595 reported by
Haw Loeung
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Triaged
|
High
|
Unassigned |
Bug Description
Hi,
On a few occasions, multiple metadata sync succeeds but confused leader election prevents the ubuntu_active symlink to be updated/switched (see LP: #1797297). This results in the symlink pointing at a no longer available metadata directory.
The charm should not remove older metadata directories that the "ubuntu_archive" symlink points at. Maybe it's a bug here?
Related branches
lp:~hloeung/ubuntu-repository-cache/logging-ubuntu_active-plus-keeps
- Colin Misare: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 27 lines (+9/-1)1 file modifiedlib/ubuntu_repository_cache/metadata_sync.py (+9/-1)
Changed in ubuntu-repository-cache: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-repository-cache: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here is an example of the link pointing to an invalid directory: /pastebin. canonical. com/p/BX6TvDdWm K/
https:/
And some logs of the sync failing because that directory does not exist: /pastebin. canonical. com/p/K4DCpmpyR d/
https:/