Add Ironic password generation during deployment

Partially-implements: blueprint ironic-integration
Change-Id: I26b7ba795f61f12dd8ddc10195ab2a4f9e2ef408
This commit is contained in:
Imre Farkas
2016-05-13 16:57:49 +02:00
parent 7ffa25317c
commit b967aec422
5 changed files with 7 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ SERVICE_LIST = {
'gnocchi': {'password_field': 'OVERCLOUD_GNOCCHI_PASSWORD'},
'heat': {'password_field': 'OVERCLOUD_HEAT_PASSWORD'},
'heatcfn': {},
'ironic': {'password_field': 'OVERCLOUD_IRONIC_PASSWORD'},
'neutron': {'password_field': 'OVERCLOUD_NEUTRON_PASSWORD'},
'nova': {'password_field': 'OVERCLOUD_NOVA_PASSWORD'},
'swift': {'password_field': 'OVERCLOUD_SWIFT_PASSWORD'},
+2
View File
@@ -52,6 +52,7 @@ class TestPasswordsUtil(TestCase):
mock.call('OVERCLOUD_HAPROXY_STATS_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_HEAT_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_HEAT_STACK_DOMAIN_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_IRONIC_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_MYSQL_CLUSTERCHECK_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_NEUTRON_PASSWORD=PASSWORD\n'),
mock.call('OVERCLOUD_NOVA_PASSWORD=PASSWORD\n'),
@@ -92,6 +93,7 @@ class TestPasswordsUtil(TestCase):
'OVERCLOUD_HAPROXY_STATS_PASSWORD=PASSWORD\n',
'OVERCLOUD_HEAT_PASSWORD=PASSWORD\n',
'OVERCLOUD_HEAT_STACK_DOMAIN_PASSWORD=PASSWORD\n',
'OVERCLOUD_IRONIC_PASSWORD=PASSWORD\n',
'OVERCLOUD_MYSQL_CLUSTERCHECK_PASSWORD=PASSWORD\n',
'OVERCLOUD_NEUTRON_PASSWORD=PASSWORD\n',
'OVERCLOUD_NOVA_PASSWORD=PASSWORD\n',
@@ -159,6 +159,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
'HeatStackDomainAdminPassword': 'password',
'HypervisorNeutronPhysicalBridge': 'br-ex',
'HypervisorNeutronPublicInterface': 'nic1',
'IronicPassword': 'password',
'MysqlClustercheckPassword': 'password',
'NeutronAllowL3AgentFailover': False,
'NeutronDhcpAgentsPerNetwork': 1,
@@ -323,6 +324,7 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
'HeatStackDomainAdminPassword': 'password',
'HypervisorNeutronPhysicalBridge': 'br-ex',
'HypervisorNeutronPublicInterface': 'nic1',
'IronicPassword': 'password',
'MysqlClustercheckPassword': 'password',
'NeutronAllowL3AgentFailover': False,
'NeutronDhcpAgentsPerNetwork': 1,
+1
View File
@@ -49,6 +49,7 @@ _PASSWORD_NAMES = (
"OVERCLOUD_HAPROXY_STATS_PASSWORD",
"OVERCLOUD_HEAT_PASSWORD",
"OVERCLOUD_HEAT_STACK_DOMAIN_PASSWORD",
"OVERCLOUD_IRONIC_PASSWORD",
"OVERCLOUD_MYSQL_CLUSTERCHECK_PASSWORD",
"OVERCLOUD_NEUTRON_PASSWORD",
"OVERCLOUD_NOVA_PASSWORD",
+1
View File
@@ -82,6 +82,7 @@ class DeployOvercloud(command.Command):
parameters['HeatPassword'] = passwords['OVERCLOUD_HEAT_PASSWORD']
parameters['HeatStackDomainAdminPassword'] = passwords[
'OVERCLOUD_HEAT_STACK_DOMAIN_PASSWORD']
parameters['IronicPassword'] = passwords['OVERCLOUD_IRONIC_PASSWORD']
parameters['MysqlClustercheckPassword'] = passwords[
'OVERCLOUD_MYSQL_CLUSTERCHECK_PASSWORD']
parameters['NeutronPassword'] = passwords[