Each stemcell is uniquely identified by its name and version. Currently stemcell versions are in MAJOR.MINOR format. Major version is incremented when new features are added to stemcells (or any components that stemcells typically include such as BOSH Agent). Minor versions are incremented if certain security fixes and/or features are backported on top of existing stemcell line. We recommend to continiously bump to the latest major stemcell version to receive latest updates.
You can identify stemcell version from inside the VM via following files:
Release authors should not use the contents of these files in their releases.
See Stemcell Building to find stemcell archive structure.
Fixing corrupted stemcells¶
Occasionally stemcells are deleted from the IaaS outside of the Director. For example your vSphere administrator decided to clean up your vSphere VMs folder. The Director of course will continue to reference deleted IaaS asset and CPI will eventually raise an error when trying to create new VM.
bosh upload-stemcell command provides a
--fix flag which allows to reupload stemcell with the same name and version into the Director fixing this problem.