[ZBX-24924] Cannot delete interface - locked by calculated and dependent items from zbx5 bug Created: 2024 Jul 26  Updated: 2024 Jul 29

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: user185953 Assignee: Michal Kudlacz
Resolution: Unresolved Votes: 0
Labels: Interfaces, Upgrade, interface
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:{}

  1. Start with Zabbix 5.0
  2. Create a couple of hosts, give them ZBX interface.
  3. Create a template, link it to the hosts
  4. Create couple of items of HTTP agent type
  5. ???
  6. Switch some items to type Calculated or type Dependent
  7. Add another interface (SNMP)
  8. Swith all items that are still HTTP agent to new interface
  9. Upgrade from Zabbix 5.0 to Zabbix 7.0
  10. Try to delete ZBX interface

Result:
Original ZBX interface cannot be deleted.
Database query confirms calculated (type=15) and dependent (type=18) items "use" it.

 

Also database query confirms this affects all hosts that link affected templates same way.

Also database query found more affected templates/items - all originally HTTP Agent.

 

 

I don't know how exactly corrupted items happened, "steps to reproduce" is my guess.

Anyway, this report is about upgrade process, either 5->6 or 6->7, not cleaning this mess up.

 

I hope this helps you find the bug(s). Thank you.



 Comments   
Comment by user185953 [ 2024 Jul 29 ]

I confirm steps for creating stuck interfaces on Zabbix 5.0:

  • create empty template
  • create host, give it ZBX interface, link to template
  • create HTTP agent item in template (filled: name, key, URL "https://", disabled)
  • clone HTTP agent item in template (changed: name, key)
  • edit cloned HTTP agent item (changed: dependent on original HTTP item)
  • Checked in database host now has item with type=18, locking ZBX interface

Same steps on Zabbix 7.0 update interfaceid correctly - cannot lock new ZBX interface like that anymore.

Generated at Wed Jul 16 10:52:50 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.