Pivotal Knowledge Base

Follow

BOSH command shows error "The object[s] '<[Vim.VirtualMachine] vm-5521>' should have the following properties: ["snapshot"]"

Environment

Product Version
Pivotal Cloud Foundry® (PCF) 1.6 and 1.7

Symptom

When running a BOSH command, for example "bosh deploy" or "bosh vms", you see output like the following:

Started creating bound missing vms
Started creating bound missing vms > nfs_server-partition-7de780fa633485ce031d/0
Started creating bound missing vms > router-partition-7de780fa633485ce031d/0
Started creating bound missing vms > mysql_proxy-partition-7de780fa633485ce031d/0
Started creating bound missing vms > ccdb-partition-7de780fa633485ce031d/0
Started creating bound missing vms > uaadb-partition-7de780fa633485ce031d/0
Started creating bound missing vms > consoledb-partition-7de780fa633485ce031d/0
Done creating bound missing vms > ccdb-partition-7de780fa633485ce031d/0 (00:00:42)
Done creating bound missing vms > consoledb-partition-7de780fa633485ce031d/0 (00:00:47)
Done creating bound missing vms > router-partition-7de780fa633485ce031d/0 (00:00:47)
Failed creating bound missing vms > mysql_proxy-partition-7de780fa633485ce031d/0: The object[s] '<[Vim.VirtualMachine] vm-5521>' should have the following properties: ["snapshot"]
, but they were missing these: #<Set: {"snapshot"}>
. (00:04:26)
Failed creating bound missing vms > uaadb-partition-7de780fa633485ce031d/0: The object[s] '<[Vim.VirtualMachine] vm-5521>' should have the following properties: ["snapshot"]
, but they were missing these: #<Set: {"snapshot"}>
. (00:04:26)
Failed creating bound missing vms > nfs_server-partition-7de780fa633485ce031d/0: The object[s] '<[Vim.VirtualMachine] vm-5473>' should have the following properties: ["snapshot"]
, but they were missing these: #<Set: {"snapshot"}>

Notice that The object[s] '<[Vim.VirtualMachine] vm-5521>' should have the following properties: ["snapshot"], but they were missing these: #<Set: {"snapshot"}> Error here. These were observed when running both "bosh deploy" or "bosh vms" in this environment.

Resolution 

The resolution to this problem is by doing the following:

1. Run "bosh deployments" to get the stemcell number for the cf-release bosh deployment.

2. Download that version of the stemcell from Pivotal Network.

3. Run "bosh upload stemcell <stemcell-location> --fix"

4. Run "bosh deploy", which then completed successfully without the "snapshot" issue.

Impact/Risk

NOTE: It's very important that when re-uploading the stemcell, you download the same version of the stemcell that was being used in the environment prior to these errors. If ever in doubt, running "bosh deployments" will tell you the stemcell version for each deployment that BOSH knows about.

 

Comments

Powered by Zendesk