Modifying the Org VDC Distributed Firewall fails with java.lang.NullPointerException: uuid



UI Error:


java.lang.NullPointerException: uuid


Error in the logs:


2018-11-01 11:33:55,446 | DEBUG | pool-jetty-81 | ExceptionHandlerAdvice | Handling unmapped exception | requestId=8aeb2135-78a0-447f-901f-aa46c02b13ad,request=PUT https://cloudcom/network/firewall/globalroot-0/config/layer3sections/ce30a14f-8703-4aeb-a444-e17e81a4b402,requestTime=1541025233061,remoteAddress=10.10.10.200:35941,userAgent=Mozilla/5.0 (Macintosh; Intel Mac O

S X 10_14_0) AppleWebKit/5...,accept=application/xml
java.lang.NullPointerException: uuid
        at com.vmware.vcloud.common.model.BaseObjectId.from(BaseObjectId.java:103)
        at com.vmware.ssdc.backend.services.impl.VmManagerImpl.getVAppVmModel(VmManagerImpl.java:526)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
        at com.sun.proxy.$Proxy284.getVAppVmModel(Unknown Source)
        at com.vmware.vcloud.networking.model.translator.NetworkObjectTranslator.vmNsxToVcd(NetworkObjectTranslator.java:92)
        at com.vmware.vcloud.networking.model.dfw.DfwConverter.vcdValue(DfwConverter.java:158)
        at com.vmware.vcloud.networking.model.dfw.DfwConverter.withTranslatedValues(DfwConverter.java:140)


Cause :


This happens when the VMs part of the distributed firewall has a missing cloud_uuid in the vCloud director database.


Fix :


Note : Always take a snapshot prior to making any changes in database.


  1. Check the "vm_inv" table in the vCD database to find the cloud_uuid 
  2. Update the same to "vm" table to resolve the issue

Example :

  1. - Select * from vm_inv where name like '%Enter_the_VMname_here%';
  2. - Make a note of the cloud.uuid and moref for the VM
  3. - Update vm set cloud_uuid = ''Paste_Cloud_UUID_here" where moref = ''Paste_Moref_here';





Comments

Popular posts from this blog

vCloud director 9.7 appliance deployment step by step guide

How to Install and Uninstall Guest agent for vRA Windows machines

Unable to change Provider VDC virtual hardware support beyond version 10