30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/egon/overcloud/undercloud_handle/node.rb', line 30
def create_node_only(node_parameters)
workflow = 'tripleo.baremetal.v1.register_or_update'
json = node_parameters_to_json(node_parameters)
input = { nodes_json: json }
workflow_execution_id = execute_workflow(workflow, input)
connection = service('Workflow')
output = connection.get_execution(workflow_execution_id).body['output']
output_json = JSON.parse(output)
node_uuid = output_json['registered_nodes'].first['uuid']
configure_node(node_uuid)
get_node(node_uuid)
end
|