Force power state off after discovery

This commit is contained in:
Dmitry Tantsur 2014-10-01 14:59:04 +02:00
parent a4b372ffed
commit 22c1614b43
1 changed files with 4 additions and 2 deletions

View File

@ -95,8 +95,10 @@ def process(node_info):
'database for another node - skipping',
{'mac': mac, 'node': node.uuid})
LOG.info('Node %s was updated with data from discovery process',
node.uuid)
LOG.info('Node %s was updated with data from discovery process, forcing '
'power off', node.uuid)
ironic.node.set_power_state(node.uuid, 'off')
def _get_node_by_ipmi_address(ironic, address):