Merge "Multiattach: Fix implicit requirement for encryption support"
Zuul authored 1 year, 8 months ago
Gerrit Code Review committed 1 year, 8 months ago
| 70 | 70 | # Create a multiattach volume |
| 71 | 71 | volume = self.create_volume(volume_type=multiattach_vol_type['id']) |
| 72 | 72 | |
| 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() | |
| 76 | 75 | |
| 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() | |
| 79 | 83 | |
| 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 | |
| 81 | 88 | # the current test but is used to emulate a real world scenario |
| 82 | 89 | # 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) | |
| 85 | 92 | |
| 86 | 93 | instance_ip = self.get_server_ip(server_1) |
| 87 | 94 |