Commit bcea53d
committed
bringup: devconfig: fix python3-apt debian issue
Downgrade python3-apt package to 2.9.6 during bringup to avoid Ansible
error with apt module (see below).
Build from source python3-apt using pip, and lock any possible future
upgrades of the package to avoid overwriting the build from source
deployment.
This is a workaround until python3-apt package in Debian testing is
fixed. It will also delay the bringup process considerably depending on
the guest.
The latest python3-apt releases 2.9.8 and 2.9.7 produces the following
error with Ansible:
Error message:
TASK [create_partition : Install partition creation base tools]
fatal: [4da8c43-xfs-reflink-4k]: FAILED! => {
"changed": false
}
MSG:
python3-apt must be installed and visible from /usr/bin/python3.
Tested with Ansible version:
ii ansible 9.5.1+dfsg-1 all
ii ansible-core 2.17.1-1
ansible --version
ansible [core 2.17.1]
...
python version = 3.12.6 (main, Sep 7 2024, 14:20:15) [GCC 14.2.0]
(/usr/bin/python3)
jinja version = 3.1.3
libyaml = True
ansible-playbook --version
ansible-playbook [core 2.17.1]
...
executable location = /usr/bin/ansible-playbook
python version = 3.12.6 (main, Sep 7 2024, 14:20:15) [GCC 14.2.0]
(/usr/bin/python3)
jinja version = 3.1.3
libyaml = True
Signed-off-by: Daniel Gomez <[email protected]>1 parent 3d4cf5c commit bcea53d
File tree
1 file changed
+48
-0
lines changed- playbooks/roles/devconfig/tasks/install-deps/debian
1 file changed
+48
-0
lines changedLines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
2 | 50 | | |
3 | 51 | | |
4 | 52 | | |
| |||
0 commit comments