{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1436","repository_url":"https://api.github.com/repos/cloudfoundry/bosh","labels_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1436/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1436/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1436/events","html_url":"https://github.com/cloudfoundry/bosh/issues/1436","id":176621499,"number":1436,"title":"bosh-init deploy vCloud error","user":{"login":"Prospecta","id":10975058,"avatar_url":"https://avatars.githubusercontent.com/u/10975058?v=3","gravatar_id":"","url":"https://api.github.com/users/Prospecta","html_url":"https://github.com/Prospecta","followers_url":"https://api.github.com/users/Prospecta/followers","following_url":"https://api.github.com/users/Prospecta/following{/other_user}","gists_url":"https://api.github.com/users/Prospecta/gists{/gist_id}","starred_url":"https://api.github.com/users/Prospecta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prospecta/subscriptions","organizations_url":"https://api.github.com/users/Prospecta/orgs","repos_url":"https://api.github.com/users/Prospecta/repos","events_url":"https://api.github.com/users/Prospecta/events{/privacy}","received_events_url":"https://api.github.com/users/Prospecta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T11:59:29Z","updated_at":"2016-09-14T08:56:24Z","closed_at":null,"body":"Hi,\r\n\r\nI am encountering an error when attempting to run the bosh-init deploy script on vCloud (not vCloud Air).  \r\n\r\nThe job fails when attempting to create the vm:\r\n\r\n------------------------------\r\n\r\nCommand 'deploy' failed:\r\n  Deploying:\r\n    Creating instance 'bosh/0':\r\n      Creating VM:\r\n        Creating vm with stemcell cid 'urn:vcloud:catalogitem:decd3c65-5dde-47ae-836e-100199cdae0d':\r\n          CPI 'create_vm' method responded with error: CmdError{\"type\":\"Unknown\",\"message\":\"Task urn:vcloud:task:14f18678-7d9a-4046-a1aa-d708c8058be0 Updated Virtual Machine 3b6b2f67-572c-44c4-74d4-a80b28887836(be1c153c-6e01-46b3-81c5-018ec2c26c10) completed unsuccessfully, Details:  [ 01b88b27-f995-41dd-b39e-c2d498b808fb-3776 ] Unable to perform this action. Contact your cloud admi...\",\"ok_to_retry\":false}\r\n\r\n------------------------------\r\n\r\nand vCloud returns the error:\r\n\r\n------------------------------\r\n\r\ncom.vmware.ssdc.library.exceptions.DatastoreNotAvailableException: null\r\n\tat com.vmware.vcloud.fabric.storage.placement.sdrs.impl.SdrsPlacementManagerImpl.processSdrsResults(SdrsPlacementManagerImpl.java:1040)\r\n\tat com.vmware.vcloud.fabric.storage.placement.sdrs.impl.SdrsPlacementManagerImpl.selectDatastoreInStoragePod(SdrsPlacementManagerImpl.java:213)\r\n\tat com.vmware.vcloud.fabric.storage.placement.impl.VirtualMachineDiskLevelStorageSelectorImpl.selectDatastore(VirtualMachineDiskLevelStorageSelectorImpl.java:369)\r\n\tat com.vmware.vcloud.fabric.storage.storedVm.impl.RelocateStoredVmByStorageClassActivity$CalculateTargetDatastorePhase.invoke(RelocateStoredVmByStorageClassActivity.java:138)\r\n\tat com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:156)\r\n\tat com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:118)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n------------------------------\r\n\r\nThe vClouderror reports that the datastore is not available when in fact there is a valid datastore available for the deployment which has no issues when creating a vm manually via vCloud Director.  The stemcell is also uploaded to the datastore with no issues.\r\n\r\nWe had previously deployed Cloud Foundry v182 including Bosh with no trouble on vCloud but now struggle with the latest releases (bosh v257.9 & vCloud CPI v24).  We have attempted to use both the latest vCloud and vSphere stemcells (v3262.12) with no luck.\r\n\r\nFor reference, below is the vcd section of the bosh.yml:\r\n\r\n-----------------------------\r\n\r\n    vcd: &vcd # <--- Replace values below\r\n      url: https://*******************\r\n      user: **********\r\n      password: ************\r\n      entities:\r\n        organization: Cloud-Foundry\r\n        virtual_datacenter: Cloud-Foundry-VDC\r\n        vapp_catalog: cf-catalog-bosh\r\n        media_catalog: cf-catalog-bosh\r\n        media_storage_profile: '*'\r\n        vm_metadata_key: bosh-meta\r\n      control: {wait_max: 900}\r\n\r\n-------------------------------\r\n\r\nAny ideas what could be causing the issue?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/comments/246948885","html_url":"https://github.com/cloudfoundry/bosh/issues/1436#issuecomment-246948885","issue_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/1436","id":246948885,"user":{"login":"poblin-orange","id":5381793,"avatar_url":"https://avatars.githubusercontent.com/u/5381793?v=3","gravatar_id":"","url":"https://api.github.com/users/poblin-orange","html_url":"https://github.com/poblin-orange","followers_url":"https://api.github.com/users/poblin-orange/followers","following_url":"https://api.github.com/users/poblin-orange/following{/other_user}","gists_url":"https://api.github.com/users/poblin-orange/gists{/gist_id}","starred_url":"https://api.github.com/users/poblin-orange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poblin-orange/subscriptions","organizations_url":"https://api.github.com/users/poblin-orange/orgs","repos_url":"https://api.github.com/users/poblin-orange/repos","events_url":"https://api.github.com/users/poblin-orange/events{/privacy}","received_events_url":"https://api.github.com/users/poblin-orange/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T08:56:23Z","updated_at":"2016-09-14T08:56:23Z","body":"Hello,\r\nalso using vcloud with bosh (oldest version though)\r\nDid u try specifying the exact vapp_storage_profile, as found in vcloud director portal ?\r\nHere is our config :\r\n```\r\n    entities:\r\n      organization: Cube4PaasProd\r\n      virtual_datacenter: Apps-Dev\r\n      vapp_catalog: bosh\r\n      media_catalog: bosh\r\n      media_storage_profile: \"Standard Performances\"\r\n      vapp_storage_profile: \"Standard Performances\"\r\n      vm_metadata_key: cf-agent-env\r\n      description: vcd-cf\r\n```"}}
{"actor":{"display_login":"poblin-orange"}}