Tempest installation fails trying to find openstack.osa.openstack_resources

Bug #2054224 reported by Luc Haaijer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

On ubuntu 22.04, installation of openstack-ansible AIO fails the tempest setup when trying to do a fresh install from the master branch.

Setting tempest_install: false in /etc/openstack_deploy/user_variables.yml successfully finishes the install.

Error excerpt below:

```
TASK [Creating OpenStack Projects] *******************************************************************************************************************************************************************************
ERROR! the role 'openstack.osa.openstack_resources' was not found in
openstack.osa:openstack.config_template:ansible.legacy:/opt/openstack-ansible/playbooks/roles:/etc/ansible/roles:/etc/ansible/roles/ceph-ansible/roles:/opt/openstack-ansible/playbooks

The error appears to be in '/etc/ansible/roles/os_tempest/tasks/tempest_resources.yml': line 92, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  ansible.builtin.include_role:
    name: openstack.osa.openstack_resources
          ^ here

```

Luc Haaijer (wqrld)
description: updated
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

Hi,

Yes, this is one of known issues of current master branch.

Role has been merged recently to opentack-ansible-collections, but we have not merged SHA bump to address that yet

You should be able to workaround the issue by creating/etc/openstack_deploy/user-collection-requirements.yml file with content:

---
collections:
- name: openstack.osa
  source: https://opendev.org/openstack/openstack-ansible-plugins
  type: git
  version: e42f22d3f5d3d7afd3f9497985639e474c7e2189

But generally we'd suggest running one of stable branches/releases since master is under active development and might having known issues here and there.

Revision history for this message
Luc Haaijer (wqrld) wrote :

Thanks for the swift response. I will do that.

Cheers!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)
Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible/+/910386
Committed: https://opendev.org/openstack/openstack-ansible/commit/e72984ca956d44d8056ca4ea8ea7e263bc3c8881
Submitter: "Zuul (22348)"
Branch: master

commit e72984ca956d44d8056ca4ea8ea7e263bc3c8881
Author: Dmitriy Rabotyagov <email address hidden>
Date: Tue Feb 27 19:52:07 2024 +0100

    Update upstream SHAs

    Closes-Bug: #2054224
    Change-Id: Idab46a7c557366dabd6979ee08c1332a2d2d7515

Changed in openstack-ansible:
status: In Progress → Fix Released
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.