Disable the `unattended-upgrades` service
`unattended-upgrades` sometimes do not complete in time and other parts
of the setup that use `apt` fail with a variation of:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 7929 (unattended-upgr)
Change-Id: I45cd044dd99a94ec4749db97afa18c71847a8ce1
diff --git a/playbooks/workarounds/01-disable-unattended-upgrades.yaml b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
new file mode 100644
index 0000000..482c082
--- /dev/null
+++ b/playbooks/workarounds/01-disable-unattended-upgrades.yaml
@@ -0,0 +1,10 @@
+- hosts: all
+ tasks:
+ # Unattended-upgrades sometimes do not complete in time and other parts of the setup that use
+ # `apt` fail with a variation of:
+ # E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 7929 (unattended-upgr)
+ - name: Stop and disable the service unattended-upgrades
+ ansible.builtin.systemd_service:
+ state: stopped
+ enabled: no
+ name: unattended-upgrades
\ No newline at end of file
diff --git a/zuul.d/sp-cinder.yaml b/zuul.d/sp-cinder.yaml
index daed439..34ba864 100644
--- a/zuul.d/sp-cinder.yaml
+++ b/zuul.d/sp-cinder.yaml
@@ -30,6 +30,7 @@
name: cinder-storpool-tempest
parent: tempest-full
pre-run:
+ - playbooks/workarounds/01-disable-unattended-upgrades.yaml
- playbooks/sp-init.yaml
- playbooks/setup-openstack-client/pre.yaml
- playbooks/setup-openstack-storpool/pre.yaml
@@ -150,6 +151,7 @@
name: cinder-storpool-tempest-iscsi-multipath-parent
parent: tempest-full
pre-run:
+ - playbooks/workarounds/01-disable-unattended-upgrades.yaml
- playbooks/sp-init.yaml
- playbooks/setup-openstack-client/pre.yaml
- playbooks/setup-openstack-iscsi-multipath/pre.yaml
@@ -270,6 +272,7 @@
- job:
name: kolla-cinder-storpool-tempest-iscsi-multipath
pre-run:
+ - playbooks/workarounds/01-disable-unattended-upgrades.yaml
- playbooks/setup-openstack-client/pre.yaml
- playbooks/setup-openstack-iscsi-multipath/pre.yaml
- playbooks/setup-openstack-storpool/pre.yaml