[BUG] No error shown on UI if system backup conf not available #5072
Closed
Description
Describe the bug (🐛 if you encounter this issue)
No error shown on the UI in case of system backup cfg is not present. State remains empty with no error.
To Reproduce
Steps to reproduce the behavior:
- Create a system backup
- Go to S3 and delete the conf file.
- Restore the backup.
- No error is shown and state remains empty.
Expected behavior
The state should show failed and error should be shown as the conf file is missing.
Log or Support bundle
[longhorn-manager-9pwqm longhorn-manager] time="2022-12-15T03:05:16Z" level=warning msg="Dropping Longhorn SystemRestore out of the queuelonghorn-system/sys-restore-2" controller=longhorn-system-restore error="longhorn-system-restore: fail to sync SystemRestore longhorn-system/sys-restore-2: error getting config for system backup s3://<bucket>/backupstore/system-backups/v1.4.0-rc1/sys-backup-with-1volume-1backup: failed to execute: /var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-v1.4.0-rc1/longhorn [system-backup get-config s3://<bucket-1>/backupstore/system-backups/v1.4.0-rc1/sys-backup-with-1volume-1backup], output , stderr, time=\"2022-12-15T03:05:16Z\" level=fatal msg=\"Failed to run get-config system backup command\" error=\"cannot find backupstore/system-backups/v1.4.0-rc1/sys-backup-with-1volume-1backup/system-backup.cfg in backupstore\"\n, error exit status 1" node=<node-ip> systemRestore=longhorn-system/sys-restore-2
Environment
- Longhorn version: v1.4.0-rc1
- Installation method (e.g. Rancher Catalog App/Helm/Kubectl): kubectl
Metadata
Assignees
Labels
Type
Projects
Status
Closed