Power of Two constraints on a custom sized VM. The following validation error is displayed in Operations (Ops) Manager UI.
In the past, we specified that all VMs required having CPU counts that conformed to a power of two constraints (The validation is enforcing a power of 2 for CPU so 1,2,4,8,16):
This constraint existed because of a quirk that was needed to support vSphere 4.0. Since we no longer support that version of vSphere, the constraint is no longer needed. Future versions of the product have removed it, but this KB explains how to remove it in older versions of Ops Manager manually.
This article applies to Follow the steps below within the Elastic Runtime Tile of Ops Manager:
name: cf product_version: 1.7.64-build.2 minimum_version_for_upgrade: 1.6.9-build.0 label: Pivotal Elastic Runtime
power_of_two
entry from which ever component section that you require to change. (Note: By setting the power_of_two
value to false
will not work, you need to remove the power_of_two
entry and save the file.)For example, If you wanted to remove power_of_two
value from Diego BBS VM, you would run the following steps:
name: cpu type: integer default: 1 configurable: true constraints: min: 1 power_of_two: true
We have removed this constraint in the following ERT versions (You will not need to run the above steps)
Please refer to the following KB article on how to create custom VMTYPE
How To Create or Remove Custom VM_TYPE Template using the Ops Manager API