Increase randomness of generated CephFSID
Switch from uuid1() to uuid4() so that the resulting
UUID is more random because getnode() is not used.
Change-Id: I611efb6ef5b6e899e3223ecb698e331ed6326c3b
Closes-Bug: #1856762
(cherry picked from commit 90584a801a
)
This commit is contained in:
parent
7be309b48c
commit
89f84051b2
|
@ -55,7 +55,7 @@ def generate_passwords(mistralclient=None, stack_env=None,
|
|||
elif name.startswith("Ceph"):
|
||||
if name == "CephClusterFSID":
|
||||
# The FSID must be a UUID
|
||||
passwords[name] = six.text_type(uuid.uuid1())
|
||||
passwords[name] = six.text_type(uuid.uuid4())
|
||||
else:
|
||||
# CephX keys aren't random strings
|
||||
passwords[name] = create_cephx_key()
|
||||
|
|
Loading…
Reference in New Issue