[ZBX-18944] Kubernetes Volumes discovery fails Created: 2021 Jan 29  Updated: 2024 Apr 10  Resolved: 2021 Nov 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.0.7, 5.0.8
Fix Version/s: 6.0.0alpha6, 6.0 (plan)

Type: Problem report Priority: Minor
Reporter: Patrick Remy Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: templates, triggers, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Debian 10


Attachments: PNG File Bildschirmfoto 2021-01-29 um 11.43.45.png     XML File dummy-lld-embeded.xml    
Issue Links:
Sub-task
part of ZBX-19604 Error cloning template "Template DB O... Closed
Team: Team A
Sprint: Sprint 82 (Nov 2021)
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Add PVC volume to kubernetes host, or any long fs name
  2. Add host via zabbix agent2 to zabbix, and add default Linux template
  3. Open Configuration > Hosts > select host
  4. Select Discovery Rules in top menu
  5. Click red  symbol next to „Template Module Linux filesystems by Zabbix agent: Mounted filesystem discovery”

Result:

PVCs are not discovered, as trigger creation fails.

„Cannot create trigger: value "/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-cb944255-a513-4efc-b2b1-342c3cb36347/globalmount: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-cb944255-a513-4efc-b2b1-342c3cb36347/globalmount"}%)" is too long.”
(See screenshot)

Expected:
Also long fs names are possible for triggers.



 Comments   
Comment by Patrick Remy [ 2021 Jan 29 ]

See https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/zabbix_server/lld/lld_trigger.c#2226-2227 for specific code lines. Is there a way to extend `field_len`? 

Current workaround is to delete the (used > {$VFS.FS.PUSED.MAX.CRIT) from all trigger templates names, to shorten it enough.

Comment by Aigars Kadikis [ 2021 Feb 01 ]

Can reproduce it with 5.0.8 backend whit LLD data:

[
  {
    "{#FSNAME}": "/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-cb944255-a513-4efc-b2b1-342c3cb36347/globalmount",
    "{#FSTYPE}": "rootfs"
  }
] 

Attaching dummy-lld-embeded.xml for reproducing faster. Create host, apply a template, reload cache and select "Check now" for the only item under "Items" section.

Comment by Michael Veksler [ 2021 Oct 29 ]

The length of DB field triggers.description has been increased to 2048 in 6.0.0alpha4(master)

Comment by Michael Veksler [ 2021 Nov 05 ]

Available in:

Comment by Frank [ 2022 Jun 08 ]

This appears to still be an issue in Zabbix 6.0.4:

Cannot create trigger: value "/hostfs/root/var/lib/kubelet/pods/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/volumes/kubernetes.io~csi/pvc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/mount: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"/hostfs/root/var/lib/kubelet/pods/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/volumes/kubernetes.io~csi/pvc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"}%)" is too long.
Comment by Jeff [ 2023 Oct 05 ]

This is still a problem in 6.4.7.. 

Generated at Fri Apr 04 17:35:14 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.