<html><body><p><font size="2" face=" Arial">Thanks for sharing, our zvm CI had exactly same issue those days , we need 'nova hypervisor-list' to be 'up' in order to do further conf/test</font><br><font size="2" face=" Arial">so ,even if nova service-list returns 'up' info but actually the host mapping is not built and in turn you still can't schedule workload to it</font><br><font size="2" face=" Arial">so we build a loop and because the discovery hosts action are </font><font size="2" face=" Arial">idempotent, we build a loop and keep discover host until</font><br><font size="2" face=" Arial">the compute node is created and then in turn create the hostmap</font><br><br><font size="2">Best Regards! <br><br>Kevin (Chen) Ji ¼Í ³¿<br><br>Engineer, zVM Development, CSTL<br>Notes: Chen CH Ji/China/IBM@IBMCN   Internet: jichenjc@cn.ibm.com<br>Phone: +86-10-82451493<br>Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br><br><img width="16" height="16" src="cid:1__=8FBB0B9ADFBBA8758f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Matt Riedemann ---04/17/2017 11:46:12 PM---On 4/16/2017 10:35 PM, Alex Xu wrote: > Is it strange that"><font size="2" color="#424282">Matt Riedemann ---04/17/2017 11:46:12 PM---On 4/16/2017 10:35 PM, Alex Xu wrote: > Is it strange that the 'nova service-list' and 'nova host-li</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Matt Riedemann <mriedemos@gmail.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">openstack-dev@lists.openstack.org</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">04/17/2017 11:46 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [openstack-dev] [nova][deployment] FYI: changes to cells v2 setup guide (pike only)</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">On 4/16/2017 10:35 PM, Alex Xu wrote:<br>> Is it strange that the 'nova service-list' and 'nova host-list' return<br>> the hosts which didn't have host mapping yet?<br><br>It's kind of strange yes. We could probably make GET /os-hypervisors <br>work without requiring the host mappings, but it just doesn't today <br>because of some targeted calls within each cell to fill the response.<br><br>So we could probably decouple things a bit internally in the API if we <br>wanted to do this differently and not require a host mapping, but for <br>now I knew we could get the same results by just using os-services and <br>get Kolla unblocked (this came up Friday morning last week so I was <br>rushing for a solution).<br><br>><br>> How the user to know whether a host was added to a cell or not?<br><br>A user doesn't need to know, but an operator would care. This actually <br>came up in IRC last week [1] when Kevin Fox was asking similar <br>questions, and I have a TODO to write some FAQs for cells v2.<br><br>We talked about how the "nova-manage cell_v2 discover_hosts" command is <br>idempotent and if there are new unmapped hosts you could just run it and <br>pick them up - the trick is knowing when to run it, unless you configure <br>the scheduler to use "discover_hosts_in_cells_interval" for auto-discovery.<br><br>We also talked about the option of building on the "nova-manage cell_v2 <br>list_cells" command to also optionally dumping hosts per cell, or just <br>run the "nova-manage host list" command pointed at your cell config.<br><br>At some point we might want to consider returning cell uuid out of the <br>os-services API when listing services or hosts, something like that.<br><br>[1] <br></font></tt><tt><font size="2"><a href="http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2017-04-10.log.html#t2017-04-10T20:25:47">http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2017-04-10.log.html#t2017-04-10T20:25:47</a></font></tt><tt><font size="2"><br><br>-- <br><br>Thanks,<br><br>Matt<br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br></font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>