From 7f98daeb5ad881d5c7929dc10cc2e8bd51cc10d7 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 31 Jul 2019 14:00:34 +1000 Subject: [PATCH] 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 --- roles/openafs-client/tasks/openafs-client/Debian.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/openafs-client/tasks/openafs-client/Debian.yaml b/roles/openafs-client/tasks/openafs-client/Debian.yaml index 2d161ec9aa..efea5a647d 100644 --- a/roles/openafs-client/tasks/openafs-client/Debian.yaml +++ b/roles/openafs-client/tasks/openafs-client/Debian.yaml @@ -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