Tag assignment limited to one per category in vCenter Server
search cancel

Tag assignment limited to one per category in vCenter Server

book

Article ID: 338636

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • It is observed that all the tags created in the vCenter are not available for assignment to VMs when 'Assign Tag' option is clicked on the summary page or on right-clicking the VM.
  • Or it may be seen that when assigning more than one tag to a virtual machine or a folder in the vCenter, operation fails with the below message:

Operation failed! (vmodl.fault.InvalidArgument) { faultCause = null, faultMessage = null, invalidProperty = null }


  • In the /var/log/vmware/vpxd/vpxd.log, following error may be seen:
[dataservice-5 [] INFO com.vmware.cis.server.util.VpxdEventGenerator opId=########-de12-41e6-83ed-############ IS] Scheduling post event on VC for TAGGING:ATTACH
[pool-13-thread-1 [] INFO com.vmware.cis.server.util.VpxdEventGenerator opId=] Posting ATTACH event to VC: Mensal to urn:vmomi:VirtualMachine:vm-######:########-afb3-4411-############
[dataservice-5 [] INFO com.vmware.cis.core.tagging.vmodl.MoTagManager opId=########-de12-41e6-83ed-############ IS] Attached 1 tags to 1 objects
[dataservice-0 [] ERROR com.vmware.cis.core.tagging.vmodl.MoTagManager opId=########-873e-4743-96e0-############ IS] Failed to bulk attach tags
com.vmware.cis.core.tagging.exception.InvalidTagAssociationException: Tagging cardinality violation
at com.vmware.cis.core.tagging.internal.impl.TagAssociationManagerImpl.attach(TagAssociationManagerImpl.java:185) ~[inventory-server.jar:?]
at com.vmware.cis.core.tagging.vmodl.MoTagManager.bulkAttachTags(MoTagManager.java:365) [inventory-server.jar:?]
at sun.reflect.GeneratedMethodAccessor905.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_345]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_345]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor.invokeUnderTrace(JamonPerformanceMonitorInterceptor.java:115) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:132) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.3.22.jar:5.3.22]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215) [spring-aop-5.3.22.jar:5.3.22]
at com.sun.proxy.$Proxy109.bulkAttachTags(Unknown Source) [?:?]
at sun.reflect.GeneratedMethodAccessor905.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_345]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_345]
at com.vmware.vim.vmomi.server.impl.InvocationTask.run(InvocationTask.java:91) [vlsi-server.jar:?]
at com.vmware.vim.vmomi.server.common.impl.RunnableWrapper$1.run(RunnableWrapper.java:47) [vlsi-server.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_345]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_345]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_345]
[tomcat-exec-266 [] INFO com.vmware.cis.core.tagging.internal.impl.TagAssociationManagerImpl opId=] Received 1 vm tag associations
 



Environment

VMware vCenter Server

Cause

  • Tagging configuration for the 'Tags Per Object' is selected as 'One tag' instead of 'Many tags
  • After upgrading the vCenter Server it might lose the configuration causing the error.

Resolution

To resolve the issue Change the Tags Per Object value from 'One tag' to 'Many tags' following the below instructions:

  1. Login  to vCenter using administrator credentials.
  2. go to the Tags and custom attributes tab.
  1.  Click on Tags, then click on Categories.

  1. Select the category of the Tag you are having issues with and Click on Edit. 
  2. Change  the Tags Per Object value from One tag to Many tags.



Additional Information