Fixed application-remove cmd putting app in 'remove-failed' state
when used to remove an app which doesn't have any resources
in kubernetes.
(eg.: application-apply failed to download docker images)
Added some missing error message logging.
Test Plan:
PASS: remove cmd changes app state from 'apply-failed' to 'uploaded'
when apply cmd failed to download docker images
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/853831 /opendev. org/starlingx/ config/ commit/ b168ac952110d74 337db4120c80aa1 674336e632
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit b168ac952110d74 337db4120c80aa1 674336e632
Author: Leonardo Fagundes Luz Serrano <email address hidden>
Date: Fri Aug 19 13:02:30 2022 -0300
Fixed app remove op when image download fails
Fixed application-remove cmd putting app in 'remove-failed' state
when used to remove an app which doesn't have any resources
in kubernetes.
(eg.: application-apply failed to download docker images)
Added some missing error message logging.
Test Plan:
PASS: remove cmd changes app state from 'apply-failed' to 'uploaded'
when apply cmd failed to download docker images
Closes-Bug: 1987115
Signed-off-by: Leonardo Fagundes Luz Serrano <email address hidden> 6432cf75e141d12 319046486a6
Change-Id: I30191f9b90c40f