Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25142

SQL error on deleting LLD host that is used in action operation

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 7.0.4rc1
    • Server (S)
    • None
    • S24-W36/37
    • 1

      Steps to reproduce:

      1. Create a new host with LLD (set Delete lost resources to Immediate for faster result)
      2. Add this host as a target for action operation
      3. Change LLD data so that the host is not discovered, rerun the rule

      Result:

      1. The host is not deleted
      2. zabbix_server.log contains the error:
      517972:20240830:160229.283 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix7`.`opcommand_hst`, CONSTRAINT `c_opcommand_hst_2` FOREIGN KEY (`hostid`) REFERENCES `hosts` (`hostid`)) [delete from host_tag where hostid=10631;
      

      Expected:

      1. Host deleted
      2. Action is either disabled or marked as incomplete

            zabbix.dev Zabbix Development Team
            Kalimulin Alex Kalimulin
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: