Files
dualfroz c09a3d7d49 fix #7860: api: backup info: skip jobs with invalid guest selection
A backup job in pool mode keeps referencing its pool after the pool got
deleted. Resolving the guests of such a job dies with "pool '<name>'
does not exist", and since get_included_vmids() did not catch this, the
whole /cluster/backup-info/not-backed-up call failed. The GUI then hides
the "Show guests without backup job" button, so users lose exactly the
overview that would tell them some guests are no longer backed up.

Catch the error per job, warn about it and continue with the remaining
jobs. The broken job does not back up anything, so its guests correctly
show up as not covered by any backup job.

Add a test for get_included_vmids() covering this case.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-09-25 07:15:08 +02:00

74 lines
1.5 KiB
Makefile

include ../defines.mk
all:
export PERLLIB=..
.PHONY: check
check: test-replication test-balloon test-vzdump test-osd test-ceph-health test-ceph-services test-ceph-auth test-ceph-key-migration test-ceph-lockbox-migration test-custom-cpu-models test-pvesh
.PHONY: test-balloon
test-balloon:
./balloontest.pl
.PHONY: test-replication
test-replication: replication1.t replication2.t replication3.t replication4.t replication5.t replication6.t
replication%.t: replication_test%.pl
./$<
.PHONY: test-vzdump
test-vzdump: test-vzdump-guest-included test-vzdump-new test-vzdump-backup-info
.PHONY: test-vzdump-guest-included
test-vzdump-guest-included:
./vzdump_guest_included_test.pl
.PHONY: test-vzdump-new
test-vzdump-new:
./vzdump_new_test.pl
.PHONY: test-vzdump-backup-info
test-vzdump-backup-info:
./backup_info_test.pl
.PHONY: test-osd
test-osd:
./OSD_test.pl
.PHONY: test-ceph-health
test-ceph-health:
./CephHealth_test.pl
.PHONY: test-ceph-services
test-ceph-services:
./CephServices_test.pl
.PHONY: test-ceph-auth
test-ceph-auth:
./CephAuth_test.pl
.PHONY: test-ceph-key-migration
test-ceph-key-migration:
./CephKeyMigration_test.pl
./CephKeyMigrationScript_test.pl
.PHONY: test-ceph-lockbox-migration
test-ceph-lockbox-migration:
./CephLockboxMigration_test.pl
.PHONY: test-custom-cpu-models
test-custom-cpu-models:
./CustomCPUModels_test.pl
.PHONY: test-pvesh
test-pvesh:
./pvesh_test.pl
.PHONY: install
install:
.PHONY: clean
clean:
rm -rf *~ .mocked_* *.tmp