bootstrap-servers with ven: Could not import python modules: apt, apt_pkg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm using kolla and kolla-ansible from git kolla-ansible (commit 1a7478d2f origin/
Running
kolla-ansible -i ./all-in-one bootstrap-servers
on Ubuntu 20.04 with ansible_
fails with error:
TASK [baremetal : Install apt packages] *******
[WARNING]: Updating cache and auto-installing missing dependency: python3-apt
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not import python modules: apt, apt_pkg. Please install python3-apt package."}
This fixed after recreating the virtual environment option --system-
python3 -m venv env --system-
Should this option be added to docs here https:/
description: | updated |
Changed in kolla-ansible: | |
status: | New → Invalid |
Are you bootstrapping localhost in that run?
Probably python3-apt needs to be installed on the destination servers - it would be good to understand that before we update the docs/code.