Neil Conway created MESOS-7379:
----------------------------------
Summary: Improve error reporting for UNRESERVE, DESTROY
Key: MESOS-7379
URL: https://issues.apache.org/jira/browse/MESOS-7379
Project: Mesos
Issue Type: Bug
Reporter: Neil Conway
When processing an invalid {{UNRESERVE}} operation, we currently return a
vague/unhelpful error message:
{noformat}
Dropping UNRESERVE offer operation from framework
19294f46-0a56-4ec9-8721-3b4ca524500b-0048 (dseshp) at
[email protected]:46238: Invalid
UNRESERVE Operation: disk(dseshp-role, dseshp-principal, {resource_id:
bb5b3eeb-8ea4-4144-b9ce-dda97c5ce76f})[]:2.05585e+06; ports(*):[1025-2180,
2182-3887, 3889-5049, 5052-8079, 8082-8180, 8182-8653, 8655-9089, 9092-9999,
10101-15378, 15381-20118, 20120-21670, 21672-25477, 25480-32000]; mem(*):49377;
disk(*):216762; cpus(*):3.5 does not contain disk(dseshp-role,
dseshp-principal, {resource_id:
bb5b3eeb-8ea4-4144-b9ce-dda97c5ce76f}):2.05585e+06
{noformat}
Given the resource
{noformat}
resources {
name: "disk"
type: SCALAR scalar {
value: 2055848.0
}
role: "dseshp-role"
disk {
source {
type: MOUNT mount {
root: "/dcos/volume1"
}
}
}
reservation {
principal: "dseshp-principal"
labels {
labels {
key: "resource_id"
value: "bb5b3eeb-8ea4-4144-b9ce-dda97c5ce76f"
}
}
}
}
{noformat}
And the operation
{noformat}
UNRESERVE unreserve {
resources {
name: "disk"
type: SCALAR scalar {
value: 2055848.0
}
role: "dseshp-role"
reservation {
principal: "dseshp-principal"
labels {
labels {
key: "resource_id"
value: "bb5b3eeb-8ea4-4144-b9ce-dda97c5ce76f"
}
}
}
}
}
{noformat}
(The problem is the missing "source" in the UNRESERVE.) We should report the
actual problem more specifically. A similar problem likely exists for DESTROY.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)