Comment 2 for bug 1234479

Revision history for this message
aeva black (tenbrae) wrote : Re: ipmi power probing is to fast

Here is the (abbreviated) code in nova/virt/baremetal/ipmi.py:

141 def _power_on(self):
144 def _wait_for_power_on():
147 if self.is_power_on():
148 self.state = baremetal_states.ACTIVE
149 raise loopingcall.LoopingCallDone()
...
155 try:
156 self.retries += 1
157 self._exec_ipmitool("power on")
...
162 timer = loopingcall.FixedIntervalLoopingCall(_wait_for_power_on)
163 timer.start(interval=0.5).wait()

I'm wondering whether FixedIntervalLoopingCall is able to do sub-second timing. Perhaps changing the interval to 1 would alleviate this issue.