When trying to delete a host, the following error appears.
{
"query": "SELECT keepalived_rule.id AS keepalived_rule_id, keepalived_rule.rule_type AS keepalived_rule_rule_type, keepalived_rule.rule_order AS keepalived_rule_rule_order, keepalived_rule.active AS keepalived_rule_active, keepalived_rule.group AS keepalived_rule_group, keepalived_rule.style AS keepalived_rule_style, keepalived_rule.interface AS keepalived_rule_interface, keepalived_rule.master_node AS keepalived_rule_master_node, keepalived_rule.firewall AS keepalived_rule_firewall, keepalived_rule.cfg_text AS keepalived_rule_cfg_text, keepalived_rule.comment AS keepalived_rule_comment FROM keepalived_rkeepalived_rule INNER JOIN interfaceinterface ON interface.id=keepalived_rule.interface INNER JOIN interface__ipobjhosts ON hosts.interface=interface.id INNER JOIN ipobjipObj ON ipObj.id=hosts.ipobj AND (ipObj.id = ?) INNER JOIN firewallfirewall ON firewall.id=keepalived_rule.firewall LEFT JOIN clustercluster ON cluster.id=firewall.cluster WHERE firewall.fwcloud = :fwcloud AND interface.id IS NOT NULL",
"parameters": [
100627
],
"driverError": {
"code": "ER_PARSE_ERROR",
"errno": 1064,
"sqlState": "42000",
"sqlMessage": "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':fwcloud AND interface.id IS NOT NULL' at line 1",
"sql": "SELECT keepalived_rule.id AS keepalived_rule_id, keepalived_rule.rule_type AS keepalived_rule_rule_type, keepalived_rule.rule_order AS keepalived_rule_rule_order, keepalived_rule.active AS keepalived_rule_active, keepalived_rule.group AS keepalived_rule_group, keepalived_rule.style AS keepalived_rule_style, keepalived_rule.interface AS keepalived_rule_interface, keepalived_rule.master_node AS keepalived_rule_master_node, keepalived_rule.firewall AS keepalived_rule_firewall, keepalived_rule.cfg_text AS keepalived_rule_cfg_text, keepalived_rule.comment AS keepalived_rule_comment FROM keepalived_rkeepalived_rule INNER JOIN interfaceinterface ON interface.id=keepalived_rule.interface INNER JOIN interface__ipobjhosts ON hosts.interface=interface.id INNER JOIN ipobjipObj ON ipObj.id=hosts.ipobj AND (ipObj.id = 100627) INNER JOIN firewallfirewall ON firewall.id=keepalived_rule.firewall LEFT JOIN clustercluster ON cluster.id=firewall.cluster WHERE firewall.fwcloud = :fwcloud AND interface.id IS NOT NULL"
},
"code": "ER_PARSE_ERROR",
"errno": 1064,
"sqlState": "42000",
"sqlMessage": "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':fwcloud AND interface.id IS NOT NULL' at line 1",
"sql": "SELECT keepalived_rule.id AS keepalived_rule_id, keepalived_rule.rule_type AS keepalived_rule_rule_type, keepalived_rule.rule_order AS keepalived_rule_rule_order, keepalived_rule.active AS keepalived_rule_active, keepalived_rule.group AS keepalived_rule_group, keepalived_rule.style AS keepalived_rule_style, keepalived_rule.interface AS keepalived_rule_interface, keepalived_rule.master_node AS keepalived_rule_master_node, keepalived_rule.firewall AS keepalived_rule_firewall, keepalived_rule.cfg_text AS keepalived_rule_cfg_text, keepalived_rule.comment AS keepalived_rule_comment FROM keepalived_rkeepalived_rule INNER JOIN interfaceinterface ON interface.id=keepalived_rule.interface INNER JOIN interface__ipobjhosts ON hosts.interface=interface.id INNER JOIN ipobjipObj ON ipObj.id=hosts.ipobj AND (ipObj.id = 100627) INNER JOIN firewallfirewall ON firewall.id=keepalived_rule.firewall LEFT JOIN clustercluster ON cluster.id=firewall.cluster WHERE firewall.fwcloud = :fwcloud AND interface.id IS NOT NULL"
}
When trying to delete a host, the following error appears.
{ "query": "SELECT
keepalived_rule
.id
ASkeepalived_rule_id
,keepalived_rule
.rule_type
ASkeepalived_rule_rule_type
,keepalived_rule
.rule_order
ASkeepalived_rule_rule_order
,keepalived_rule
.active
ASkeepalived_rule_active
,keepalived_rule
.group
ASkeepalived_rule_group
,keepalived_rule
.style
ASkeepalived_rule_style
,keepalived_rule
.interface
ASkeepalived_rule_interface
,keepalived_rule
.master_node
ASkeepalived_rule_master_node
,keepalived_rule
.firewall
ASkeepalived_rule_firewall
,keepalived_rule
.cfg_text
ASkeepalived_rule_cfg_text
,keepalived_rule
.comment
ASkeepalived_rule_comment
FROMkeepalived_r
keepalived_rule
INNER JOINinterface
interface
ONinterface
.id
=keepalived_rule
.interface
INNER JOINinterface__ipobj
hosts
ONhosts
.interface
=interface
.id
INNER JOINipobj
ipObj
ONipObj
.id
=hosts
.ipobj
AND (ipObj
.id
= ?) INNER JOINfirewall
firewall
ONfirewall
.id
=keepalived_rule
.firewall
LEFT JOINcluster
cluster
ONcluster
.id
=firewall
.cluster
WHEREfirewall
.fwcloud
= :fwcloud ANDinterface
.id
IS NOT NULL", "parameters": [ 100627 ], "driverError": { "code": "ER_PARSE_ERROR", "errno": 1064, "sqlState": "42000", "sqlMessage": "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':fwcloud ANDinterface
.id
IS NOT NULL' at line 1", "sql": "SELECTkeepalived_rule
.id
ASkeepalived_rule_id
,keepalived_rule
.rule_type
ASkeepalived_rule_rule_type
,keepalived_rule
.rule_order
ASkeepalived_rule_rule_order
,keepalived_rule
.active
ASkeepalived_rule_active
,keepalived_rule
.group
ASkeepalived_rule_group
,keepalived_rule
.style
ASkeepalived_rule_style
,keepalived_rule
.interface
ASkeepalived_rule_interface
,keepalived_rule
.master_node
ASkeepalived_rule_master_node
,keepalived_rule
.firewall
ASkeepalived_rule_firewall
,keepalived_rule
.cfg_text
ASkeepalived_rule_cfg_text
,keepalived_rule
.comment
ASkeepalived_rule_comment
FROMkeepalived_r
keepalived_rule
INNER JOINinterface
interface
ONinterface
.id
=keepalived_rule
.interface
INNER JOINinterface__ipobj
hosts
ONhosts
.interface
=interface
.id
INNER JOINipobj
ipObj
ONipObj
.id
=hosts
.ipobj
AND (ipObj
.id
= 100627) INNER JOINfirewall
firewall
ONfirewall
.id
=keepalived_rule
.firewall
LEFT JOINcluster
cluster
ONcluster
.id
=firewall
.cluster
WHEREfirewall
.fwcloud
= :fwcloud ANDinterface
.id
IS NOT NULL" }, "code": "ER_PARSE_ERROR", "errno": 1064, "sqlState": "42000", "sqlMessage": "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':fwcloud ANDinterface
.id
IS NOT NULL' at line 1", "sql": "SELECTkeepalived_rule
.id
ASkeepalived_rule_id
,keepalived_rule
.rule_type
ASkeepalived_rule_rule_type
,keepalived_rule
.rule_order
ASkeepalived_rule_rule_order
,keepalived_rule
.active
ASkeepalived_rule_active
,keepalived_rule
.group
ASkeepalived_rule_group
,keepalived_rule
.style
ASkeepalived_rule_style
,keepalived_rule
.interface
ASkeepalived_rule_interface
,keepalived_rule
.master_node
ASkeepalived_rule_master_node
,keepalived_rule
.firewall
ASkeepalived_rule_firewall
,keepalived_rule
.cfg_text
ASkeepalived_rule_cfg_text
,keepalived_rule
.comment
ASkeepalived_rule_comment
FROMkeepalived_r
keepalived_rule
INNER JOINinterface
interface
ONinterface
.id
=keepalived_rule
.interface
INNER JOINinterface__ipobj
hosts
ONhosts
.interface
=interface
.id
INNER JOINipobj
ipObj
ONipObj
.id
=hosts
.ipobj
AND (ipObj
.id
= 100627) INNER JOINfirewall
firewall
ONfirewall
.id
=keepalived_rule
.firewall
LEFT JOINcluster
cluster
ONcluster
.id
=firewall
.cluster
WHEREfirewall
.fwcloud
= :fwcloud ANDinterface
.id
IS NOT NULL" }