Skip to content

Commit

Permalink
Removed pvc encryption for cephfs
Browse files Browse the repository at this point in the history
Signed-off-by: Avdhoot <[email protected]>
  • Loading branch information
avd-sagare committed Jul 19, 2024
1 parent f088293 commit c3da79a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions tests/cross_functional/system_test/test_graceful_nodes_shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def setup(
Setting up test requirements
1. Non encrypted fs PVC (create + clone + snapshot)
2. encrypted block PVC (create + clone + snapshot)
3. encrypted fs PVC ()
"""

def teardown():
Expand Down Expand Up @@ -134,20 +133,6 @@ def teardown():
snapshot_factory=snapshot_factory,
)

# Encrypted fs PVC
(
self.efs_pvc_obj,
self.efs_pvc_pod_obj,
self.efs_file_name,
self.efs_pvc_orig_md5_sum,
self.efs_snap_obj,
) = self.setup_encrypted_pvc(
pvc_factory=pvc_factory,
pod_factory=pod_factory,
pvc_clone_factory=pvc_clone_factory,
snapshot_factory=snapshot_factory,
)

def setup_non_encrypted_pvc(
self,
pod_factory,
Expand Down Expand Up @@ -293,14 +278,6 @@ def validate_snapshot_restore(
timeout=180,
)
self.restore_pvc_objs.append(eb_restored_pvc)
logger.info("Creating snapshot restore for encrypted fs pvcs after reboot")
efs_restored_pvc = snapshot_restore_factory(
self.efs_snap_obj,
storageclass=self.efs_pvc_obj.storageclass.name,
volume_mode=self.efs_snap_obj.parent_volume_mode,
timeout=180,
)
self.restore_pvc_objs.append(efs_restored_pvc)

for pvc_obj in self.restore_pvc_objs:
pod_obj = pod_factory(
Expand Down Expand Up @@ -353,13 +330,6 @@ def validate_data_integrity(self):
f"on encrypted block pvc {self.eb_pvc_obj.name} on pod {self.eb_pvc_pod_obj.name}"
)

assert self.efs_pvc_orig_md5_sum == pod.cal_md5sum(
self.efs_pvc_pod_obj, self.efs_file_name
), (
f"Data integrity failed for file '{self.efs_file_name}' "
f"on encrypted fs pvc {self.efs_pvc_obj.name} on pod {self.efs_pvc_pod_obj.name}"
)

def validate_ocp_workload_exists(self):
"""
Verify ocp workload continues after reboot
Expand Down

0 comments on commit c3da79a

Please sign in to comment.