Debian Patching: Patchstate incorrect when there are no hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Jessica Castelino |
Bug Description
Brief Description
-----------------
If there are no hosts, the patchstate is expected to be "n/a" since we can't be sure of the current patch state. However, only the first patch is set to "n/a" while the remaining patch's have a patchstate of "Available" (or whatever was previously reported for them).
The fix is fairly simple. We must move the return statement outside the for loop.
https:/
Severity
--------
Minor
Steps to Reproduce
------------------
Fail the network such that no hosts are detected for patching.
Run sw-patch query
Expected Behavior
------------------
Patchstate for all patches should be "n/a"
Actual Behavior
----------------
Patchstate fpr the first patch is "n/a" and the rest show stale values.
Reproducibility
---------------
100% reproducible
System Configuration
-------
Multi-node system
Branch/Pull Time/Commit
-------
6th Feb, 2023
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Jessica Castelino (jcasteli) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.update |
Fix proposed to branch: master /review. opendev. org/c/starlingx /update/ +/872807
Review: https:/