In my testing over the last several days, I have consistently seen a significant delay between when I inform baremetal hypervisor about an available hw node, and when I am able to invoke "nova boot" for that hw node. There seem to be several parts to this.<div>

<br></div><div>Part 1:  invocation of "nova-bm-manage node create" directly inserts a record into `nova_bm`.`bm_nodes` table. It does not inform n-cpu or n-sch directly. Nothing can be done because n-cpu and n-sch do not know about the hw node.</div>

<div><br></div><div>Part 2: wait for the next periodic call to compute/manager.py publish_service_capabilities(). This occurs once ever 60 seconds, so delay is at most 60 seconds.</div><div><br></div><div>At this point, n-cpu inserts the corresponding record into `nova`.`compute_nodes` table. However, calling "nova boot" at this stage will result in NodeNotSpecified error. Observation of n-sch screen shows that it did not receive update_service_capabilities cast from n-cpu!</div>

<div><br></div><div>Part 3: wait another 60 seconds for the next cycle of publish_service_capabilities(). At this point, observation of the n-sch screen session shows that it receives the proper update_service_capabilities cast, containing the 'node' parameter. </div>

<div><br></div><div>In this way, it takes 60 < n < 120 seconds before the first hw resource becomes available. I have copied some logs from n-cpu and n-sch screen sessions and pasted them here, in case this is helpful.</div>

<div><a href="http://paste.openstack.org/raw/23826/">http://paste.openstack.org/raw/23826/</a><br></div><div><br></div><div>Also of interest is that, if I add additional hw nodes, they take 3 cycles (not 2) before n-sch is aware of them and I am able to boot them.</div>

<div><br></div><div><br></div><div>I understand that there is currently a delay between n-cpu changing it's capabilities locally and n-sch becoming aware of this change. It should be no more than 60 seconds (the time to the next periodic_task). I am not clear why the baremetal hypervisor is adding another 1 - 2 cycles. If this can be fixed, or someone can point me towards where to fix it, that would be great.</div>

<div><br></div><div>Regards,</div><div>Devananda</div>