Codebase list cinder-tempest-plugin / 7329a20
Multiattach: Fix implicit requirement for encryption support This test requires encrypted volume support but doesn't check the tempest option for whether that support is enabled. (This currently would mostly affect the NFS driver.) For this test, encryption is not strictly required, so use it when available to get a more interesting test scenario, but just use regular volumes when the option is disabled. This change maintains the original behavior that three volume types are being used (default, multiattach, and encrypted/other), but it isn't clear if the additional volume types really add much of value to the test scenario. Closes-Bug: #2043830 Change-Id: If41efc6ebd07c75d14b7d0cc5be183e9da7c8cfa Eric Harney 1 year, 9 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