Confusing Cassandra error: executeMutation(): [applied] is false for statement INSERT_HOST
I tried to add the following host reservation:
{
"command": "reservation-add",
"arguments": {
"reservation":
{
"subnet-id":1,
"client-id": "01:0a:0b:0c:0d:0e:0f",
"ip-address": "192.0.2.205",
"next-server": "192.0.2.1",
"server-hostname": "hal9000",
"boot-file-name": "/dev/null",
"option-data": [
{
"name": "domain-name-servers",
"data": "10.1.1.202,10.1.1.203"
},
{
"name": "domain-name-servers",
"data": "10.1.1.202,10.1.1.203"
}
],
"client-classes": [ "isc", "office" ]
}
}
}
and got this confusing error message:
{ "result": 1, "text": "CqlExchange::executeMutation(): [applied] is false for statement INSERT_HOST" }
This error is caused by the fact there is duplicated option (the same option defined twice). Normal user has no chance to understand this error message. It should be more descriptive.