-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] test_delete_volume_on_deleted_vm failing on 1.2-head #1226
Comments
@albinsun, I feel that it is falsely alarm, and according to the origin issue harvester/harvester#2677, volume and VM should be deleted simultaneously, but the implementation didn't hit it. The failed part was added in #1186, but I don't think that after you check the volume been deleted succesfully, the volume will still available. This test case would need to be re-implement if it is about harvester/harvester#2677 (but I feel it might not necessary because we already covered it in test case |
I coudn't find the test |
It's legacy test case and been replaced by ref: #786 (comment) |
Thanks @lanfon72. I see there is an extra step of attempting deletion of volume while the volume is attached to the VM in the test |
Hi @khushboo-rancher and @lanfon72, It's due to improper status check after deleting volume, should be As discussion above, this TC tests the non-simultaneous deletion case and we can treat this as new TC if Please comment if I have any misunderstanding. Thank you. |
The so, newer one is not cover the case of #652, consider the |
Close as fixed with /pull/1269 |
What's the test to develop? Please describe
def test_delete_volume_on_deleted_vm(self, api_client, ubuntu_image, ubuntu_vm, polling_for):
"""
1. Create a VM with volume
2. Delete volume should reply 422
3. Delete VM but not volume
4. Delete volume should reply 200
Ref. #652
"""
vol_name = (ubuntu_vm["spec"]["template"]["spec"]["volumes"][0]
['persistentVolumeClaim']['claimName'])
E KeyError: 'metadata'
The text was updated successfully, but these errors were encountered: