<tt><font size=2>Robert Collins <robertc@robertcollins.net> wrote
on 09/29/2013 02:21:28 AM:<br>
<br>
> Host not hypervisor I think; consider nova baremetal, where hypervisor<br>
> == machine that runs tftpd and makes IPMI calls, and host == place<br>
> where the user workload will execute.<br>
</font></tt>
<br><tt><font size=2>In nova baremetal, is there still a "hypervisor"
in the picture, and is it necessarily the same machine as the "host"?</font></tt>
<br>
<br><tt><font size=2>Another reason to prefer host is that we have other
resources to locate besides compute.</font></tt>
<br>
<br><tt><font size=2>But the current API maps a host to a list of uniformly-shaped
contents, it is not obvious to me what would be a good way to extend this.
Any ideas? Following is an example, it is the result of a GET
on </font></tt><a href="http://novahost:port/v2/tennantid/os-hosts/"><tt><font size=2>http://novahost:port/v2/tennantid/os-hosts/</font></tt></a><tt><font size=2>hostname</font></tt>
<br>
<br>
<br><font size=2 face="sans-serif">1. </font><tt><font size=3>{</font></tt>
<br><font size=2 face="sans-serif">2. </font><tt><font size=3>
"host":</font></tt>
<br><font size=2 face="sans-serif">3. </font><tt><font size=3>
[</font></tt>
<br><font size=2 face="sans-serif">4. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">5. </font><tt><font size=3>
"resource":</font></tt>
<br><font size=2 face="sans-serif">6. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">7. </font><tt><font size=3>
"project":
"(total)",</font></tt>
<br><font size=2 face="sans-serif">8. </font><tt><font size=3>
"memory_mb":
96661,</font></tt>
<br><font size=2 face="sans-serif">9. </font><tt><font size=3>
"host":
"x3630r7n8",</font></tt>
<br><font size=2 face="sans-serif">10. </font><tt><font size=3>
"cpu":
32,</font></tt>
<br><font size=2 face="sans-serif">11. </font><tt><font size=3>
"disk_gb":
2216</font></tt>
<br><font size=2 face="sans-serif">12. </font><tt><font size=3>
}</font></tt>
<br><font size=2 face="sans-serif">13. </font><tt><font size=3>
},</font></tt>
<br><font size=2 face="sans-serif">14. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">15. </font><tt><font size=3>
"resource":</font></tt>
<br><font size=2 face="sans-serif">16. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">17. </font><tt><font size=3>
"project":
"(used_now)",</font></tt>
<br><font size=2 face="sans-serif">18. </font><tt><font size=3>
"memory_mb":
70144,</font></tt>
<br><font size=2 face="sans-serif">19. </font><tt><font size=3>
"host":
"x3630r7n8",</font></tt>
<br><font size=2 face="sans-serif">20. </font><tt><font size=3>
"cpu":
34,</font></tt>
<br><font size=2 face="sans-serif">21. </font><tt><font size=3>
"disk_gb":
880</font></tt>
<br><font size=2 face="sans-serif">22. </font><tt><font size=3>
}</font></tt>
<br><font size=2 face="sans-serif">23. </font><tt><font size=3>
},</font></tt>
<br><font size=2 face="sans-serif">24. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">25. </font><tt><font size=3>
"resource":</font></tt>
<br><font size=2 face="sans-serif">26. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">27. </font><tt><font size=3>
"project":
"(used_max)",</font></tt>
<br><font size=2 face="sans-serif">28. </font><tt><font size=3>
"memory_mb":
69632,</font></tt>
<br><font size=2 face="sans-serif">29. </font><tt><font size=3>
"host":
"x3630r7n8",</font></tt>
<br><font size=2 face="sans-serif">30. </font><tt><font size=3>
"cpu":
34,</font></tt>
<br><font size=2 face="sans-serif">31. </font><tt><font size=3>
"disk_gb":
880</font></tt>
<br><font size=2 face="sans-serif">32. </font><tt><font size=3>
}</font></tt>
<br><font size=2 face="sans-serif">33. </font><tt><font size=3>
},</font></tt>
<br><font size=2 face="sans-serif">34. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">35. </font><tt><font size=3>
"resource":</font></tt>
<br><font size=2 face="sans-serif">36. </font><tt><font size=3>
{</font></tt>
<br><font size=2 face="sans-serif">37. </font><tt><font size=3>
"project":
"5e5e2b0da114499b838c8d24c31bea08",</font></tt>
<br><font size=2 face="sans-serif">38. </font><tt><font size=3>
"memory_mb":
69632,</font></tt>
<br><font size=2 face="sans-serif">39. </font><tt><font size=3>
"host":
"x3630r7n8",</font></tt>
<br><font size=2 face="sans-serif">40. </font><tt><font size=3>
"cpu":
34,</font></tt>
<br><font size=2 face="sans-serif">41. </font><tt><font size=3>
"disk_gb":
880</font></tt>
<br><font size=2 face="sans-serif">42. </font><tt><font size=3>
}</font></tt>
<br><font size=2 face="sans-serif">43. </font><tt><font size=3>
}</font></tt>
<br><font size=2 face="sans-serif">44. </font><tt><font size=3>
]</font></tt>
<br><font size=2 face="sans-serif">45. </font><tt><font size=3>}</font></tt>