When attempting to upload a heavy stemcell to an AWS foundation via Tanzu Operations Manager, the create_stemcell CPI operation fails with the following error:
CPI 'create_stemcell' method responded with error:
CmdError{
"type":"Bosh::Clouds::CloudError",
"message":"Unable to copy stemcell root image:
command 'sudo -n /usr/local/bin/stemcell-copy
<tmp-path>/image
/dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_<vol-id> 2>&1'
failed with exit code 1
Script output:
sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/libexec/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins",
"ok_to_retry":false
}
IaaS: AWS
Product: Tanzu Operations Manager (all versions)
AWS stemcells are distributed in two formats:
Ops Manager supports heavy stemcells for all VMs except the BOSH Director VM. This is an incompatibility and cannot be resolved by modifying file permissions on the Ops Manager VM.
The workaround is to bypass the stemcell-copy operation entirely by pre-importing the raw disk image into your AWS account as an AMI, then constructing a custom light stemcell manifest that references that AMI directly. The BOSH Director will use the AMI ID from the manifest and never invoke stemcell-copy.