upgrade-charm can fail at getting the apt/dpkg lock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Happened here [0] on the CI system in a bionic-rocky stable_to_next upgrade test:
2020-05-20 06:32:17 INFO juju-log Installing [] with options: ['--option=
2020-05-20 06:32:17 DEBUG upgrade-charm E: Could not get lock /var/lib/
2020-05-20 06:32:17 DEBUG upgrade-charm E: Unable to acquire the dpkg frontend lock (/var/lib/
2020-05-20 06:32:17 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
2020-05-20 06:32:27 DEBUG upgrade-charm E: Could not get lock /var/lib/
2020-05-20 06:32:27 DEBUG upgrade-charm E: Unable to acquire the dpkg frontend lock (/var/lib/
2020-05-20 06:32:27 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
2020-05-20 06:32:37 DEBUG upgrade-charm E: Could not get lock /var/lib/
2020-05-20 06:32:37 DEBUG upgrade-charm E: Unable to acquire the dpkg frontend lock (/var/lib/
2020-05-20 06:32:37 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
2020-05-20 06:32:47 DEBUG upgrade-charm E: Could not get lock /var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm E: Unable to acquire the dpkg frontend lock (/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm Traceback (most recent call last):
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm main()
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm hooks.execute(
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm self._hooks[
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm return f(*args, **kwargs)
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm fatal=True)
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm _run_apt_
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm retry_message=
2020-05-20 06:32:47 DEBUG upgrade-charm File "/var/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm result = subprocess.
2020-05-20 06:32:47 DEBUG upgrade-charm File "/usr/lib/
2020-05-20 06:32:47 DEBUG upgrade-charm raise CalledProcessEr
2020-05-20 06:32:47 DEBUG upgrade-charm subprocess.
2020-05-20 06:32:48 ERROR juju.worker.
Maybe due to some auto-updates [1] enabled in Ubuntu?
0: http://
1: https:/
no longer affects: | charm-keystone |
Changed in charm-nova-compute: | |
importance: | Undecided → Medium |
I suspect this is caused by unattended upgrades, and can always be a problem that another process has the apt/dpkg lock.