Patch to skip test_volume_swap on
yoga-core-ceph-local-non-dvr-crypt-volume-barbican
environment.

Related-prod: PRODX-28280
Change-Id: I0d1620a3330a787765312d3b831ca643babbe999
(cherry picked from commit d0d6db941c9e78e0d3d2a02b42139fa25e9a0d15)
(cherry picked from commit e1a43e40bdc668b4dc8f829524454272a8ada4b2)
diff --git a/tempest/api/compute/admin/test_volume_swap.py b/tempest/api/compute/admin/test_volume_swap.py
index 22f773d..7704a22 100644
--- a/tempest/api/compute/admin/test_volume_swap.py
+++ b/tempest/api/compute/admin/test_volume_swap.py
@@ -36,6 +36,10 @@
             raise cls.skipException("Cinder is not available")
         if not CONF.compute_feature_enabled.swap_volume:
             raise cls.skipException("Swapping volumes is not supported.")
+        if CONF.compute_feature_enabled.attach_encrypted_volume:
+            raise cls.skipException(
+                'Volume swap is not available for OS configurations '
+                'with crypted volumes.')
 
     def wait_for_server_volume_swap(self, server_id, old_volume_id,
                                     new_volume_id):