Purge sshguard if present (GCE)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Triaged
|
High
|
Unassigned |
Bug Description
Hi,
With u-r-c deployed in GCE, units have sshguard installed. This can cause issues with the ssh-keyscan used to build a list of ssh known hosts as well as the metadata sync, which uses rsync over ssh. We should check and purge this on install.
Failure with ssh-keyscan:
| 2021-03-01 02:29:25 INFO juju-log cluster:2: Syncing authorized_keys @ /home/www-
| 2021-03-01 02:29:35 WARNING cluster-
| 2021-03-01 02:29:35 WARNING cluster-
| 2021-03-01 02:29:35 WARNING cluster-
| 2021-03-01 02:29:50 INFO juju-log cluster:2: Syncing known_hosts @ /home/www-
vs.
| 2021-03-01 02:55:36 INFO juju-log cluster:2: Syncing authorized_keys @ /home/www-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 WARNING cluster-
| 2021-03-01 02:55:36 INFO juju-log cluster:2: Syncing known_hosts @ /home/www-
Failure with metadata sync:
| 2021-03-01 03:35:16 INFO juju-log cluster:2: ubuntu_active currently points at: /srv/ubuntu-
| 2021-03-01 03:35:16 INFO juju-log cluster:2: Keeping /srv/ubuntu-
| 2021-03-01 03:37:26 WARNING cluster-
| 2021-03-01 03:37:26 ERROR juju-log cluster:2: Hook error:
| Traceback (most recent call last):
| File "/var/lib/
| bus.dispatch(
| File "/var/lib/
| _invoke(
| File "/var/lib/
| handler.invoke()
| File "/var/lib/
| self._action(*args)
| File "/var/lib/
| mirror.
| File "/var/lib/
| _nonleader_
| File "/var/lib/
| if util.remote_
| File "lib/ubuntu_
| subprocess.
| File "/usr/lib/
| raise CalledProcessEr
| subprocess.
Changed in ubuntu-repository-cache: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-repository-cache: | |
assignee: | nobody → Haw Loeung (hloeung) |
status: | Triaged → In Progress |
Changed in ubuntu-repository-cache: | |
status: | In Progress → Triaged |
assignee: | Haw Loeung (hloeung) → nobody |