Capabilities download workflow warehouse-release-download-################################-stemcells-ubuntu-jammy-1.1065 has unexpected status FAILED" is returned during the attach workflow in Tanzu HUB GUI.Tanzu Hub 10.4 air-gapped.
This occurs because the cf download-content command downloads the files with the display name, but the attach workflow expects the Stemcell file to be file name. This leads to a mismatch and the reported failure during the attach workflow.
To work around this condition in environments where the Stemcell has already been downloaded, you have to rename the location reference after download in the download-content-result.yml file as well as the actual downloaded file, then delete the incorrectly named file from Hub and re-upload with the correct name.
# cp download-content-result.yml old_download-content-result.yml# vi download-content-result.ymllocation line to: products/stemcells-ubuntu-jammy/1.1065/bosh-stemcell-1.1065-vsphere-esxi-ubuntu-jammy-go_agent.tgzproducts/stemcells-ubuntu-jammy/1.1065/'Ubuntu Jammy Stemcell for vSphere 1.1065' products/stemcells-ubuntu-jammy/1.1065/bosh-stemcell-1.1065-vsphere-esxi-ubuntu-jammy-go_agent.tgzhttps://<HUB_FQDN>/hub/altair (use this KB on how to access if needed).download-content-result.yml file you used to manually download the Stemcell), then use the resulting document ID in the delete query to delete the document:query QueryDocument { documentQuery { queryDocuments( category: BUILD_ARTIFACTS entityIds: "vrn/provider:Tanzu/origin:Platform/ReleaseFile:<FILE_ID_FROM_download-content-result.yml>" ) { count totalCount documents { id name state type } } }}mutation deleteDocument { documentMutation { deleteDocuments(documentIds: "<DOCUMENT_ID_FROM_FIRST_QueryDocument_QUERY>") }}
231481 in the download-content-result.yml file:downloads:- slug: stemcells-ubuntu-jammy result: SUCCESS releases: - version: "1.1065" id: 540267 files: - id: 231481 location: products/stemcells-ubuntu-jammy/1.1065/bosh-stemcell-1.1065-vsphere-esxi-ubuntu-jammy-go_agent.tgz checksumSha256: 8752a0d2458c6eeff41ad999d8574cd580dffbblddd204cb00529b3cb5489fde hubDocumentServiceTtlSeconds: 2628000 hubDocumentServiceDocumentCategory: BUILD_ARTIFACTS
# ./cf upload-content --metadata download-content-result.yml
These steps will allow the Stemcell download step to be skipped during the foundations attach workflow in Tanzu Hub specifically in air-gapped environments.