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

If the host.delete method fails during execution via the Zabbix API, parts of the host's configuration may be unintentionally removed.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.0.12
    • API (A)
    • None
    • AlmaLinux release 9.3 (Shamrock Pampas Cat)
      mysql-server-8.0.36-1.el9_3.x86_64
      php-fpm-8.0.30-1.el9_2.x86_64
      httpd-2.4.57-8.el9.x86_64
      zabbix-7.0.5
    • Sprint candidates

      We observed that when the host.delete method failed, some configuration settings on certain hosts were unintentionally removed.

      The following issue occurs:

      1. The host.delete method is executed in parallel via the Zabbix API.
      2. Some hosts fail to be deleted.
      3. For the hosts that failed to delete, part of their configuration is missing.
        A deadlock occurs during processing, causing the transaction to be interrupted and rolled back.
        Please check the following:
        After executing host.delete, there is no change in configuration for Zabbix server03, 05, and 08 compared to the state before execution.
        However, Zabbix server01, 06, and 09 have some configurations missing.
        Before execution
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        | hostid | hostname             | item_count | trigger_count | graph_count | discovery_rule_count | item_prototype_count |
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        |  10047 | Zabbix server health |         72 |            52 |           0 |                    3 |                   24 |
        |  10084 | Zabbix server        |        156 |            86 |          17 |                    6 |                   49 |
        |  10637 | Zabbix server01      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10638 | Zabbix server02      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10639 | Zabbix server03      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10640 | Zabbix server04      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10641 | Zabbix server05      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10642 | Zabbix server06      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10643 | Zabbix server07      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10644 | Zabbix server08      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10645 | Zabbix server09      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10646 | Zabbix server10      |       1515 |          1467 |        1408 |                    7 |                   50 |
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        12 rows in set (27.96 sec)
        
        mysql>
        
        After execution
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        | hostid | hostname             | item_count | trigger_count | graph_count | discovery_rule_count | item_prototype_count |
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        |  10047 | Zabbix server health |         72 |            52 |           0 |                    3 |                   24 |
        |  10084 | Zabbix server        |        156 |            86 |          17 |                    6 |                   49 |
        |  10637 | Zabbix server01      |       1515 |          1467 |           0 |                    3 |                   19 |
        |  10639 | Zabbix server03      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10641 | Zabbix server05      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10642 | Zabbix server06      |       1515 |          1467 |           0 |                    3 |                   19 |
        |  10644 | Zabbix server08      |       1515 |          1467 |        1408 |                    7 |                   50 |
        |  10645 | Zabbix server09      |          0 |             0 |           0 |                    3 |                   19 |
        +--------+----------------------+------------+---------------+-------------+----------------------+----------------------+
        8 rows in set (13.93 sec)
        
        mysql>
        

      I have confirmed that the issue also reproduces on version 7.0.12.

            jfreibergs Janis Freibergs
            ikarimata Itsuki Karimata
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: