Failure to Add or Remove ESXi host from cluster using SDDC Manager UI
search cancel

Failure to Add or Remove ESXi host from cluster using SDDC Manager UI

book

Article ID: 398349

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

Symptoms:

  • In /var/log/vmware/vcf/domainmanager/domainmanager.2025-XX-XX.X.log:
    2025-XX-XXTXX:XX:XX.404+0000 WARN  [vcf_dm,1c99cffeec9745ab,8b02] [c.v.e.s.c.c.l.s.PasswordMasker,dm-exec-10]  Error occurred during masking json sensitive data
    java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.String java.lang.module.ModuleDescriptor.name accessible: module java.base does not "opens java.lang.module" to unnamed module @44c13103
    ...
     at com.vmware.evo.sddc.common.core.logging.security.PasswordMasker.dfsSearchForCyclicGraphFields(PasswordMasker.java:558)

Environment

VMware Cloud Foundation 4.x

Cause

In /etc/vmware/vcf/domainmanager/vcf-domain-manager.conf, it seems like the file is overwriting the environmental java_opts because we need to include the existing JAVA_OPTS environment variable and also wrap it in quotes.

For example, the value in the customer file is JAVA_OPTS=-Xmx1024m, but instead it should be JAVA_OPTS="${JAVA_OPTS} -Xmx1024m"

Resolution

  1. Take a snapshot of SDDC manager

  2. Check and delete the Environment=JAVA_OPTS= property to the file /etc/systemd/system/domainmanager.service if it's exist.

  3. Verify if the system wide java options exist by checking the contents of the file below. It should match or be similar to the file linked below: 
    cat /usr/lib/systemd/system.conf.d/01-java11-systemwide-java-options.conf

  4. Modify the file /etc/vmware/vcf/domainmanager/vcf-domain-manager.conf to wrap options in quotes and include the environment variable
    Replace the JAVA_OPTS=-Xmx1024m with JAVA_OPTS="${JAVA_OPTS} -Xmx1024m"

  5. Execute the commands to restart domain manager:
    systemctl daemon-reload
    systemctl restart domainmanager