OS API format of blob

asked 2011-08-05 19:26:02 -0600

tpatil gravatar image

I am trying to setup zone_aware_scheduler to test launching of server on specific host. But I didn't find the format of blob that I should be passing to the Create Server API.

Does anyone knows the format of blob?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-08-08 21:29:10 -0600

The blob is simply the encrypted results of the results of a zone's select() call to get and weight hosts available for a new instance. The decrypted blob is simply a list of dictionaries of form: [{weight: weight, hostname: hostname, capabilities: capabs}]

Take a look at the _scrub_build_plan() method of nova/api/openstack/zones.py to see where the encryption is handled.

edit flag offensive delete link more

answered 2011-08-08 21:50:42 -0600

More info here on Zones and Distributed Scheduler


edit flag offensive delete link more

answered 2011-08-09 20:30:01 -0600

tpatil gravatar image

Thanks Ed Leafe and Sandy Walsh.

http://nova.openstack.org/devref/ explains everything. Nice documentation.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-08-05 19:26:02 -0600

Seen: 77 times

Last updated: Aug 09 '11