Corsinvest / cv4pve-barc

Backup And Restore Ceph for Proxmox VE
https://www.cv4pve-tools.com
GNU General Public License v3.0
82 stars 22 forks source link

Cannot take snapshot or backup with cephx disabled #69

Open alyarb opened 3 years ago

alyarb commented 3 years ago

I have originally had auth_client_required = none auth_cluster_required = none auth_service_required = none

in my ceph.conf.

rbd snap create commands work fine in the shell, but they do not work from barc. any idea why?

I don't see anything in the code relating to cephx or keyrings... so why does cephx matter to barc?

franklupo commented 3 years ago

user permission?

alyarb commented 3 years ago

With cephx = none, I am root and I can run rbd snap create, and it works..... if I invoke barc as root

for example:

eve4pve-barc backup --vmid=101 --label=daily --path=/mnt/pve/ BH01.C3-I/guest_backups/ --renew=7d --retain=7d -- compress=pigz --unprotect-snap

It does nothing, no error and no snapshot

9 | Info | 2020/08/13 02:00 | [.] ACTION: Backup 10 | Info | 2020/08/13 02:00 | [.] Start backup 2020-08-13 02:00:27 11 | Info | 2020/08/13 02:00 | [.] VM 101 - ======== Start backup VMID 101 (Test01 12 | Info | 2020/08/13 02:00 | [.] Test01 13 | Info | 2020/08/13 02:00 | [.] Test01) ======== 14 | Info | 2020/08/13 02:00 | [.] VM 101 - -------- Snapshots Disks VMID 101-------- 15 | Info | 2020/08/13 02:00 | [.] VM 101 - Not running, skipping fsfreeze-freeze 16 | Info | 2020/08/13 02:00 | [.] VM 101 - Not running, skipping fsfreeze-thaw 17 | Info | 2020/08/13 02:00 | [.] VM 101 - -------- Export images -------- 18 | Info | 2020/08/13 02:00 | [.] VM 101 - -------- Copy config -------- 19 | Info | 2020/08/13 02:00 | [.] VM 101 - -------- Housekeeping -------- 20 | Info | 2020/08/13 02:00 | [.] End backup 2020-08-13 02:00:44

franklupo commented 3 years ago

Please test new version