Comment 2 for bug 1178378

Revision history for this message
aeva black (tenbrae) wrote :

The warning was triggered during _sync_power_states periodic task getting vm_power_state of SHUTDOWN from the baremetal IPMI driver. This will happen if the IPMI driver is not able to check the power state of the node, because get_info() defaults to believing the power_state is SHUTDOWN.

https://github.com/openstack/nova/blob/stable/grizzly/nova/virt/baremetal/driver.py#L362

    def get_info(self, instance):
        node = _get_baremetal_node_by_instance_uuid(inst_uuid)
        pm = get_power_manager(node=node, instance=instance)
        ps = power_state.SHUTDOWN
        if pm.is_power_on():
            ps = power_state.RUNNING
        return {'state': ps,
                      ...

Based on the behaviour of _sync_instance_power_state,
  https://github.com/openstack/nova/blob/stable/grizzly/nova/compute/manager.py#L3773

I believe the correct default returned when the IPMI driver isn't able to determine the power state is NOSTATE, which would lead to a warning being logged, and nothing else. SHUTDOWN is clearly the wrong default.