Ops Manager fails when trying to create the BOSH Director VM because snapshot is missing from the vSphere stemcell
search cancel

Ops Manager fails when trying to create the BOSH Director VM because snapshot is missing from the vSphere stemcell

book

Article ID: 293857

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Ops Manager fails when trying to create the BOSH Director VM and 'create_vm' method responds with an error:
Creating instance 'bosh/0':
   Creating VM:
     Creating vm with stemcell cid 'sc-c4aa1f11-b4ca-5001-9e53-a9acf5eed70d':
       CPI 'create_vm' method responded with error: CmdError{"type":"Unknown","message":"The object[s] '\u003c[Vim.VirtualMachine] vm-123\u003e' should have the following properties: [\"snapshot\", \"datastore\"]\n, but they were missing these: #\u003cSet: {\"snapshot\"}\u003e\n.","ok_to_retry":false}
Exit code 1


Any stemcell that is uploaded by Ops Manager or BOSH Director has a snapshot called "initial". This snapshot is used when creating a new VM. If the snapshot has been deleted or an additional snapshot has been created, the clone operation fails.


Environment

Product Version: 2.10

Resolution

When a stemcell is uploaded by Ops Manager or BOSH Director, a snapshot called "initial" is created. This snapshot is used when creating a new VM.

If this snapshot has been deleted or an additional snapshot has been created, the clone operation fails.

To force Ops Manager to re-upload a stemcell and restart this process, follow these steps:

1. SSH the Ops Manager VM.

2. Back up the file, bosh-state.json:
sudo cp /var/tempest/workspaces/default/deployments/bosh-state.json /var/tempest/workspaces/default/deployments/bosh-state.json.backup


3. Edit the file, bosh-state.json, and locate the "stemcell": [] properties, then remove any lines between the square bracket.

4. Save the file and Apply Changes against the BOSH Director tile through the Ops Manager GUI.