Fix delete when failed to upload
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Lindley Werner Soares Vieira |
Bug Description
Brief Description
-----------------
If for some reason 'software upload <patch>' fails, 'software delete'
must be able to fully delete the load. In the case it tries to
delete a package from apt-ostree and does not find the component, it
means that the package does not exist, so it does not need to be
deleted.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Software upload <patch> (fail)
software delete <patch>
Expected Behavior
------------------
The patch to be deleted
Actual Behavior
----------------
Error
Reproducibility
---------------
Intermittent: Just when upload fails
Timestamp/Logs
-------------
2024-06-
2024-06-
2024-06-
(it does not appear as component in /var/www/
There have been errors!
Traceback (most recent call last):
File "/usr/lib/
return subprocess.run(
File "/usr/lib/
raise CalledProcessEr
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
cli(
File "/usr/lib/
return self.main(*args, **kwargs)
File "/usr/lib/
rv = self.invoke(ctx)
File "/usr/lib/
return _process_
File "/usr/lib/
return _process_
File "/usr/lib/
return ctx.invoke(
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/lib/
return callback(*args, **kwargs)
File "/usr/lib/
Repo(
File "/usr/lib/
r = utils.run_command(
File "/usr/lib/
% (e.returncode, e.stderr.
AttributeError: 'NoneType' object has no attribute 'decode'
2024-06-
Traceback (most recent call last):
File "/usr/lib/
subprocess.run(
File "/usr/lib/
raise CalledProcessEr
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
result = controller(*args, **kwargs)
File "/usr/lib/
result = sc.software_
File "/usr/lib/
apt_
File "/usr/lib/
raise APTOSTreeComman
software.
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.10.0 stx.update |
Changed in starlingx: | |
assignee: | nobody → Lindley Werner Soares Vieira (lindley-vieira) |
Reviewed: https:/ /review. opendev. org/c/starlingx /update/ +/921522 /opendev. org/starlingx/ update/ commit/ d5ce2ba16d388ef 34d33232fe5c75b 5903e8329b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d5ce2ba16d388ef 34d33232fe5c75b 5903e8329b
Author: Lindley Werner <email address hidden>
Date: Fri Jun 7 10:29:13 2024 -0300
Fix delete when failed to upload
If for some reason 'software upload <patch>' fails, 'software delete'
must be able to fully delete the load. In the case it tries to
delete a package from apt-ostree and does not find the component, it
means that the package does not exist, so it does not need to be
deleted.
Test plan:
PASS: Delete a patch after 'software upload' fails
Closes-bug: 2068926
Change-Id: I2b0559628182d6 716e2aa0a15de57 898e003fe67
Signed-off-by: Lindley Werner <email address hidden>