Upload Openstack Jammy stemcell to Ops Manager failed with "The uploaded stemcell is for a different infrastructure"
search cancel

Upload Openstack Jammy stemcell to Ops Manager failed with "The uploaded stemcell is for a different infrastructure"

book

Article ID: 293833

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

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.
gui_import.png


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.
 


Environment

Product Version: 2.10

Resolution

As a workaround, please try renaming the file by adding -raw at the end. For example
bosh-stemcell-1.125-openstack-kvm-ubuntu-jammy-go_agent.tgz
to
bosh-stemcell-1.125-openstack-kvm-ubuntu-jammy-go_agent-raw.tgz
(note the additional -raw at the end)