Standalone upgrade job fails on set cinder_volume upgrade node facts in a single-node environment" task

Bug #1897760 reported by Sergii Golovatiuk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Sergii Golovatiuk
Stein
Fix Released
Medium
Sergii Golovatiuk
Train
Fix Released
Medium
Sergii Golovatiuk
Ussuri
Fix Released
Medium
Sergii Golovatiuk

Bug Description

Some patches such as https://review.opendev.org/#/c/753842/ fail on tripleo-ci-centos-7-standalone-upgrade-stein job with the following message

-09-28 15:24:38 | 2020-09-28 15:24:38.563 339200 ERROR tripleoclient.v1.tripleo_upgrade.Upgrade [-] Exception: Upgrade failed: DeploymentError: Upgrade failed
2020-09-28 15:24:38 | Traceback (most recent call last):
2020-09-28 15:24:38 | File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1278, in _standalone_deploy
2020-09-28 15:24:38 | raise exceptions.DeploymentError('Upgrade failed')
2020-09-28 15:24:38 | DeploymentError: Upgrade failed
2020-09-28 15:24:38 | 2020-09-28 15:24:38.567 339200 ERROR tripleoclient.v1.tripleo_upgrade.Upgrade [-] None: DeploymentError: Upgrade failed
2020-09-28 15:24:39 | 2020-09-28 15:24:39.966 339200 ERROR tripleoclient.v1.tripleo_upgrade.Upgrade [-] ** Found ansible errors for standalone deployment! **: DeploymentError: Upgrade failed
2020-09-28 15:24:39 | 2020-09-28 15:24:39.967 339200 ERROR tripleoclient.v1.tripleo_upgrade.Upgrade [-] [
2020-09-28 15:24:39 | [
2020-09-28 15:24:39 | "set cinder_volume upgrade node facts in a single-node environment",
2020-09-28 15:24:39 | {
2020-09-28 15:24:39 | "msg": "The task includes an option with an undefined variable. The error was: 'cinder_volume_node_names' is undefined\n\nThe error appears to be in '/home/zuul/standalone-ansible-YpY5Oe/Standalone/upgrade_tasks_step1.yaml': line 27, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: set cinder_volume upgrade node facts in a single-node environment\n ^ here\n",
2020-09-28 15:24:39 | "_ansible_no_log": false
2020-09-28 15:24:39 | }
2020-09-28 15:24:39 | ]

Changed in tripleo:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/755064

Changed in tripleo:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/755217

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/755219

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/755220

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/755064
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=0f7ed0b8d521ad7e9333482e59894af210d63d03
Submitter: Zuul
Branch: master

commit 0f7ed0b8d521ad7e9333482e59894af210d63d03
Author: Sergii Golovatiuk <email address hidden>
Date: Tue Sep 29 17:17:44 2020 +0200

    Default cinder_volume_node_names to []

    There are cases when cinder_volume_node_names is not defined. It was
    fixed for "set cinder_volume upgrade node facts from the limit option"
    task in loop but never for non HA task. So, standalone upgrade job
    fails with the following message.

    "msg": "The task includes an option with an undefined variable. The
    error was: 'cinder_volume_node_names' is undefined\n\nThe error appears
    to be in
    '/home/zuul/standalone-ansible-YpY5Oe/Standalone/upgrade_tasks_step1.yaml':
    line 27, column 5, but may\nbe elsewhere in the file depending on the
    exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n
    - name: set cinder_volume upgrade node facts in a single-node
    environment\n ^ here\n",

    This patch defaults cinder_volume_node_names to [] when
    cinder_volume_node_names is not defined in hiera.

    Closes-Bug: #1897760

    Change-Id: I1145c39e379ac6579662f2bbfcc9a4d2d3e0f059

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/755219
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3d9362c3a8d3b6c8334e6ce17f1403513370d06b
Submitter: Zuul
Branch: stable/train

commit 3d9362c3a8d3b6c8334e6ce17f1403513370d06b
Author: Sergii Golovatiuk <email address hidden>
Date: Tue Sep 29 17:17:44 2020 +0200

    Default cinder_volume_node_names to []

    There are cases when cinder_volume_node_names is not defined. It was
    fixed for "set cinder_volume upgrade node facts from the limit option"
    task in loop but never for non HA task. So, standalone upgrade job
    fails with the following message.

    "msg": "The task includes an option with an undefined variable. The
    error was: 'cinder_volume_node_names' is undefined\n\nThe error appears
    to be in
    '/home/zuul/standalone-ansible-YpY5Oe/Standalone/upgrade_tasks_step1.yaml':
    line 27, column 5, but may\nbe elsewhere in the file depending on the
    exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n
    - name: set cinder_volume upgrade node facts in a single-node
    environment\n ^ here\n",

    This patch defaults cinder_volume_node_names to [] when
    cinder_volume_node_names is not defined in hiera.

    Closes-Bug: #1897760

    Change-Id: I1145c39e379ac6579662f2bbfcc9a4d2d3e0f059
    (cherry picked from commit 0f7ed0b8d521ad7e9333482e59894af210d63d03)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ussuri)

Reviewed: https://review.opendev.org/755217
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=1f5218100e931953649f6279789460a3d073e990
Submitter: Zuul
Branch: stable/ussuri

commit 1f5218100e931953649f6279789460a3d073e990
Author: Sergii Golovatiuk <email address hidden>
Date: Tue Sep 29 17:17:44 2020 +0200

    Default cinder_volume_node_names to []

    There are cases when cinder_volume_node_names is not defined. It was
    fixed for "set cinder_volume upgrade node facts from the limit option"
    task in loop but never for non HA task. So, standalone upgrade job
    fails with the following message.

    "msg": "The task includes an option with an undefined variable. The
    error was: 'cinder_volume_node_names' is undefined\n\nThe error appears
    to be in
    '/home/zuul/standalone-ansible-YpY5Oe/Standalone/upgrade_tasks_step1.yaml':
    line 27, column 5, but may\nbe elsewhere in the file depending on the
    exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n
    - name: set cinder_volume upgrade node facts in a single-node
    environment\n ^ here\n",

    This patch defaults cinder_volume_node_names to [] when
    cinder_volume_node_names is not defined in hiera.

    Closes-Bug: #1897760
    Change-Id: I1145c39e379ac6579662f2bbfcc9a4d2d3e0f059
    (cherry picked from commit 0f7ed0b8d521ad7e9333482e59894af210d63d03)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/756085

Changed in tripleo:
status: Fix Released → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (stable/stein)

Change abandoned by Sergii Golovatiuk (<email address hidden>) on branch: stable/stein
Review: https://review.opendev.org/755220
Reason: no need in stein as cinder_volume_node_names_upgraded is not defined at all.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Sergii Golovatiuk (<email address hidden>) on branch: master
Review: https://review.opendev.org/756085

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.4.0

This issue was fixed in the openstack/tripleo-heat-templates 11.4.0 release.

Changed in tripleo:
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.