k8s network upgrade fails while upgrading k8s 1.21.8 to 1.22.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Kaustubh Dhokte |
Bug Description
Brief Description
-----------------
k8s upgrade failed from 1.21.8 to 1.22.5 due to kube-upgrade-
Severity
--------
Critical
Steps to Reproduce
------------------
Upgrade k8s from 1.21.8 to 1.22.5
Expected Behavior
------------------
k8s upgrade should work
Actual Behavior
----------------
k8s upgrade fails
Reproducibility
---------------
Reproducible
System Configuration
-------
AIO-DX
Branch/Pull Time/Commit
-------
Last Pass
---------
Timestamp/Logs
--------------
TASK [common/
Sunday 19 June 2022 04:39:11 +0000 (0:00:02.415) 0:00:31.659 ***********
ok: [localhost]
TASK [common/
Sunday 19 June 2022 04:39:11 +0000 (0:00:00.259) 0:00:31.919 ***********
changed: [localhost]
TASK [common/
Sunday 19 June 2022 04:39:12 +0000 (0:00:01.199) 0:00:33.118 ***********
fatal: [localhost]: FAILED! =>
msg: |-
The conditional check 'previous_mode == 'restore'' failed. The error was: error while evaluating conditional (previous_mode == 'restore'): 'previous_mode' is undefined
The error appears to have been in '/usr/share/
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- block:
- name: Check if SRIOV config file is present in the backup tarball
^ here
PLAY RECAP *******
localhost : ok=64 changed=12 unreachable=0 failed=1
Sunday 19 June 2022 04:39:12 +0000 (0:00:00.016) 0:00:33.135 ***********
=======
Gathering Facts -------
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
common/
.
sysinv 2022-06-19 04:39:12.765 487575 WARNING sysinv.
sysinv 2022-06-19 04:39:57.760 487575 INFO sysinv.
sysinv 2022-06-19 04:39:57.762 487575 INFO sysinv.
sysinv 2022-06-19 04:39:57.810 487575 INFO sysinv.
Test Activity
-------------
Developer Testing
Workaround
----------
Changed in starlingx: | |
status: | New → In Progress |
Looks like this issue was introduced by this recent change: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/845612