]> git.proxmox.com Git - pve-manager.git/commitdiff
pve6to7: add 'full' parameter for expensive checks
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 5 Jul 2021 10:57:17 +0000 (12:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jul 2021 15:43:32 +0000 (17:43 +0200)
and place the container cgroupv2 support checks behind it.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
(cherry picked from commit 98e6cd63cf5327ab522918f1a8001719bc0f5ae6)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve6to7.pm

index 592e851745d833dca7c461a444ae75ca9183e492..119e611fb1fb6b8fb0c4ffb03bc82a60ac08bf2e 100644 (file)
@@ -1126,6 +1126,12 @@ __PACKAGE__->register_method ({
     parameters => {
        additionalProperties => 0,
        properties => {
+           full => {
+               description => 'perform additional, expensive checks.',
+               type => 'boolean',
+               optional => 1,
+               default => 0,
+           },
        },
     },
     returns => { type => 'null' },
@@ -1138,6 +1144,12 @@ __PACKAGE__->register_method ({
        check_storage_health();
        check_misc();
 
+       if ($param->{full}) {
+           check_containers_cgroup_compat();
+       } else {
+           log_skip("Expensive checks not performed without 'full' parameter");
+       }
+
        print_header("SUMMARY");
 
        my $total = 0;
@@ -1160,7 +1172,4 @@ __PACKAGE__->register_method ({
 
 our $cmddef = [ __PACKAGE__, 'checklist', [], {}];
 
-# for now drop all unknown params and just check
-@ARGV = ();
-
 1;