Ask Your Question
0

OS API format of blob

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

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
0

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

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
0

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

More info here on Zones and Distributed Scheduler

http://nova.openstack.org/devref/

edit flag offensive delete link more
0

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

tpatil gravatar image

Thanks Ed Leafe and Sandy Walsh.

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 18 times

Last updated: Aug 09 '11