Unable to upload Jammy Stemcells in OpsMan Versions Prior to 2.10.33
search cancel

Unable to upload Jammy Stemcells in OpsMan Versions Prior to 2.10.33

book

Article ID: 293783

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When attempting to upload a Jammy Stemcell to OpsMan, you receive the following error:

Unable to upload stemcell: File is invalid.


The following additional information can be used to further confirm that the issue covered by this knowledge base article is occurring within a foundation.

On the OpsMan server, a message similar to the following can be seen in the /var/log/opsmanager/production.log file referencing the stemcell that was being uploaded:

I, [2023-05-10T07:38:43.807161 #827]  INFO -- : Started POST "/api/v0/stemcells" for 127.0.0.1 at 2023-05-10 07:38:43 +0000
I, [2023-05-10T07:38:43.808420 #827]  INFO -- : Processing by Api::V0::StemcellsController#create as */*
I, [2023-05-10T07:38:43.808489 #827]  INFO -- :   Parameters: {"stemcell"=>{"floating"=>"false", "file"=>{"path"=>"/var/tempest/tmp/0000000009", "original_filename"=>"bosh-stemcell-1.108-vsphere-esxi-ubuntu-jammy-go_agent.tgz"}}}
I, [2023-05-10T07:38:43.950840 #827]  INFO -- : Valid UAA token
I, [2023-05-10T07:38:44.299656 #827]  INFO -- : Completed 422 Unprocessable Entity in 491ms (Views: 0.3ms | ActiveRecord: 1.1ms)


A message with a corresponding timestamp should also be present in the /var/log/opsmanager/audit_log.txt (Formatted for readability, log entry will be a single line):

{
  "timestamp": "2023-05-10T07:38:44.298+00:00",
  "component": "Tanzu Ops Manager 2.10.24-build.360",
  "component_scheme": "https",
  "component_host": "component.example.com",
  "component_port": 443,
  "result": 422,
  "target": "/api/v0/stemcells",
  "event_type": "POST",
  "origination": "127.0.0.1",
  "forwarded_for": "172.172.172.172",
  "user_identification": "[email protected]",
  "uaa_authentication_mechanism": "external-saml-provider",
  "request_body": {},
  "reason": "{\"errors\":[\"File is invalid\",\"The uploaded stemcell is for a different infrastructure\"]}"
}

Environment

Product Version: 2.10

Cause

While the error message references an infrastructure mismatch, the core issue is that OpsMan versions prior to 2.10.33 do not support the use of Jammy stemcells.

Resolution

Upgrade to OpsMan version 2.10.33 or later prior to uploading Jammy stemcells for use.