From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 25CD79F41 for ; Mon, 4 Apr 2022 10:54:21 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2421CA91F for ; Mon, 4 Apr 2022 10:54:21 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 414D6A916 for ; Mon, 4 Apr 2022 10:54:20 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 1499941CC6 for ; Mon, 4 Apr 2022 10:54:20 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Mon, 4 Apr 2022 10:54:11 +0200 Message-Id: <20220404085416.1761268-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.146 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH access-control/manager] add realm sync jobs X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 08:54:21 -0000 with this, users now can schedule realm sync jobs, instead of manually pressing 'sync' or configuring a cronjob for 'pveum realm sync' this series requires my previous realm sync improvment series[0]. i could make it so that it doesn't, but this way we can safely omit the legacy 'full' and 'purge' parameters from the beginning. not really sure about 'domainsyncjobs' api path, but i tried to be consistent with our remaining naming for that. (maybe we should deprecate the 'domain' thing and use 'realm' everywhere? that would be at least consistent with the gui) i know i have to rebase this to where the actual perl modules land after applying hannes previous series to move the Jobs and Plugin modules[1], but i sent it regardless, since the code itself would not change, so it can be reviewed right now the access-control patch needs special care, since i try to sync independent pve-scheduler calls across the cluster. in my tests here it worked, but that does not mean i didn't overlook some things. as it stands now, pve-manager depends on the new access-control 0: https://lists.proxmox.com/pipermail/pve-devel/2022-March/052319.html 1: https://lists.proxmox.com/pipermail/pve-devel/2022-March/052230.html pve-access-control: Dominik Csapak (1): add realmsync plugin for jobs and CRUD api for domainsync-jobs src/PVE/API2/AccessControl.pm | 6 + src/PVE/API2/Domainsync.pm | 278 ++++++++++++++++++++++++++++++++++ src/PVE/API2/Makefile | 1 + src/PVE/Jobs/Makefile | 6 + src/PVE/Jobs/RealmSync.pm | 192 +++++++++++++++++++++++ src/PVE/Makefile | 1 + 6 files changed, 484 insertions(+) create mode 100644 src/PVE/API2/Domainsync.pm create mode 100644 src/PVE/Jobs/Makefile create mode 100644 src/PVE/Jobs/RealmSync.pm pve-manager: Dominik Csapak (4): Jobs: provide id and schedule to the job Jobs/Plugin: remove 'vzdump' from id description Jobs: add RealmSync Plugin and register it ui: add Realm Sync panel PVE/Jobs.pm | 4 +- PVE/Jobs/Plugin.pm | 2 +- www/manager6/Makefile | 1 + www/manager6/dc/Config.js | 7 + www/manager6/dc/RealmSyncJob.js | 315 ++++++++++++++++++++++++++++++++ 5 files changed, 327 insertions(+), 2 deletions(-) create mode 100644 www/manager6/dc/RealmSyncJob.js -- 2.30.2