How to Manually Generate and Collect a vIDB Cluster Log Bundle
search cancel

How to Manually Generate and Collect a vIDB Cluster Log Bundle

book

Article ID: 428974

calendar_today

Updated On:

Products

VCF Operations VMware vSphere ESXi

Issue/Introduction

If the vIDB cluster log bundle cannot be generated or downloaded, but is necessary for the investigation the manual steps in the Resolution below can be followed:

Example of when this may be necessary:

  • vIDB update failure.
  • vIDB communication with the Fleet is disconnected and unable to use Fleet Management to create/download.

Environment

VCF Operations 9.x

VIDB 9.x

Resolution

  1. Connect to Control Plane
    • From VCF Ops/Build/Lifecycle/Components, select VCF Services Runtime
    • Note the Control plane IP 
    • ssh with vmware-system-user@<control-plane_external-ip>
      sudo su 
      export KUBECONFIG=/etc/kubernetes/admin.conf
  2. Generate Log Bundle
    • K8S_TOKEN=$(kubectl get secrets synthetic-checker-krp -n vmsp-platform -ojsonpath={.data.token} | base64 -d)
      curl -k -XPOST -H "Authorization: Bearer ${K8S_TOKEN}" https://<control-plane_External-ip>:30005/webhooks/vmsp-platform/supportbundle/generate -d '{"component": "vidb"}' | jq 
      • Example output: 
          % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                         Dload  Upload  Total   Spent   Left   Speed
        100    155 100    134 100     21   1447    226                              0
        {
          "statusCode": 200,
          "running": true,
          "id": "sw765h",
          "statusURI": "/webhooks/vmsp-platform/supportbundle/generate/sw765h",
          "completedAt": null
        }

        Note: note the id from the output above: sw765h as the id will be used in the next command

    • curl -k -XGET -H "Authorization: Bearer ${K8S_TOKEN}" https://<control-plane_External-ip>:30005/webhooks/vmsp-platform/supportbundle/generate/<id> | jq

      Note: Replace the <control-plane_External-ip> with an actual control-plane_External-ip and <id> with the id from the previous step

      • Example output: 
        task in progress
        
          % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                         Dload  Upload  Total   Spent   Left   Speed
        100    134 100    134   0      0   3839      0                              0
        {
          "statusCode": 200,
          "running": true,
          "id": "sw765h",
          "statusURI": "/webhooks/vmsp-platform/supportbundle/generate/sw765h",
          "completedAt": null
        }
    • Wait 5/10 minutes and re-run the command again 
      • curl -k -XGET -H "Authorization: Bearer ${K8S_TOKEN}" https://<control-plane_External-ip>:30005/webhooks/vmsp-platform/supportbundle/generate/<id> | jq

        Note: Replace the <control-plane_External-ip> with an actual control-plane_External-ip and <id> with the id from the previous step

      • Example output: 
         % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                         Dload  Upload  Total   Spent   Left   Speed
        100   4449   0   4449   0      0  81831      0                              0
        {
          "statusCode": 200,
          "output": "########## INFO generate-bundle 11  COMPONENT:          vidb\n########## INFO generate-bundle 11  SERVICE_NAME_REGEX: *\n2026-09-16T08:41:58.158392336Z INFO generate-bundle 11  SKIP_HEAP_DUMP:     false\n########## INFO generate-bundle 11  DURATION:           2\nsupportbundle.support.vmsp.##########/1789548118 created\n########## INFO generate-bundle 11 HOOK_VALUES_URL or status is not set. Output will not be updated.\n########## INFO generate-bundle 11 Updated the status of the support bundle task to {\n  \"message\": \"\",\n  \"status\": {\n    \"message\": \"Requested a new support bundle\"\n  }\n}\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 Support bundle request has not completed yet. retrying in 10s\n########## INFO generate-bundle 11 The support bundle request has completed successfully\n########## INFO generate-bundle 11 Updated the status of the support bundle task to {\n  \"message\": \"\",\n  \"status\": {\n    \"success\": true,\n    \"message\": \"Successful\"\n  },\n  \"download_url\": \"https://vsp.###.###/api/v1/signed-support-bundles/vcf-bundle-1789548118.tgz?expires=##########&sig=####################\",\n  \"expires_at\": \"##########\"\n}\n\nreal\t3m53.343s\nuser\t0m3.039s\nsys\t0m2.129s\n",
          "running": false,
          "outputValues": {
            "download_url": "https://vsp.##########/api/v1/signed-support-bundles/vcf-bundle-1789548118.tgz?expires=2026-09-16T124549Z&sig=be47214decff810d414b7817ab7d6a4e8a26283d3c822f0049e39354fb859c86",
            "expires_at": "##########",
            "message": "",
            "status": {
              "message": "Successful",
              "success": true
            }
          },
          "id": "sw765h",
          "completedAt": "##########"
        
  3. You can download if from download_url