[Openstack] Cannot pass hint to Nova Scheduler

Heng Xu shouhengzhang.xu at mail.utoronto.ca
Sat Aug 4 11:48:41 UTC 2012


But I tried a few things in HostState class, I ran into error, because I could not monitor the stats in hoststates class as opposed to a database, is there a way to check the stats in HostState class as exists in memory?
Thank you.
Heng
________________________________________
From: Jay Pipes [jaypipes at gmail.com]
Sent: Friday, August 03, 2012 4:38 PM
To: Heng Xu
Cc: openstack at lists.launchpad.net
Subject: Re: [Openstack] Cannot pass hint to Nova Scheduler

On 08/03/2012 09:28 AM, Heng Xu wrote:
> Another questions is, I can get all the status of a computing node in the mysql nova database, and select * from compute_node, but now I am using json filter, the only field I have success with now is the free_ram_db, if my hint uses free_disk_gb, then I always get error, but the database is showing my compute node has $free_disk_gb equal 17, so I was wondering, where to find exactly what kind of json field can use in json filter, thanks in advance

The nova.scheduler.host_manager.HostState class is what is checked for
attributes, not the ComputeNode model. So, you need to use
"$free_disk_mb", not "free_disk_gb".

Best,
-jay






More information about the Openstack mailing list