Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Update user-guide - create VSAN storage policy command is incorrect #1133

Closed
ashahi1 opened this issue Mar 31, 2017 · 1 comment
Closed

Update user-guide - create VSAN storage policy command is incorrect #1133

ashahi1 opened this issue Mar 31, 2017 · 1 comment
Assignees

Comments

@ashahi1
Copy link
Contributor

ashahi1 commented Mar 31, 2017

Sample command to create vsan policy is incorrect. Policy get created successfully but volume creation fails using that policy.


Current command in admin-cli.md:

/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py policy create --name some-policy --content '(("proportionalCapacity" i0)("hostFailuresToTolerate" i0)'

If we use the above policy to create volume on vsan datastore - volume creation fails

root@sc-rdops-vm02-dhcp-52-237:~# docker volume create --driver=vsphere --name=MyVolume_2 -o size=10gb -o vsan-policy-name=some-policy
Error response from daemon: create MyVolume_2: VolumeDriver.Create: Failed to create volume MyVolume_2: error in line 2: syntax error
 VSAN_SPBMToVsanPolicy: Failed to convert SPBM string to VsanExpr: Not ready
Failed to set object policy : Input/output error 327684.
object setPolicy error: Failure

Correct command:

/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py policy create --name some-policy-2 --content '(("proportionalCapacity" i0)("hostFailuresToTolerate" i0))'

Basically a closing parenthesis is missing at the end.

@tusharnt tusharnt added this to the 0.14 milestone Mar 31, 2017
@tusharnt
Copy link
Contributor

Can you please take care of it @ashahi1 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants