Re: [openstack-dev] Propose to define the compute capability clearly

2014-10-22 Thread Daniel P. Berrange
On Tue, Oct 21, 2014 at 09:41:44PM +, Jiang, Yunhong wrote:
> Hi, Daniel's & all,
>   This is a follow up to Daniel's 
> http://osdir.com/ml/openstack-dev/2014-10/msg00557.html , "Info on XenAPI 
> data format for 'host_data' call". 
>   I'm considering to change the compute capability to be a nova object,
> with well defined field, the reasons are: a) currently the compute capability
> is a dict returned from hypervisor, however, different hypervisor may have
> different return value; b) currently the compute capability filter make
> decision simply match the flavor extra_specs with this not-well-defined 
> dict, this is not good IMHO. 

If by "compute capability" you mean the return value of get_available_resource,
then I've already got patches which turn that from a dict  into an object
which we're discussing

https://review.openstack.org/#/q/status:open+project:openstack/nova+branch:master+topic:bp/virt-driver-get-available-resources-object,n,z
http://lists.openstack.org/pipermail/openstack-dev/2014-October/048784.html

Regards,
Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Propose to define the compute capability clearly

2014-10-21 Thread Jiang, Yunhong
Hi, Daniel's & all,
This is a follow up to Daniel's 
http://osdir.com/ml/openstack-dev/2014-10/msg00557.html , "Info on XenAPI data 
format for 'host_data' call". 
I'm considering to change the compute capability to be a nova object, 
with well defined field, the reasons are: a) currently the compute capability 
is a dict returned from hypervisor, however, different hypervisor may have 
different return value; b) currently the compute capability filter make 
decision simply match the flavor extra_specs with this not-well-defined dict, 
this is not good IMHO. 
Just want to get some feedback from the mailing list before I try to 
create a BP and spec for it.

Thanks
--jyh

> -Original Message-
> From: Daniel P. Berrange [mailto:berra...@redhat.com]
> Sent: Wednesday, October 8, 2014 8:56 AM
> To: Bob Ball
> Cc: openstack-dev@lists.openstack.org
> Subject: Re: [openstack-dev] Info on XenAPI data format for 'host_data' call
> 
> On Wed, Oct 08, 2014 at 03:53:25PM +, Bob Ball wrote:
> > Hi Daniel,
> >
> > The following is an example return value from one of my hosts
> >
> > {"host_name-description": "Default install of XenServer",
> "host_hostname": "ciceronicus", "host_memory": {"total": 17169604608,
> "overhead": 266592256, "free": 16132087808, "free-computed":
> 16111337472}, "enabled": "true", "host_capabilities": ["xen-3.0-x86_64",
> "xen-3.0-x86_32p", "hvm-3.0-x86_32", "hvm-3.0-x86_32p", "hvm-3.0-
> x86_64"], "host_other-config": {"agent_start_time": "1412774967.",
> "iscsi_iqn": "iqn.2014-10.com.xensource.hq.eng:587b598c", "boot_time":
> "1412774885."}, "host_ip_address": "10.219.10.24", "host_cpu_info":
> {"physical_features": "0098e3fd-bfebfbff-0001-28100800",
> "modelname": "Intel(R) Xeon(R) CPU   X3430  @ 2.40GHz", "vendor":
> "GenuineIntel", "features": "0098e3fd-bfebfbff-0001-28100800",
> "family": 6, "maskable": "full", "cpu_count": 4, "socket_count": "1", "flags":
> "fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush acpi mmx fxsr
> sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni vmx est ssse3
> sse4_1 sse4_2 popcnt hypervisor ida tpr_shadow vnmi flexpriority ept vpid",
> "stepping": 5, "model": 30, "features_after_reboot": "0098e3fd-bfebfbff-
> 0001-28100800", "speed": "2394.086"}, "host_uuid": "ec54eebe-b14b-
> 4b0a-aa89-d2c468771cd3", "host_name-label": "ciceronicus"}
> >
> > Is that enough for what you're looking at?  If there is anything
> > I can help with let me know on IRC.
> 
> Yes, that is perfect, thank you.
> 
> Regards,
> Daniel
> --
> |: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org  -o- http://virt-manager.org :|
> |: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev