Codebase list cinder-tempest-plugin / ba4b03c
Merge "Multiattach: Fix implicit requirement for encryption support" Zuul authored 1 year, 8 months ago Gerrit Code Review committed 1 year, 8 months ago
1 changed file(s) with 15 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
7070 # Create a multiattach volume
7171 volume = self.create_volume(volume_type=multiattach_vol_type['id'])
7272
73 # Create encrypted volume
74 encrypted_volume = self.create_encrypted_volume(
75 'luks', volume_type='luks')
73 # Create a volume with the default volume type
74 default_volume = self.create_volume()
7675
77 # Create a normal volume
78 simple_volume = self.create_volume()
76 # Create other volume
77 if CONF.compute_feature_enabled.attach_encrypted_volume:
78 other_volume = self.create_encrypted_volume(
79 'luks', volume_type='luks')
80 else:
81 # Create secondary volume type
82 second_vol_type = self.create_volume_type()
7983
80 # Attach normal and encrypted volumes (These volumes are not used in
84 other_volume = self.create_volume(
85 volume_type=second_vol_type['id'])
86
87 # Attach default and secondary volumes (These volumes are not used in
8188 # the current test but is used to emulate a real world scenario
8289 # where different types of volumes will be attached to the server)
83 self.attach_volume(server_1, simple_volume)
84 self.attach_volume(server_1, encrypted_volume)
90 self.attach_volume(server_1, default_volume)
91 self.attach_volume(server_1, other_volume)
8592
8693 instance_ip = self.get_server_ip(server_1)
8794