There was an error while loading. Please reload this page.
1 parent 49af674 commit 9b74f9bCopy full SHA for 9b74f9b
1 file changed
hasadna_k8s/ceph/pvc_backup.py
@@ -64,7 +64,7 @@ def main_shared(namespace, pvc_name, pv):
64
print(f'Backup name: {backup_name}')
65
subprocess.check_call(['ceph', 'fs', 'subvolume', 'snapshot', 'create', fs_name, sub_volume_name, backup_name, 'csi'])
66
try:
67
- os.mkdir('/mnt/ceph')
+ os.makedirs('/mnt/ceph', exist_ok=True)
68
subprocess.check_call(['ceph-fuse', '/mnt/ceph'])
69
70
paths = [path for path in iglob(os.path.join('/mnt/ceph/volumes', group_name, sub_volume_name, '.snap', backup_name)) if os.path.isdir(path)]
0 commit comments