From 2be48861a48e078d26fa581bb5b6a0f08c4f6378 Mon Sep 17 00:00:00 2001 From: Nir Magnezi Date: Mon, 25 Mar 2019 14:54:07 +0200 Subject: [PATCH] Add passphrase generation for Octavia A recent change[1] to Octavia added a parameter named server_certs_key_passphrase, which means that we should generate a password for it to avoid using the default value. This patch adds OctaviaServerCertsKeyPassphrase to the list of generated password/secrets, similarly to this past change[2]. Closes-Bug: #1821756 Related-Bug: #1821751 [1] I06d329ca53bc36bd27f7870ae7c7ca0cf18575b2 [2] I1dd1873b646e8569ed0a85c5ee7eb3bec3a8b1fa Change-Id: I9699961faf8b3430e4372e4ff3ae2bf7e7ceea18 (cherry picked from commit da967dd80bcca8966581444417ad7cb27d7e60ba) --- tripleo_common/constants.py | 1 + tripleo_common/tests/actions/test_parameters.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tripleo_common/constants.py b/tripleo_common/constants.py index f476fb9ae..6d4d1a57c 100644 --- a/tripleo_common/constants.py +++ b/tripleo_common/constants.py @@ -102,6 +102,7 @@ PASSWORD_PARAMETER_NAMES = ( 'NovaPassword', 'NovajoinPassword', 'MigrationSshKey', + 'OctaviaServerCertsKeyPassphrase', 'OctaviaCaKeyPassphrase', 'OctaviaHeartbeatKey', 'OctaviaPassword', diff --git a/tripleo_common/tests/actions/test_parameters.py b/tripleo_common/tests/actions/test_parameters.py index 045dc65ad..57179643d 100644 --- a/tripleo_common/tests/actions/test_parameters.py +++ b/tripleo_common/tests/actions/test_parameters.py @@ -57,6 +57,7 @@ _EXISTING_PASSWORDS = { 'PankoPassword': 'cVZXehsSc2KdmFFMKDudxTLKn', 'OctaviaHeartbeatKey': 'oct-heartbeat-key', 'OctaviaPassword': 'NMl7j3nKk1VVwMxUZC8Cgw==', + 'OctaviaServerCertsKeyPassphrase': 'aW5zZWN1cmUta2V5LWRvLW5vdC11c2U=', 'OctaviaCaKeyPassphrase': 'SLj4c3uCk4DDxPwQOG1Heb==', 'ManilaPassword': 'NYJN86Fua3X8AVFWmMhQa2zTH', 'NeutronMetadataProxySharedSecret': 'Q2YgUCwmBkYdqsdhhCF4hbghu',