Hello my friends, I was trying to experiment with some of the scheduler’s functionality, as a mock-up, I was trying to augment the JSON filter’s functionality, JSON filter can filter anything in HostState class’s member fields, and I was trying to get the ID of a compute node, as in the compute_nodes table in the database, I added
self.currentid = 0 in __init__ method in HostState class, and added databaseid = compute[‘id’] self.currentid = databaseid in update_from_compute_node method in HostState class, then in the hope that I can specify an id when pass a hint to JSON filter nova boot –image 827d564a-e636-4fc4-a376-d36f7ebe1747 –flavor 1 –hint query=’[“=”,”$currentid”,1]’ server1 however, it always gives me an error on scheduling, I guess the scheduler could not find a compute node with id 1, but I just could not figure out, what is missing. Any thought and help is greatly appreciated. Thanks Heng
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp