Password remediation fails for NSX nodes in VMware Cloud Foundation SDDC Manager
search cancel

Password remediation fails for NSX nodes in VMware Cloud Foundation SDDC Manager

book

Article ID: 430326

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware NSX VMware Cloud Foundation

Issue/Introduction

When attempting to remediate or update passwords for an NSX node (such as an Edge Node or Manager Node) within the SDDC Manager interface, the password operation fails for the root, admin, or audit users.

Error: 

Description: Password remediate for resource: xxxxx: audit and credential type: AUDIT

Progress Messages: Failed executing command in VM.

Message: Failed executing command in VM.
Remediation Message:
Reference Token: xxxxxx
Cause: Failed to validate (vim.vm.guest.NamePasswordAuthentication) (
dynamicType = null, dynamicProperty = null, interactiveSession = false.
username = audit, password = (not shown) ) credentials on xxxxx.
error: Failed to authenticate with the guest operating system using the supplied credentials.

The following behaviors and symptoms are observed:

  • SDDC Manager password task reports a failure with an execution error during credential rotation.

  • In operationsmanager.log, error traces demonstrate an invalid guest login event during download routines or password validity testing.

Log signatures within /var/log/vmware/vcf/operaionmanager/operationsmanager.log:

YYYY:MM:DDTHH:MM:SS.345+0000 ERROR [vcf_om,69956701ef9cf0460fa63147050b85c0,be2a] [c.v.v.p.u.c.AbstractPasswordChanger,om-exec-7] Failed to validate (vim.vm.guest.NamePasswordAuthentication) {
   dynamicType = null,
   dynamicProperty = null,
   interactiveSession = false,
   username = root,
   password = (not shown)
} credentials on <hostname>, error: Failed to authenticate with the guest operating system using the supplied credentials.
com.vmware.vcf.passwordmanager.exception.PasswordUpdateException: Failed to validate (vim.vm.guest.NamePasswordAuthentication) {
   dynamicType = null,
   dynamicProperty = null,
   interactiveSession = false,
   username = root,
   password = (not shown)
} credentials on <hostname>, error: Failed to authenticate with the guest operating system using the supplied credentials.
.

.

YYYY-MM-DDTHH:MM:SS.489+0000 ERROR [vcf_om,691ca62d38a15d375f0c8b864f826ad9,f1d1] [c.v.v.p.v.u.CredentialsValidationTaskExecutor,om-exec-2] Error occurred in
 validation tasks: com.vmware.vcf.passwordmanager.exception.Fault: Failed executing command in VM.
java.util.concurrent.ExecutionException: com.vmware.vcf.passwordmanager.exception.Fault: Failed executing command in VM.
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at com.vmware.vcf.passwordmanager.validation.utils.CredentialsValidationTaskExecutor$1.call(CredentialsValidationTaskExecutor.java:133)
        at com.vmware.vcf.passwordmanager.validation.utils.CredentialsValidationTaskExecutor$1.call(CredentialsValidationTaskExecutor.java:84)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at com.vmware.vcf.common.tracing.TraceRunnable.run(TraceRunnable.java:59)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: com.vmware.vcf.passwordmanager.exception.Fault: Failed download /etc/passwd in VM with FQDN <hostname>, error: Failed to authenticate with the guest operating system using the supplied credentials.
        at com.vmware.vcf.passwordmanager.helper.GuestProgramService.download(GuestProgramService.java:296)
        at com.vmware.vcf.passwordmanager.update.changers.NsxtEdgeChanger.validatePassword(NsxtEdgeChanger.java:145)
        at com.vmware.vcf.passwordmanager.update.changers.NsxtEdgeChanger.doTest(NsxtEdgeChanger.java:111)
        at com.vmware.vcf.passwordmanager.service.PasswordValidationService.testPasswordValidity(PasswordValidationService.java:644)
        at com.vmware.vcf.passwordmanager.service.PasswordValidationService.validatePasswordForEntity(PasswordValidationService.java:453)
        at jdk.internal.reflect.GeneratedMethodAccessor1187.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:702)
        at com.vmware.vcf.passwordmanager.service.PasswordValidationService$$SpringCGLIB$$0.validatePasswordForEntity(<generated>)
        at com.vmware.vcf.passwordmanager.validation.utils.CredentialsValidationTaskExecutor$2.call(CredentialsValidationTaskExecutor.java:295)
        at com.vmware.vcf.passwordmanager.validation.utils.CredentialsValidationTaskExecutor$2.call(CredentialsValidationTaskExecutor.java:290)
        ... 5 common frames omitted
Caused by: com.vmware.vim.binding.vim.fault.InvalidGuestLogin: Failed to authenticate with the guest operating system using the supplied credentials.

 

Environment

SDDC Manager Version 5.x

VMware NSX

Cause

This issue occurs when the root user credentials on the target NSX node become out of sync with the database repository inside SDDC Manager. SDDC Manager requires successful guest authentication as the root identity to manipulate the local /etc/passwd state machine and rotate auxiliary accounts like admin and audit. If the root credential is updated out-of-band via standard CLI commands (such as passwd), the automated orchestration module fails with an InvalidGuestLogin exception.

Resolution

  • Log in to the SDDC Manager appliance via SSH and retrieve the currently stored password for the target NSX Edge node by executing the lookup_passwords command following document: Use the SDDC Manager Appliance to Look Up Account Credentials

  • Log in directly to the target NSX Edge node as the root user. Set the same ROOT password(VMware123!) on the EDGE node following KB: NSX Edge Nodes or Managers Disconnected in SDDC Password Management

  • Once the local OS password matches the value found within the SDDC Manager database platform, navigate to the Password Management screen in the SDDC Manager dashboard.

  • Select the target NSX Edge node component layer, click Update, and enter a new secure password string for the root account to allow the automated orchestrator to synchronize successfully.

  • After the root password update operation completes successfully, follow this exact synchronization process for the admin and audit users if their credentials are out of sync.

Additional Information

For detailed guidance on recovering disconnected target node passwords, see NSX Edge nodes disconnected in password management.