[ZBXNEXT-8702] VMware Discovery "Cannot create group: group with the same name" Created: 2014 Mar 04  Updated: 2024 Apr 10  Resolved: 2023 Dec 01

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 7.0.0alpha5, 7.0 (plan)

Type: New Feature Request Priority: Critical
Reporter: Tomasz Pawelczak Assignee: Andris Zeila
Resolution: Fixed Votes: 27
Labels: hostgroups, lld, uniqueness, vmware
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified
Environment:

Centos 6.3, mysql (Percona Server 5.6), arch x86_64


Attachments: PNG File Screenshot 2023-09-05 at 18.17.43.png     GIF File discovery_of_useless_group.gif     PNG File image-2023-02-22-10-45-03-151.png     PNG File image-2023-02-22-10-45-11-967.png     PNG File image-2023-02-22-10-45-21-447.png     File integration_tests.md     PNG File zbx-bug-vm-disocvery.png     PDF File ✅ FR_ Multiple LLD group prototypes for a single host group.pdf    
Issue Links:
Causes
Duplicate
is duplicated by ZBX-15012 Cannot create group: group with the s... Closed
is duplicated by ZBX-19302 Cannot add discovered host using grou... Closed
is duplicated by ZBX-22387 Cannot create group: group with the s... Closed
is duplicated by ZBX-24064 Cannot create group: group with the s... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ZBXNEXT-8703 Frontend changes to allow multiple LL... Change Request (Sub-task) Closed Dmitrijs Fofanovs  
Epic Link: Zabbix 7.0
Team: Team A
Sprint: Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023)
Story Points: 6

 Description   

Host discovery can't add host to group already created by another host discovery rule.
This issue may be similar to ZBX-7728.

UPD: Here is an example of JSON that causes the affected error (taken from ZBX-15012):

{
    "data": [
        {
            "{#HOST}": "ng-1.alpha.marathon.mesos.sportmaster.ru",
            "{#GROUP}": "ESM_alpha"
        },
        {
            "{#HOST}": "ng-2.alpha.marathon.mesos.sportmaster.ru",
            "{#GROUP}": "ESM_alpha"
        },
    ]
} 


 Comments   
Comment by Mickael Martin [ 2014 Sep 09 ]

It's would be possible easily to add an host in a group which already exists.
So, actually, we cannot use a truly template for vcenters...

Comment by Rodrigo Paris [ 2017 Apr 27 ]

I'm Have this problem , Do you have any solution ?

Comment by Matias [ 2020 May 18 ]

6 years later this problem still persist in version 4.0

Comment by Evren Yurtesen [ 2020 May 24 ]

It seem to exist in version 5.0 also.

Comment by Gareth Brown [ 2021 Feb 14 ]

Hi, this bug seems to have been around for a very long time but doesn't feel like it would be a huge amount of effort to resolve it?

Is it not just check exception handling and adding to group instead of creating and adding?

If someone at Zabbix could point me to the code we can see about submitting a PR for it.

Comment by John Ballantyne [ 2022 Oct 27 ]

This bug renders the great template unusable, surely a macro value or host name added to the keyname would solve this easily.

Comment by Igor Koskin [ 2023 Feb 22 ]

The problem is still relevant. Using a macro in "Group prototypes" doesn't help.

Steps to reproduce with macro:

  1. Create the "Group prototypes" with macros in the "Host prototypes" of the LLD. Such groups with the same name should not exist.
  2. When you started LLD on first object the necessary groups were created and assigned to the discovered hosts.
  3. But subsequent executions of LLD on other objects end with an error:
    "Cannot create group: group with the same name "..." already exists."

Host prototypes:

First created object:

Error on other:

Comment by Cornelius Wasmund [ 2023 Mar 27 ]

I have this problem too.
When I have multiple vmware LLD, I get an error message on the same group.

https://www.zabbix.com/forum/filedata/fetch?id=458656&d=1675179567

https://www.zabbix.com/forum/filedata/fetch?id=458657&d=1675179605

 

https://www.zabbix.com/forum/zabbix-help/458555-discover-vmware-vms-host-prototypes-add-group-based-on-hv-id-with-regsub?p=458655#post458655

 

Comment by Rostislav Palivoda [ 2023 Jul 27 ]

See ✅ FR_ Multiple LLD group prototypes for a single host group.pdf

Comment by Andris Zeila [ 2023 Sep 21 ]

Released ZBXNEXT-8702 in:

  • pre-7.0.0alpha5 39012584fdf
Comment by Arturs Dancis [ 2023 Sep 29 ]

Documentation (7.0) updated:

Generated at Thu Dec 26 07:38:03 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.