[Openstack] Host filter Instance Type Filter with virt layer Libvirt

edouard1.thuleau at orange-ftgroup.com edouard1.thuleau at orange-ftgroup.com
Wed Jul 20 16:33:16 UTC 2011


Hi Lorin,

Thanks to point me the branch. I messed it. So you set the memory in Mb and disk in Kb.

I have questions:

1)      The method 'update_status' in class HostState doesn't return anything, so why method 'update_host_status' in class 'LibvirtConnection'  return it ?

2)      I made this change on my testing infrastructure. I set a parent zone without compute workers, a child zone with compute worker. When the parent zone ask child to return weights list of compute hosts, the child reserved (the method '_schedule' in class 'ZoneAwareScheduler' calls 'consume_resources' on each asked hosts) the resources for the instance while it doesn't know if it will be selected. Do you meet that problem ?
Édouard.

De : Lorin Hochstein [mailto:lorin at isi.edu]
Envoyé : mercredi 20 juillet 2011 17:44
À : THULEAU Edouard NRS
Cc : openstack at lists.launchpad.net
Objet : Re: [Openstack] Host filter Instance Type Filter with virt layer Libvirt

Edouard:

There's another branch that has this code added to the libvirt layer, which has already been proposed for merge. I need to make some minor fixes, but once I do, I think it will be approved for merge.

Here's the merge proposal: https://code.launchpad.net/~usc-isi/nova/extra_specs_sched/+merge/65980

Lorin
--
Lorin Hochstein, Computer Scientist
USC Information Sciences Institute
703.812.3710
http://www.east.isi.edu/~lorin

On Jul 20, 2011, at 11:15 AM, <edouard1.thuleau at orange-ftgroup.com<mailto:edouard1.thuleau at orange-ftgroup.com>> wrote:


Hi,

I try to add code to the Libvirt layer to enable the Instance Type Filter needed by the zone aware scheduler.
I looked the code of fake virt layer which implement that. The table 'host_status' in class 'FakeConnection' contains all capabilities of the host:

self.host_status = {
          'host_name-description': 'Fake Host',
          'host_hostname': 'fake-mini',
          'host_memory_total': 8000000000,
          'host_memory_overhead': 10000000,
          'host_memory_free': 7900000000,
          'host_memory_free_computed': 7900000000,
          'host_other_config': {},
          'host_ip_address': '192.168.1.109',
          'host_cpu_info': {},
          'disk_available': 500000000000,
          'disk_total': 600000000000,
          'disk_used': 100000000000,
          'host_uuid': 'cedb9b39-9388-41df-8891-c5c9a0c0fe5f',
         'host_name_label': 'fake-mini'
}

Nothing explain what corresponding each elements of this table and what unit use. I suppose, the unit is bytes for disk and memory.
And in the code of the host filtering in the scheduler (nova/scheduler/host_filter.py method class 'InstanceTypeFilter' method 'host_filtrer'), the scheduler compares the host capabilities with specified resources of the instance to determined which host can support it. But specified resources of the instance is in Mbytes for memory and Gbytes for the disk. Is it normal ?

Édouard.

********************************************************************************

IMPORTANT.Les informations contenues dans ce message electronique y compris les fichiers attaches sont strictement confidentielles

et peuvent etre protegees par la loi.

Ce message electronique est destine exclusivement au(x) destinataire(s) mentionne(s) ci-dessus.

Si vous avez recu ce message par erreur ou s il ne vous est pas destine, veuillez immediatement le signaler  a l expediteur et effacer ce message

et tous les fichiers eventuellement attaches.

Toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite.

Tout message electronique est susceptible d alteration.

A ce titre, le Groupe France Telecom decline toute responsabilite notamment s il a ete altere, deforme ou falsifie.

De meme, il appartient au destinataire de s assurer de l absence de tout virus.



IMPORTANT.This e-mail message and any attachments are strictly confidential and may be protected by law. This message is

intended only for the named recipient(s) above.

If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this e-mail message.

Any unauthorized view, usage or disclosure ofthis message is prohibited.

Since e-mail messages may not be reliable, France Telecom Group shall not be liable for any message if modified, changed or falsified.

Additionally the recipient should ensure they are actually virus free.

********************************************************************************
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


********************************************************************************
IMPORTANT.Les informations contenues dans ce message electronique y compris les fichiers attaches sont strictement confidentielles
et peuvent etre protegees par la loi.
Ce message electronique est destine exclusivement au(x) destinataire(s) mentionne(s) ci-dessus.
Si vous avez recu ce message par erreur ou s il ne vous est pas destine, veuillez immediatement le signaler  a l expediteur et effacer ce message 
et tous les fichiers eventuellement attaches.
Toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite.
Tout message electronique est susceptible d alteration.
A ce titre, le Groupe France Telecom decline toute responsabilite notamment s il a ete altere, deforme ou falsifie.
De meme, il appartient au destinataire de s assurer de l absence de tout virus.

IMPORTANT.This e-mail message and any attachments are strictly confidential and may be protected by law. This message is
intended only for the named recipient(s) above.
If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this e-mail message.
Any unauthorized view, usage or disclosure ofthis message is prohibited.
Since e-mail messages may not be reliable, France Telecom Group shall not be liable for any message if modified, changed or falsified.
Additionally the recipient should ensure they are actually virus free.
********************************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110720/d7af09be/attachment.html>


More information about the Openstack mailing list