Upgrade CentOS: data-migration-failed on script 98-sysinv-k8s-apiserver-param-upgrade.py

Bug #1994884 reported by Jorge Saffe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Jorge Saffe

Bug Description

Brief Description
-----------------
Error on data-migration upgrade centos 22.06 > centos 22.12:

2022-10-18T06:47:22.787 localhost configassistant[9903] err /etc/upgrade.d/98-sysinv-k8s-apiserver-param-upgrade.py:131 ERROR [__main__] [kubelet] Adding evictionHard=ordereddict([('imagefs.available', '2Gi')]) to db [Detail: can't adapt type 'CommentedMap'].
2022-10-18T06:47:22.787 localhost configassistant[9903] err /etc/upgrade.d/98-sysinv-k8s-apiserver-param-upgrade.py:131 ERROR [__main__] [kubelet] Adding featureGates=ordereddict([('HugePageStorageMediumSize', True)]) to db [Detail: can't adapt type 'CommentedMap']

Severity
----------
Critical

Steps to Reproduce
-----------------------
Perform upgrade AIO-DX

Expected Behavior
------------------
Upgrade works fine

Actual Behavior
---------------
Upgrade fails on data-migration.

Reproducibility
---------------
Reproducible

System Configuration
---------------------
AIO-DX

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/config/+/862748

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

Reviewed: https://review.opendev.org/c/starlingx/config/+/862748
Committed: https://opendev.org/starlingx/config/commit/4c6f64013864d05681821a433fbca7e6565ff658
Submitter: "Zuul (22348)"
Branch: master

commit 4c6f64013864d05681821a433fbca7e6565ff658
Author: Jorge Saffe <email address hidden>
Date: Wed Oct 26 14:31:31 2022 -0400

    Fix data-migration on script 98-sysinv-k8s-param-upg

    During the upgrade from 22.06 to 22.12, the
    k8s control plane component configuration is
    saved and restored. Also, the 22.06 configuration
    must be loaded into the sysinv database because,
    since 22.12, k8s custom configuration is supported
    at runtime.

    The kubelet component uses a different API that
    supports, among others, dictionaries as a type.
    The error occurs saving this type of data.

    kubelet runtime configuration is not yet supported,
    it will be addressed in task:44586 / story:2009766,
    so the kubelet section can be safely removed from
    the upgrade script at this moment.

    Test Plan:
      - Upgrade from centos 22.06 to 22.12 SX and DX

    Closes-Bug: 1994884

    Signed-off-by: Jorge Saffe <email address hidden>
    Change-Id: Ic560315dc66bc991fe9a98043ef9eeac4fba6441

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Jorge Saffe (jsaffe)
importance: Undecided → Medium
tags: added: stx.8.0 stx.update
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.