Following up patch of 26508fd131
1. Set server node for managed servers 2. Set preserve_on_delete to False for Nics Change-Id: Ia57c8fc5d7ecd8c10d64ac65c0d980f28e0a427a
This commit is contained in:
parent
d45a8de43c
commit
f26a5e6b3a
@ -720,6 +720,7 @@ class EngineManager(base_manager.BaseEngineManager):
|
||||
'network_id': port_dict['network_id'],
|
||||
'mac_address': port_dict['mac_address'],
|
||||
'fixed_ips': port_dict['fixed_ips'],
|
||||
'preserve_on_delete': False,
|
||||
'server_uuid': server.uuid}
|
||||
|
||||
# Check if the neutron port's mac address matches the port
|
||||
@ -749,6 +750,7 @@ class EngineManager(base_manager.BaseEngineManager):
|
||||
# Set the server information
|
||||
server.image_uuid = image_uuid
|
||||
server.node_uuid = node['uuid']
|
||||
server.node = node['name']
|
||||
server.nics = nics_obj
|
||||
server.power_state = node['power_state']
|
||||
server.launched_at = timeutils.utcnow()
|
||||
|
Loading…
Reference in New Issue
Block a user