Skip to content

[BUG] No error shown on UI if system backup conf not available #5072

Closed
@khushboo-rancher

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.

Screenshot 2022-12-14 at 7 07 37 PM

To Reproduce

Steps to reproduce the behavior:

  1. Create a system backup
  2. Go to S3 and delete the conf file.
  3. Restore the backup.
  4. 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

Labels

area/system-backup-restoreLonghorn system backup restorearea/uiUI related like UI or CLIkind/bugseverity/4Function working but has a minor issue (a minor incident with low impact)

Type

No type

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions