]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
k8s: Fix problem with typo.
authorfrancisco.garcia <francisco.garcia@baculasystems.com>
Thu, 14 Dec 2023 08:57:32 +0000 (09:57 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:03 +0000 (10:36 +0100)
bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py

index 71ae364b84df23e8453d964c7c24153116604d38..0b88879c989b536f26ca9c61f6c65abddf9e245b 100644 (file)
@@ -59,7 +59,9 @@ CANNOT_REMOVE_VSNAPSHOT_ERR = "Unable to remove volume snapshot {vsnapshot}! Ple
 CANNOT_START_CONNECTIONSERVER = "Cannot start ConnectionServer. Err={}"
 
 VSNAPSHOT_BACKUP_COMPATIBLE_INFO = "The pvc `{}` is compatible with volume snapshot backup. Doing backup with this technology."
-
+PVC_FROM_SNAPSHOT_CREATED = "The pvc `{}` was created from volume snapshot from pvc `{}`."
+CREATING_PVC_FROM_VSNAPSHOT = "Creating pvc `{}` volume snapshot from pvc `{}`."
+FINISHED_PVC_FROM_VSNAPSHOT = "Finished pvc `{}` volume snapshot from pvc `{}`."
 class JobPodBacula(Job, metaclass=ABCMeta):
     """
 
@@ -350,11 +352,12 @@ class JobPodBacula(Job, metaclass=ABCMeta):
             self._handle_error(CANNOT_CREATE_VSNAPSHOT_ERR.format(parse_json_descr(vsnapshot)))
             return None, None
         # Create pvc from volume snapshot
+        self._io.send_info(CREATING_PVC_FROM_VSNAPSHOT.format(new_pvc.get('name'), pvc.get('name')))
         new_pvc = self._plugin.create_pvc_from_vsnapshot(namespace, pvc)
         if isinstance(new_pvc, dict) and 'error' in new_pvc:
             self._handle_error(CANNOT_CREATE_PVC_SNAPSHOT_ERR.format(parse_json_descr(new_pvc)))
             return None, None
-        self._io.send_info(VSNAPSHOT_BACKUP_COMPATIBLE_INFO.format(new_pvc.get('name')))
+        self._io.send_info(FINISHED_PVC_FROM_VSNAPSHOT.format(new_pvc.get('name'), pvc.get('name')))
         return vsnapshot, new_pvc
 
     def handle_delete_vsnapshot_backup(self, namespace, vsnapshot, pvcdata):