I can't run bootstraps servers command with kolla-ansible

Bug #1975734 reported by Franck Alomassor
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

When I run the command kolla-ansible -i kolla-ansible/all-in-one bootstrap-servers I get the following error.

(kolla-ansible) root@dev-ctr:/home/stack# kolla-ansible -i kolla-ansible/all-in-one bootstrap-servers
Bootstrapping servers : ansible-playbook -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=bootstrap-servers /home/stack/kolla-ansible/share/kolla-ansible/ansible
/kolla-host.yml --inventory kolla-ansible/all-in-one
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
ERROR! the role 'openstack.kolla.baremetal' was not found in /home/stack/kolla-ansible/share/kolla-ansible/ansible/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/stack/kolla-ansible
/share/kolla-ansible/ansible

The error appears to be in '/home/stack/kolla-ansible/share/kolla-ansible/ansible/kolla-host.yml': line 9, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - { role: openstack.kolla.baremetal,
      ^ here

Revision history for this message
Taylor Eisman (tayloreisman) wrote (last edit ):

I am having the same issue. It fails during execution of the kolla-host.yml, as in the original post. I am running this without a virtual environment, unlike above. Moreover, this is on a virtualbox VM distro of Ubuntu 20.04.

Here is a copy of my terminal along with error message:

kolla-ansible -i ./all-in-one bootstrap-servers
Bootstrapping servers : ansible-playbook -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=bootstrap-servers /usr/local/share/kolla-ansible/ansible/kolla-host.yml --inventory ./all-in-one
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
ERROR! the role 'openstack.kolla.baremetal' was not found in /usr/local/share/kolla-ansible/ansible/roles:/home/utsa/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/usr/local/share/kolla-ansible/ansible

The error appears to be in '/usr/local/share/kolla-ansible/ansible/kolla-host.yml': line 9, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - { role: openstack.kolla.baremetal,
       **^ here

The * are just for formatting purposes. Can't get ^ to stick to the curly bracket.

Revision history for this message
Ai Hamano (haman0) wrote :

Did you execute "Install Ansible Galaxy requirements"?

https://docs.openstack.org/kolla-ansible/yoga/user/quickstart.html
-----
Install Ansible Galaxy requirements
Install Ansible Galaxy dependencies (Yoga release onwards):

kolla-ansible install-deps
-----

I was getting the same error, but when I executed "kolla-ansible install-deps" before "kolla-ansible -i ./multinode bootstrap-servers", the error no longer occurred.
If you are in the same situation as me, the above may resolve the error.

Revision history for this message
Satish Patel (satish-txt) wrote :

Fix my issue with following command

$ kolla-ansible install-deps

Revision history for this message
amr (theleastt) wrote :

When I run the command "kolla-ansible install-deps" it stucks!!

(venv) root@ubuntu:~# kolla-ansible install-deps
Installing Ansible Galaxy dependencies
Starting galaxy collection install process
Process install dependency map
Cloning into '/root/.ansible/tmp/ansible-local-71357qb_e_2r8/tmpe1sp958m/ansible-collection-kolla63xca4i_'...
/

Can anybody help me fix it? I'm a newbie and have absolutely no clue what's going on!

Revision history for this message
Satish Patel (satish-txt) wrote :

When i did Xena installation i didn't run $kolla-ansible install-deps command and it didn't gives any error. But when i switch to zed then i got that error. That was my observation.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.