Hitting ansible error "The module os_keystone_role was not found in configured module paths"

Bug #1688167 reported by Adam Heczko on 2017-05-04
8
This bug affects 1 person
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_horizon_auth #}", "-e", "{'openstack_horizon_auth':{'username': 'admin', 'project_name': 'admin', 'password': 'TlBeCzlP9dntQ64wkWLHm2p2lL4rDYRc8GJfL174', 'auth_url': 'http://10.200.0.222:35357'}}"], "delta": "0:00:00.389962", "end": "2017-05-04 02:57:57.786049", "failed": true, "rc": 2, "start": "2017-05-04 02:57:57.396087", "stdout_lines": ["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.\"", "}"], "warnings": []}
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 :

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

Adam Heczko (aheczko-mirantis) wrote :

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 :

Setting as invalid.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers