Error while uploading stemcells: "No valid clusters were provided"
search cancel

Error while uploading stemcells: "No valid clusters were provided"

book

Article ID: 293716

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When trying to upload a stemcell, the following error is reported:
{"time":1593176554,"stage":"Update stemcell","tags":[],"total":8,"task":"Uploading stemcell bosh-vsphere-esxi-ubuntu-xenial-go_agent/621.75 to the cloud (cpi: e1d864d087ad9bc9fc4b)","index":7,"state":"started","progress":0}
{"time":1593176572,"stage":"Update stemcell","tags":[],"total":8,"task":"Uploading stemcell bosh-vsphere-esxi-ubuntu-xenial-go_agent/621.75 to the cloud (cpi: e1d864d087ad9bc9fc4b)","index":7,"state":"failed","progress":100,"data":{"error":"CPI error ''Bosh::Clouds::CloudError'' with message ''No valid clusters were provided'' in ''create_stemcell'' CPI method (CPI request ID: ''cpi-368239'')"}}
The CPI referred to on the error is listed under bosh cloud-config output.
When running bosh cpi-config, the CPI reporting the error is listed with clusters parameters in blank:
name: e1d864d087ad9bc9fc4b
properties:
datacenters:
allow_mixed_datastores: true
clusters: []
(...)


Environment

Product Version: 2.9

Resolution

This is caused by a vCenter configuration that has no AZ/networks associated with it.

It could be that a configuration was created but no AZ/network were assigned, or that an existing configuration was edited and these information was removed from it.

There is no check on Ops Manager to verify this, so Apply changes would run successfully. However when trying to upload a stemcell it will fail with the above error.

The workaround is to either remove the orphan vCenter configuration, or assign any AZ to it.