<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">Hi,</span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">We are very interested to set up a small OpenStack cloud with a portion of the servers used as bare-metal servers and the rest used as "normal" KVM hypervisor compute nodes. </span></font><span style="color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px">We are using grizzly, and launch with devstack for simplicity.</span></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">For a proof-of-concept, I set up an all-in-one node (also acting as KVM compute node). Now I am trying to attach a second compute node running in baremetal mode.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px">Is this known to work?</span></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br>
</span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">As a side note, devstack did not seem to support very well our case, i.e., when the control node is not the baremetal node. A number of the automated steps were skipped. We worked around this by manually creating the nova_bm database, db sync-ing it, creating and uploading the deploy and test images, and adding a bare-metal flavor. If there were interest, I would be willing to look into modifying devstack to support our case.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">After this, I was able to enroll an IPMI-enabled 3rd server as a baremetal-node, but I am unable to create a BM instance on it. The instance gets created in the DB, but the scheduler errors out with NoValidHost. I started debugging the issue by investigating the logs and looking into the code. I see a few things that I suspect may not be right:</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">If I add the second compute node as a normal KVM node, I can see the scheduler on the all-in-one node to show both compute nodes refreshing every 60 seconds. If I re-add the 2nd compute node in BM mode, I can see no more updates coming from that node in the scheduler.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">Also, I dug into the scheduler code a bit, and I can see that in the scheduler/host_manager.HostManager.get_all_host_states() the call to db.compute_node_get_all(context) returns only one node, the all-in-one.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">Both of the above suggests that the scheduler may have no visibility of the BM compute node, hence my troubles.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">I can debug this further, but I though I ask first. Any pointers would be much appreciated.</span></font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font color="#333333" face="Arial Unicode MS, Arial, sans-serif"><span style="font-size:14px;line-height:20px">Zsolt</span></font></div></div>