leadership changes can break sync, charm in error state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Fix Released
|
High
|
Unassigned | ||
ubuntu-repository-cache (Juju Charms Collection) |
Won't Fix
|
High
|
Unassigned |
Bug Description
There is code that relies on the leader_id leadership setting being set, and apparently there are cases where that is not true. In this situation, it's probably best to do nothing. A leader-elected hook will soon be invoked, the setting set and hooks on non-leaders triggered.
2017-03-14 23:14:03 INFO juju-log cluster:2: Cluster relation changed for ubuntu-
2017-03-14 23:14:03 INFO juju-log cluster:2: SSH key already exists at /home/www-
2017-03-14 23:14:03 INFO juju-log cluster:2: Syncing authorized_keys @ /home/www-
2017-03-14 23:14:03 INFO cluster-
2017-03-14 23:14:03 INFO cluster-
2017-03-14 23:14:03 INFO cluster-
2017-03-14 23:14:03 INFO cluster-
2017-03-14 23:14:03 INFO juju-log cluster:2: Syncing known_hosts @ /home/www-
2017-03-14 23:14:04 INFO juju-log cluster:2: Updating metadata on the leader
2017-03-14 23:14:04 WARNING juju-log cluster:2: Leader changed between peer_update_
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 INFO cluster-
2017-03-14 23:14:04 ERROR juju.worker.
Related branches
- James Simpson: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 169 lines (+61/-29)4 files modifiedconfig.yaml (+5/-0)
lib/ubuntu_repository_cache/mirror.py (+43/-24)
lib/ubuntu_repository_cache/service.py (+9/-4)
lib/ubuntu_repository_cache/util.py (+4/-1)
- Barry Price: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 22 lines (+12/-0)1 file modifiedreactive/ubuntu-repository-cache.py (+12/-0)
tags: | added: canonical-is |
Changed in ubuntu-repository-cache (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in ubuntu-repository-cache: | |
importance: | Undecided → High |
Changed in ubuntu-repository-cache: | |
status: | New → Confirmed |
Changed in ubuntu-repository-cache (Juju Charms Collection): | |
status: | New → Confirmed |
https:/ /pastebin. canonical. com/182519/ has non-wrapped version of above