Upgrade: 76-remove-armada-if-unused.py - Positional argument error when running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
David Barbosa Bastos |
Bug Description
Brief Description
-----------------
A new mandatory argument was added to the registry_image.list method in the cgts sysinv client breaking the contract on 76-remove-
Severity
--------
Critical
Steps to Reproduce
------------------
Upgrade from 22.12 prestaging to master. Found during the upgrade-activate step
Expected Behavior
------------------
upgrade-activate step should finish successfully.
Actual Behavior
----------------
upgrade-activate step fails.
Reproducibility
---------------
Reproducible
System Configuration
-------
VDM AIO-SX
Branch/Pull Time/Commit
-------
SW_VERSION="23.09"
BUILD_TARGET=
BUILD_TYPE=
BUILD_ID="n/a"
Last Pass
---------
During 76-remove-
Timestamp/Logs
--------------
2023-12-
Traceback (most recent call last):
File "/etc/upgrade.
if not remove_
File "/etc/upgrade.
image_list = client.
TypeError: list() missing 1 required positional argument: 'filter_
Test Activity
-------------
Developer Testing
Workaround
----------
Remove script 76 from /etc/upgrade.d and re-run upgrade-activate
Changed in starlingx: | |
assignee: | nobody → David Barbosa Bastos (dbarbosa-wr) |
Changed in starlingx: | |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/904384 /opendev. org/starlingx/ config/ commit/ 77f2c9ce3d16fa4 3c51bf73d22defc 4754f292c5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 77f2c9ce3d16fa4 3c51bf73d22defc 4754f292c5
Author: dbarbosa <email address hidden>
Date: Wed Dec 27 11:53:50 2023 -0300
Fix positional argument error when running the 76 script.
A new mandatory argument was added to the registry_image.list remove- armada- if-unused. py thus resulting in a TypeError
method in the cgts sysinv client breaking the contract on
76-
exception.
This commit adds the missing parameter and fixes the error.
Test Plan:
PASS Build pkgs and build image
PASS Upgrade SX stx-8 -> master
PASS Armada removed when there are no Armada apps
Closes-Bug: 2047643
Change-Id: I16a8cc4ed6c127 51fc3f90c7c1249 9914cf6aa52
Signed-off-by: David Bastos <email address hidden>