Generating a log bundle from a failed VCF Automation & VCF Identity Broker component deployment
search cancel

Generating a log bundle from a failed VCF Automation & VCF Identity Broker component deployment

book

Article ID: 394146

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • Generating a log bundle from a failed VCF Automation & VCF Identity Broker component deployment.
  • When the deployment of a component fails, specifically VCF Automation and VCF Identity Broker, we do not have the option to generate a log bundle from the UI, as the component is not registered yet.

Environment

  • VCF Automation 9.x
  • VCF Operations 9.x
  • VCF Identity Broker 9.x

Resolution

When the VCFA / VIDB install flow successfully completes the VMSP deployment step but encounters a failure during the VCFA / VIDB product deployment

To get the download URL for a successfully deployed environment, rather than relying on the LCM UI.

Note: Before making any changes to the setup, this API should be used for any component deployment failure, such as:

  1. Powering off or deleting the VMSP VM nodes
  2. Reusing the same IP and configurations for other deployments
  3. Retrying the same failed environment flow


API to generate log bundle for failed environment: 

curl -X POST "https://<fleet-mgmt-appliance-fqdn>/lcm/lcops/api/environments/<environmentId>/products/<productId>/logs/bundle/failed?duration=2" -H "accept: application/json" -d ""

  • Fleet-management-appliance FQDN is needed
  • Capture the environment id from the URL
  • Product ID refers to VCFA for VCF Automation & VIDB for VCF Identity Broker

Sample Output:


"resultSet": "[{\"vmid\":\"<vmid_UUID>\",\"transactionId\":null,\"tenant\":\"default\",\"sourceOfTheRequest\":\"<Request_UUID>\",\"resultKey\":\"downloadUrl \",\"resultType\":\"java.lang.String\",\"resultText\":\"\\\"https://##.##.##.##/supportbundles/vidb-bundle-20250128T091346Z-20250130T091347Z-15820.tar.gz\\\"\",\"eventId\":\"<EventId_UUID>\",\"machineInstanceId\":\"<machineInstanceId_UUID>\"}]",

To download the bundle from Fleet Manager:

curl -k -u 'lcmadminuser:adminpassword' -X GET "https://<fleet-mgmt-appliance-fqdn>/lcm/lcops/api/environments/<environmentId>/products/<productId>/logs/bundle/download?downloadUrl=https://##.##.##.##/supportbundles/vidb-bundle-20250128T091346Z-20250130T091347Z-15820.tar.gz" -H "accept: */*" -o <outputPath ex:vidb-bundle-20250128T091346Z-20250130T091347Z-15820.tar.gz>