Creating DRS rules failing on VSphere


Eoin McCarthy
 

Hi,

I'm trying to run a deployment on VMWare using VM anti-affinity rules to
put VMs on separate hosts.

This is how I've defined my resource pool in the manifest:

- name: haproxy-nodes
network: default
stemcell:
name: bosh-vsphere-logmet-ubuntu-trusty-go_agent
version: '0003'
cloud_properties:
bosh_ip: 192.168.247.2
cpu: 2
ram: 8192
disk: 35000
datacenters:
- name: Rack-XXXX_YYYY
clusters:
- Cluster_CG:
resource_pool: Cluster_RP
drs_rules:
- name: separate-haproxy-nodes-rule
type: separate_vms


When I try to deploy this I get the following error:

eoin(a)boshcli:bosh$ bosh -n deploy --recreate
Acting as user 'eoin' on deployment 'deploy-emc' on
'microbosh-vmware-local-sby-pure'
Getting deployment properties from director...

Deploying
---------

Director task 52971
Started unknown
Started unknown > Binding deployment. Done (00:00:00)

Started preparing deployment
Started preparing deployment > Binding releases. Done (00:00:00)
Started preparing deployment > Binding existing deployment. Done
(00:00:00)
Started preparing deployment > Binding resource pools. Done (00:00:00)
Started preparing deployment > Binding stemcells. Done (00:00:00)
Started preparing deployment > Binding templates. Done (00:00:00)
Started preparing deployment > Binding properties. Done (00:00:00)
Started preparing deployment > Binding unallocated VMs. Done (00:00:00)
Started preparing deployment > Binding instance networks. Done (00:00:00)

Started preparing package compilation > Finding packages to compile. Done
(00:00:00)

Started preparing dns > Binding DNS. Done (00:00:00)

Started creating bound missing vms
Started creating bound missing vms > haproxy-nodes/0
Started creating bound missing vms > haproxy-nodes/1
Failed creating bound missing vms > haproxy-nodes/0: uninitialized
constant VSphereCloud::DrsRule (00:00:12)
Failed creating bound missing vms > haproxy-nodes/1: uninitialized
constant VSphereCloud::DrsRule (00:00:23)
Failed creating bound missing vms (00:00:23)

Error 100: uninitialized constant VSphereCloud::DrsRule

Task 52971 error

For a more detailed error report, run: bosh task 52971 --debug

This is the output of "bosh status":

eoin(a)pappguest247:~/op-services-deploy/logmet/bosh$ bosh status
Config
/home/eoin/.bosh_config

Director
Name microbosh-vmware-local-sby-pure
URL https://192.168.247.2:25555
Version 1.3100.0 (00000000)
User eoin
UUID 9d303071-0e1e-45b2-8945-71743b8e03ee
CPI vsphere
dns enabled (domain_name: microbosh)
compiled_package_cache disabled
snapshots disabled

Deployment
Manifest /home/eoin/bosh/manifest_emc.yml


Is this an issue with my manifest format or a bosh issue?

Thanks,

Eoin McCarthy

Join {cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.