Skip to content

Commit

Permalink
Merge "Skip cryptsetup password quality checking"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Feb 12, 2020
2 parents d897936 + 7c36213 commit 3a73123
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cinder/tests/unit/volume/test_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,7 @@ def test_create_volume_from_volume_with_enc(
mock_execute.assert_called_once_with(
'cryptsetup', 'luksChangeKey',
'/some/device/thing',
'--force-password',
log_errors=processutils.LOG_ALL_ERRORS,
process_input='qwert\nasdfg\n',
run_as_root=True)
Expand Down
2 changes: 2 additions & 0 deletions cinder/volume/flows/manager/create_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def _rekey_volume(self, context, volume):
'cryptsetup',
'luksChangeKey',
attach_info['device']['path'],
'--force-password',
run_as_root=True,
process_input=key_str,
log_errors=processutils.LOG_ALL_ERRORS)
Expand All @@ -583,6 +584,7 @@ def _rekey_volume(self, context, volume):
'cryptsetup',
'--batch-mode',
'luksFormat',
'--force-password',
'--type', encryption['provider'],
'--cipher', encryption['cipher'],
'--key-size', str(encryption['key_size']),
Expand Down

0 comments on commit 3a73123

Please sign in to comment.