Unable to assign more than one tag to a Virtual Machine
search cancel

Unable to assign more than one tag to a Virtual Machine

book

Article ID: 338636

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 7.0 VMware vCenter Server 8.0

Issue/Introduction

When assigning more than one tag to a virtual machine or a folder in the vCenter fails with the the below message:

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



In the /var/log/vmware/vpxd/vpxd.log you may see the following error:

[dataservice-5 [] INFO com.vmware.cis.server.util.VpxdEventGenerator opId=3cae7ada-de12-41e6-83ed-020e217e56eb 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-138746:f07b5782-afb3-4411-beb4-f43c2658bc22
[dataservice-5 [] INFO com.vmware.cis.core.tagging.vmodl.MoTagManager opId=3cae7ada-de12-41e6-83ed-020e217e56eb IS] Attached 1 tags to 1 objects
[dataservice-0 [] ERROR com.vmware.cis.core.tagging.vmodl.MoTagManager opId=9853867a-873e-4743-96e0-998e70c1e517 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 7.0.x
VMware vCenter Server 8.0.x

Cause

After upgrading the vCenter Server it might lose the tagging configuration for the Tags Per Object 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