You might face the problem with
om upload-stemcell CLI during upgrade to use Jammy stemcell instead of ubuntu-xenial on Openstack and getting the error like the following
{"errors":["File is invalid","The uploaded stemcell is for a different infrastructure"]}
Also could see below error on Ops Manger UI.
Cause:Ops Manager checks the filename for stemcells being uploaded. If they do not match the exact format used on bosh.io and Tanzu Network, then it will reject the upload with an error "The uploaded stemcell is for a different infrastructure".
This is normally only a problem if the stemcell file is explicitly renamed. However, for Jammy, the default file name was changed by removing -raw
at the end. This is a required portion of the current regex pattern and thus any attempts to upload Openstack Jammy stemcells will fail.