Commit 734f0af
committed
devconfig: fix firstconfig debian upgrade
Ansible apt module documentation [1] states the following for upgrade
parameter:
If yes or safe, performs an aptitude safe-upgrade.
If full, performs an aptitude full-upgrade.
If dist, performs an apt-get dist-upgrade.
[1]
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_
module.html
However, a non-related upgrade parameter issue, outputs the following:
TASK [devconfig : Debian-specific setup]
included:
/data4-xfs/gh/actions-runner/_work/kdevops/kdevops/playbooks/roles/devco
nfig/tasks/install-deps/debian/main.yml for 3f52d93-xfs-reflink-4k
TASK [devconfig : Upgrade Packages]
fatal: [3f52d93-xfs-reflink-4k]: FAILED! => {
"changed": false,
"rc": 100
}
MSG:
'/usr/bin/apt-get dist-upgrade ' failed: E: Could not get lock
/var/lib/dpkg/lock-frontend. It is held by process 1087 (apt)
E: Unable to acquire the dpkg frontend lock
(/var/lib/dpkg/lock-frontend), is another process using it?
Replace full upgrade value with yes/safe to perform apt upgrade/apt-get
upgrade.
While fixing this, during firstconfig, also increase the lock_timeout
from default 60s to 120s and retry 5 times the task or until success.
Fixes: 3f52d93 Revert "bringup: devconfig: fix python3-apt debian issue"
Signed-off-by: Daniel Gomez <[email protected]>1 parent 3f52d93 commit 734f0af
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
0 commit comments