Hitting ansible error "The module os_keystone_role was not found in configured module paths"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| kolla |
Undecided
|
Unassigned |
Bug Description
Hi, I'm hitting strange error.
Trying to deploy Kolla Mitaka All In One, followed docs, Ubuntu 16.04
Installed Ansible, Kolla in required versions.
# pip list | grep kolla
kolla (2.0.3)
# pip list | grep ansible
ansible (1.9.4)
Hitting Ansible error:
snip ----
TASK: [horizon | Creating the _member_ role] *******
failed: [localhost] => {"attempts": 10, "changed": false, "cmd": ["docker", "exec", "-t", "kolla_toolbox", "/usr/bin/ansible", "localhost", "-m", "os_keystone_role", "-a", "name=_member_ auth={# openstack_
stdout: localhost | FAILED! => {
"failed": true,
"msg": "The module os_keystone_role was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem."
}
msg: Task failed as maximum retries was encountered
FATAL: all hosts have already failed -- aborting
snip ----
According to Ansible release notes, os_keystone_role was introduced in Ansible 2.1
Not sure why Kolla tries to leverage this with Ansible 1.9.4?
Any ideas?
Eduardo Gonzalez (egonzalez90) wrote : | #1 |
Adam Heczko (aheczko-mirantis) wrote : | #2 |
Thanks Eduardo, I did a mistake by pulling prebuilt 2.0.2 images from Docker hub.
Obviously 2.0.2 build is broken as Ansible shipped with this doesn't have required OpenStack modules.
Building 2.0.3 images by myself fix the problem and 2.0.3 deployment is smooth.
Thank you very much for your support!
Changed in kolla: | |
status: | New → Invalid |
Adam Heczko (aheczko-mirantis) wrote : | #3 |
Setting as invalid.
Hi, ansible command is executed from kolla_toolbox container.
kolla-toolbox should have 2.1.1 installed in kolla tag 2.0.3 [0]
Can you check ansible version? docker exec -ti kolla_toolbox /usr/bin/ansible --version
Sadly, if is a bug in kolla, cannot be fixed because mitaka is EOL and out of support by OpenStack community.
[0] https:/ /github. com/openstack/ kolla/blob/ 2.0.3/docker/ kolla-toolbox/ Dockerfile. j2#L38
Regards