mcoffin / errybody

GNU General Public License v3.0
0 stars 0 forks source link

Aggregated offers must only use resources from one agent. #12

Closed mcoffin closed 7 years ago

mcoffin commented 7 years ago

Accept message:

{"type":"ACCEPT","framework_id":{"value":"e3d13b97-08d1-45da-a5f1-06a105c65cbd-0006"},"accept":{"offer_ids":[{"value":"e3d13b97-08d1-45da-a5f1-06a105c65cbd-O82326"},{"value":"e3d13b97-08d1-45da-a5f1-06a105c65cbd-O82327"}],"operations":[{"type":"LAUNCH","launch":{"task_infos":[{"name":"synapse","task_id":{"value":"07e4fd53-8f0d-446e-8884-a9977ae2a9a3"},"agent_id":{"value":"e3d13b97-08d1-45da-a5f1-06a105c65cbd-S0"},"resources":[{"name":"cpus","type":"SCALAR","scalar":{"value":0.05}},{"name":"mem","type":"SCALAR","scalar":{"value":128}}],"command":{"uris":[{"value":"https://mcoffin-mesos-config.s3.amazonaws.com/errybody/synapse/synapse.yml","extract":true},{"value":"file:///etc/mesos/master.pem","extract":true}],"shell":false,"arguments":["synapse","/mnt/mesos/sandbox/synapse.yml"]},"container":{"type":"MESOS","volumes":[],"mesos":{"image":{"type":"DOCKER","docker":{"name":"mcoffin/synapse-docker:20170803"},"cached":true}},"network_infos":[]}},{"name":"synapse","task_id":{"value":"ba3c04e5-83d3-4070-8b71-5fb6a4339bfc"},"agent_id":{"value":"e3d13b97-08d1-45da-a5f1-06a105c65cbd-S1"},"resources":[{"name":"cpus","type":"SCALAR","scalar":{"value":0.05}},{"name":"mem","type":"SCALAR","scalar":{"value":128}}],"command":{"uris":[{"value":"https://mcoffin-mesos-config.s3.amazonaws.com/errybody/synapse/synapse.yml","extract":true},{"value":"file:///etc/mesos/master.pem","extract":true}],"shell":false,"arguments":["synapse","/mnt/mesos/sandbox/synapse.yml"]},"container":{"type":"MESOS","volumes":[],"mesos":{"image":{"type":"DOCKER","docker":{"name":"mcoffin/synapse-docker:20170803"},"cached":true}},"network_infos":[]}}]}}],"filters":{"refuse_seconds":10}}}

Responses:

{"type":"UPDATE","update":{"status":{"task_id":{"value":"07e4fd53-8f0d-446e-8884-a9977ae2a9a3"},"state":"TASK_LOST","message":"Task launched with invalid offers: Aggregated offers must belong to one single agent. Offer e3d13b97-08d1-45da-a5f1-06a105c65cbd-O82327 uses agent e3d13b97-08d1-45da-a5f1-06a105c65cbd-S1 and agent e3d13b97-08d1-45da-a5f1-06a105c65cbd-S0","source":"SOURCE_MASTER","reason":"REASON_INVALID_OFFERS","timestamp":1501812386.97554}}}
{"type":"UPDATE","update":{"status":{"task_id":{"value":"ba3c04e5-83d3-4070-8b71-5fb6a4339bfc"},"state":"TASK_LOST","message":"Task launched with invalid offers: Aggregated offers must belong to one single agent. Offer e3d13b97-08d1-45da-a5f1-06a105c65cbd-O82327 uses agent e3d13b97-08d1-45da-a5f1-06a105c65cbd-S1 and agent e3d13b97-08d1-45da-a5f1-06a105c65cbd-S0","source":"SOURCE_MASTER","reason":"REASON_INVALID_OFFERS","timestamp":1501812386.97591}}}