Spectrum Upgrade Automation fails during ansible.builtin.import_role task
search cancel

Spectrum Upgrade Automation fails during ansible.builtin.import_role task

book

Article ID: 389718

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

The following error is seen while trying to run the Spectrum upgrade automation preflight command:

ansible-playbook -vvv -i inventory.remote services/netops-spectrum.yml --tags preflight

ERROR! the role 'spectrum' was not found in /opt/netops-deployment-tools-package RELEASE/services/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/opt/netops-deployment-tools-package RELEASE/services

The error appears to be in '/opt/netops-deployment-tools-package-RELEASE/services/netops-spectrum.yml': line 22, column 15, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

      ansible.builtin.import_role:
        name: spectrum
              ^ here

Environment

DX NetOps Spectrum Upgrade Automation

Cause

selinux is enabled on the system. 

Resolution

Exit the container.

Disable selinux on the upgrade automation system.

Run ./run-container.sh

Navigate to the /opt/netops-deployment-tools/package-Release directory.

Run the preflight command again:

ansible-playbook -vvv -i inventory.remote services/netops-spectrum.yml --tags preflight