Output oslo messaging info for the minion
The oslo messaging host configuration does not actually use the endpoint map so we need to be able to provide this information as part of the output yaml file for use with a minion. This code grabs the ctlplane ip out of the rolenetmap for the undercloud and uses it to construct the oslo messaging node names value that is used when configuring the service. Blueprint: undercloud-minion Change-Id: I5dc103452f3e7484ea81df15d75b606d2c74859a
This commit is contained in:
parent
979e100bb3
commit
b1bd2829fe
@ -876,6 +876,14 @@ class Deploy(command.Command):
|
||||
|
||||
globalcfg = utils.get_stack_output_item(stack, 'GlobalConfig')
|
||||
if globalcfg:
|
||||
# unfortunately oslo messaging doesn't use the standard endpoint
|
||||
# configurations so we need to build out the node name vars and
|
||||
# we want to grab it for the undercloud for use by a minion
|
||||
rolenet = utils.get_stack_output_item(stack, 'RoleNetIpMap')
|
||||
if 'Undercloud' in rolenet:
|
||||
name = rolenet['Undercloud']['ctlplane']
|
||||
globalcfg['oslo_messaging_rpc_node_names'] = [name]
|
||||
globalcfg['oslo_messaging_notify_node_names'] = [name]
|
||||
outputs['GlobalConfigExtraMapData'] = globalcfg
|
||||
|
||||
self._create_working_dirs()
|
||||
|
Loading…
Reference in New Issue
Block a user