Debian: Patch State not reflected properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Jessica Castelino |
Bug Description
Brief Description
-------
Patch remove causes the patch to go to PARTIAL-REMOVE state. If we restart the patch controller at this point, the transient state is lost and it moves the patch to AVAILABLE state. Same behavior is noticed for PARTIAL-APPLY state. It moves to APPLIED state when the patch controller is restarted.
Moreover, if we remove the patch, it goes to PARTIAL-REMOVE state. Then when we try to delete it, it gives an error as you can't delete a patch which is not in the available state. It then moves the patch to AVAILABLE state. Now if we attempt a delete again, we are able to delete the patch.
Severity
-------
standard
Steps to Reproduce
-------
sw-patch upload <PATCH FILE>
sw-patch apply <PATCH-ID>
sw-patch query
systemctl restart sw-patch-
sw-patch query
Expected Behavior
-------
Transient states should be maintained irrespective of restarts and errors.
Actual Behavior
-------
Transient states are not maintained when we restart patch controller or run in to errors.
Reproducibility
-------
yes
System Configuration
-------
Debian simplex
Branch/Pull Time/Commit
-------
2022-06-19_22-01-00
Last Pass
-------
new feature
Timestamp/Logs
-------
root@controller
Patch ID RR Release Patch State
============= == ======= ==============
DEBIAN_RR Y 22.06 Applied
DEBIAN_RR_NEW Y 22.06 Partial-Remove
root@controller
root@controller
Patch ID RR Release Patch State
============= == ======= ===========
DEBIAN_RR Y 22.06 Applied
DEBIAN_RR_NEW Y 22.06 Available
Alarms
-------
N/A
Test Activity
-------
Developer Testing
Workaround
-------
N/A
Changed in starlingx: | |
assignee: | nobody → Jessica Castelino (jcasteli) |
tags: | added: stx.debian stx.update |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 |
Fix proposed to branch: master /review. opendev. org/c/starlingx /update/ +/848028
Review: https:/