<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On Mar 29, 2016, at 08:39, Senthilprabu Shanmugavel <<a href="mailto:senthilprabu.s@gmail.com">senthilprabu.s@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Thanks Jim. WA did the trick. Very well explained. <div><br></div><div>Should I raise a bug for fake driver's power state?.</div></div></div></blockquote><div><br></div>That would be great, thanks in advance! :)<div><br></div><div>// jim </div><div><br><blockquote type="cite"><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 5:30 PM, Jim Rollenhagen <span dir="ltr"><<a href="mailto:jim@jimrollenhagen.com" target="_blank">jim@jimrollenhagen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Mar 29, 2016 at 04:59:09PM +0300, Senthilprabu Shanmugavel wrote:<br>
> Hello,<br>
><br>
> I am using Ironic for deploying baremetal to my openstack environment.<br>
> Using Liberty version on Ubuntu 14.04. I followed Ironic documentation to<br>
> deploy x86 servers using pxe_ipmitool. Now I have a working Ironic setup<br>
> for PXE boot. I also want to add my test board running ARM 64 bit CPU to<br>
> ironic deployment. I would like to try using fake_pxe drivers because my<br>
> board don't support IPMI or anything else for out of band communication. So<br>
> idea was to do deployment without power management, eventually fake_pxe is<br>
> the obvious choice. But I have problem in updating the Ironic node which I<br>
> will explain below.<br>
><br>
> I created ironic node using fake_pxe driver. Added all necessary parameters<br>
> using node-update command. Node-show command output is given below for<br>
> reference<br>
><br>
</span>> <snip><br>
<span class="">><br>
> Because of this during nova boot, scheduler failed to boot the BM instance.<br>
><br>
> Can anyone help me with what's wrong in my configuration?....<br>
<br>
</span>I guess probably someone has never used the fake power driver with<br>
devstack. :)<br>
<br>
If a node's power state is None, it will be ignored by Nova:<br>
<a href="https://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L171" rel="noreferrer" target="_blank">https://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L171</a><br>
<br>
And the fake power driver doesn't set the power state to on/off itself:<br>
<a href="https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/fake.py#L43" rel="noreferrer" target="_blank">https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/fake.py#L43</a><br>
<br>
We should probably fix this by changing it to:<br>
return task.node.power_state or states.POWER_ON<br>
<br>
In the meantime, an easy workaround would be:<br>
ironic node-set-power-state <uuid> on<br>
ironic node-set-power-state <uuid> off<br>
<br>
Which would have the driver 'remember' the power state is currently off,<br>
allowing Nova to pick up the resources.<br>
<br>
Hope that helps :)<br>
<br>
// jim<br>
<br>
><br>
><br>
><br>
> Thanks in advance,<br>
> Senthil<br>
<br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best Regards,<br>Senthilprabu Shanmugavel<br></div></div>
</div>
</div></blockquote><blockquote type="cite"><div><span>__________________________________________________________________________</span><br><span>OpenStack Development Mailing List (not for usage questions)</span><br><span>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe</span><br><span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></span><br></div></blockquote></div></body></html>