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

Cannot delete Template's Discovery rule filter macro when importing

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 7.0.12
    • API (A)
    • Zabbix server 7.0-1, 7.0-5, 7.0-8 and 7.0-12
      RockyLinux 9
    • Sprint candidates

      Tested in 7.0-1, 7.0-5, 7.0-8 and 7.0-12

      Steps to reproduce: 

      1. Export a template as a YAML, XLM or JSON file
      2. Add a Discovery rule of type Dependent item, the Master item being an item of the template.
      3. Add a Discovery rule Filter to the same template via Web interface
      4. Import back the previously exported template file via Web interface
      5. Make sure `Discovery rules` `Delete missing` is checked, click `Import`
      6. Observe that the newly added filter is marked to be deleted, click `Import`
      7. Observe `Imported successfully`

      Result:

      The template's discovery rule filter is still present event though the web interface confirmed the deletion. The filter needs to be manually deleted.

      Expected:

      The template's discovery rule filter should have been deleted, as indicated by the import diff window, or an error should be displayed if this deletion is not possible this way.

        1. zabbix_discovery-rule.png
          51 kB
          Alexandre KARIM
        2. zabbix_filter.png
          32 kB
          Alexandre KARIM
        3. zabbix_import-diff.png
          40 kB
          Alexandre KARIM

            zabbix.dev Zabbix Development Team
            alekar Alexandre KARIM
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: