Error: "I/O error on POST request" while attempting to delete NSX Edge Gateway
search cancel

Error: "I/O error on POST request" while attempting to delete NSX Edge Gateway

book

Article ID: 375920

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Unable to delete the edge gw.
  • The following error is observed:

    [ <request-id> ] I/O error on POST request for "https://nsx-alb.example.com//login": PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
     - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
     - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
     - unable to find valid certification path to requested target

Environment

Cloud Director 10.x

Cause

This issue can occur if there is a trailing forward slash (/) at the end of the NSX ALB url configuration in Cloud Director. During the edge deletion attempt an extra forward slash is appended which results in a double forward slash (//) in the name.

Resolution

To resolve this matter ensure there is not a trailing forward slash (/) at the end of the NSX ALB url configuration.

To validate this:

  1. Login to the Cloud Director provider portal.
  2. Navigate to "Infrastructure Resources" -> "NSX-ALB" -> "Controllers"
  3. Inspect the URL of the controller and remove the trailing forward slash from the end.