Trident playbook is broken

Bug #1942318 reported by Mihnea Saracin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Mihnea Saracin

Bug Description

Brief Description
-----------------
The Trident deploy doesn't work on stx master.

Severity
--------
Major

Steps to Reproduce
------------------
As documented in https://docs.starlingx.io/storage/kubernetes/configure-an-external-netapp-deployment-as-the-storage-backend.html , the folder "/home/sysadmin/mynetappconfig" was created and the file "localhost.yml" was put inside this folder. The command executed, as root, was 'ansible-playbook /usr/share/ansible/stx-ansible/playbooks/install_netapp_backend.yml -e "override_files_dir=</home/sysadmin/mynetappconfig/>" -vvvvv'.

Expected Behavior
------------------
The playbook runs successfully

Actual Behavior
----------------
Playbook fails

Reproducibility
---------------
100%

System Configuration
--------------------
AIO-SX

Branch/Pull Time/Commit
-----------------------
stx master build on 27/08/2021

Timestamp/Logs
--------------

The following error occurs:

TASK [common/load-images-information : Set kubernetes long version] ***********************************************************************************************************************************************
task path: /usr/share/ansible/stx-ansible/playbooks/roles/common/load-images-information/tasks/main.yml:11
fatal: [localhost]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_version' is undefined\n\nThe error appears to have been in '/usr/share/ansible/stx-ansible/playbooks/roles/common/load-images-information/tasks/main.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set kubernetes long version\n ^ here\n"
}

Test Activity
-------------
Developer Testing

Changed in starlingx:
assignee: nobody → Mihnea Saracin (msaracin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: stx.6.0 / medium - failure on a specific storage config

tags: added: stx.6.0 stx.config stx.storage
Changed in starlingx:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/807112
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/d4c5ca2aa05a3239d81f95a7cafff29fc1e22474
Submitter: "Zuul (22348)"
Branch: master

commit d4c5ca2aa05a3239d81f95a7cafff29fc1e22474
Author: Mihnea Saracin <email address hidden>
Date: Thu Sep 2 13:17:27 2021 +0300

    Fix Trident playbook

    The trident playbook was using a role which used an undefined
    variable named 'kubernetes_version'.
    We fix this by adding a role that will determine the
    'kubernetes_version' before using it.

    Testing done:

    Ran install_netapp_backend.yml playbook and it passed successfully

    Closes-Bug: #1942318
    Change-Id: Ie71b3b50a7667d2eaae7a002325b060d6130c26a
    Signed-off-by: Mihnea Saracin <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.containers
removed: stx.config
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.