Browse Source

openafs: avoid pulling in client package before kernel modules

For whatever reason, the modules package recommends the client
package:

 Package: openafs-modules-dkms
 Depends: dkms (>= 2.1.0.0), perl:any, libc6-dev
 Recommends: openafs-client (>= 1.8.0~pre5-1ubuntu1)

However, if that gets installed before the modules are ready, the
service tries to start and fails, but maybe fools systemd into
thinking it started correctly; so our sanity checks seem to fail on
new servers without a manual restart of the openafs client services.

By ignoring this recommends, we should install the modules, then the
client (which should start OK) in that order only.

Change-Id: I6d69ac0bd2ade95fede33c5f82e7df218da9458b
changes/24/673724/1
Ian Wienand 1 year ago
parent
commit
7f98daeb5a
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      roles/openafs-client/tasks/openafs-client/Debian.yaml

+ 6
- 4
roles/openafs-client/tasks/openafs-client/Debian.yaml View File

@@ -14,12 +14,14 @@
become: yes

# NOTE(ianw) : Need to do this first and separately so that the
# modules are ready for the openafs-client package to start.
# modules are ready for the openafs-client package to start. Avoid
# recommends because that drags in the client, which can't start
# without the modules which are building in this step (we do it next)
- name: Install openafs kernel modules
package:
name:
- openafs-modules-dkms
apt:
name: openafs-modules-dkms
state: latest
install_recommends: no
become: yes

- name: Install client packages


Loading…
Cancel
Save