OS API format of blob

Asked by Tushar Patil

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?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Tushar Patil
Solved:
Last query:
Last reply:
Revision history for this message
Ed Leafe (ed-leafe) said :
#1

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.

Revision history for this message
Sandy Walsh (sandy-walsh) said :
#2

More info here on Zones and Distributed Scheduler

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

Revision history for this message
Tushar Patil (tpatil) said :
#3

Thanks Ed Leafe and Sandy Walsh.

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