This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
vmdk volume should not be created on vsan datastore while passing not compatible VSAN policy or policy content is wrong #874
Labels
Comments
Here is the analysis when the policy content is having wrong format. Policy creation.
vmdk_ops.log
|
Over to Liping to take a look. |
pshahzeb
pushed a commit
that referenced
this issue
Feb 21, 2017
1. In case of wrong/incompatible policy, error is returned which is displayed on the client. Changing signature of set_policy to return the error thrown by VSAN 2. cleanVMDK to delete the vmdk file in cases when metafile hasn't been created but the vmdk is; and the vmdk file needs to be deleted Invoked as a part of removeVMDK procedure and cases requiring deletion of vmdk file only (when meta file hasn't been generated) eg: Unsuccesful attempt to apply vsan policy and when failed to create metadata for vmdk_path Testing: Added test scenario of impossible policy so that createVMDK fails Add this in VmdkCreateRemoveTestCase Resolves: #874
shuklanirdesh82
pushed a commit
that referenced
this issue
Feb 25, 2017
* Failing volume create in case of wrong/incompatible VSAN policy 1. In case of wrong/incompatible policy, error is returned which is displayed on the client. Changing signature of set_policy to return the error thrown by VSAN 2. cleanVMDK to delete the vmdk file in cases when metafile hasn't been created but the vmdk is; and the vmdk file needs to be deleted Invoked as a part of removeVMDK procedure and cases requiring deletion of vmdk file only (when meta file hasn't been generated) eg: Unsuccesful attempt to apply vsan policy and when failed to create metadata for vmdk_path Testing: Added test scenario of impossible policy so that createVMDK fails Add this in VmdkCreateRemoveTestCase Resolves: #874 * Adding logs and a negative test case for bad policy content * Adding CleanVMDK logs * Correcting logs for cleanVMDK errors
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Steps to reproduce:
Current behavior: volume is created successfully without associating the passed policy and falls back to
[VSAN default]
Expectation: volume should not be created while using non-compatible/not-satisfiable policy or when the policy content format is bad
https://github.com/vmware/docker-volume-vsphere/blob/master/esx_service/vmdk_ops.py#L193
on ESX:
//CC @msterin @kerneltime @pdhamdhere
The text was updated successfully, but these errors were encountered: