We should consider disabling Ubuntu's unattended upgrades daemon from running during roachtests. This is a program that will automatically start upgrading packages in the background, which could lead to failures during tests that need to install dependencies. The installation typically fails with an error like the one below:
+ sudo apt-get install -y ca-certificates curl gnupg
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3301 (unattended-upgr)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
To achieve this, we need to teach roachprod how to disable this behaviour[^1], and selectively do that when creating clusters on behalf of roachtest.
[^1]: according to this blog post, we only need a simple update to a file to achieve that. We can update the startup script to do it.
We should consider disabling Ubuntu's unattended upgrades daemon from running during roachtests. This is a program that will automatically start upgrading packages in the background, which could lead to failures during tests that need to install dependencies. The installation typically fails with an error like the one below:
To achieve this, we need to teach roachprod how to disable this behaviour[^1], and selectively do that when creating clusters on behalf of roachtest.
[^1]: according to this blog post, we only need a simple update to a file to achieve that. We can update the startup script to do it.
Jira issue: CRDB-40467