Merge "Add deploy delete check"
This commit is contained in:
@@ -3602,7 +3602,6 @@ class PatchController(PatchService):
|
||||
LOG.error(msg_error)
|
||||
raise SoftwareServiceError(msg_error)
|
||||
|
||||
if os.path.isfile(INSTALL_LOCAL_FLAG):
|
||||
# Remove install local flag if enabled
|
||||
if os.path.isfile(INSTALL_LOCAL_FLAG):
|
||||
try:
|
||||
@@ -3614,6 +3613,14 @@ class PatchController(PatchService):
|
||||
LOG.info("Software deployment in local installation mode is stopped")
|
||||
|
||||
if is_major_release:
|
||||
|
||||
if SW_VERSION == major_release:
|
||||
msg_error = (
|
||||
f"Deploy {major_release} can't be deleted as it is still the"
|
||||
"current running software.An error may have occurred during the deploy.")
|
||||
LOG.error(msg_error)
|
||||
raise SoftwareServiceError(msg_error)
|
||||
|
||||
clean_up_deployment_data(major_release)
|
||||
|
||||
# Send message to agents cleanup their ostree environment
|
||||
|
Reference in New Issue
Block a user