cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.87k stars 3.77k forks source link

roachprod,roachtest: disable Ubuntu's unattended upgrades #127518

Open renatolabs opened 1 month ago

renatolabs commented 1 month ago

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.

Jira issue: CRDB-40467

blathers-crl[bot] commented 1 month ago

cc @cockroachdb/test-eng