* Add Virtual Kubelet provider for VIC Initial virtual kubelet provider for VMware VIC. This provider currently handles creating and starting of a pod VM via the VIC portlayer and persona server. Image store handling via the VIC persona server. This provider currently requires the feature/wolfpack branch of VIC. * Added pod stop and delete. Also added node capacity. Added the ability to stop and delete pod VMs via VIC. Also retrieve node capacity information from the VCH. * Cleanup and readme file Some file clean up and added a Readme.md markdown file for the VIC provider. * Cleaned up errors, added function comments, moved operation code 1. Cleaned up error handling. Set standard for creating errors. 2. Added method prototype comments for all interface functions. 3. Moved PodCreator, PodStarter, PodStopper, and PodDeleter to a new folder. * Add mocking code and unit tests for podcache, podcreator, and podstarter Used the unit test framework used in VIC to handle assertions in the provider's unit test. Mocking code generated using OSS project mockery, which is compatible with the testify assertion framework. * Vendored packages for the VIC provider Requires feature/wolfpack branch of VIC and a few specific commit sha of projects used within VIC. * Implementation of POD Stopper and Deleter unit tests (#4) * Updated files for initial PR
2.1 KiB
2.1 KiB
Test 6-03 - Verify delete clean up all resources
Purpose:
Verify vic-machine delete can delete vch installed by vic-machine create
References:
- vic-machine-linux delete -h
Environment:
This test requires that a vSphere server is running and available
Test Cases
Delete VCH and verify
- Create VCH through vic-machine create
- Create container
- Make sure container VM is powered on
- Delete VCH without --force, to get delete failure
- Delete VCH with --force, to get delete success
- Check vSphere through govc to make sure all resources are deleted correctly
Expected Outcome:
- Step 4 should fail for VM is powered on
- Step 5 should success
- Step 6 should not find any resources created by vic-machine and VCH
Attach Disks and Delete VM
- Create VCH normally
- Pull a moderately sized image (ubuntu)
- Check to see that disk images exist via govc
- Use govc to attach disk images to appliance VM directly
- Delete the VCH
- Ensure that VCH folder is entirely gone after delete via govc
Expected Outcome:
- All steps should succeed
- govc should return 1 when not finding images in step 6
Delete VCH with non-cVM in same RP
- Create VCH though vic-machine create
- Create VM in the VCH's resource pool
- Delete VCH
- Check vSphere through govc to make sure the VM was not deleted
- Delete the VM and RP to cleanup
Expected Outcome:
- All steps should succeed
Delete VCH moved from its RP
- Create VCH though vic-machine create
- Create VM in the VCH's resource pool
- Create another RP
- Move VCH to the new RP
- Delete VCH
- Check vSphere through govc to make sure the VM and containerVM were not deleted
- Delete the VM, containerVM, and RP to cleanup
Expected Outcome:
- All steps should succeed
Delete VCH moved to root RP and original RP deleted
- Create VCH though vic-machine create
- Create VM in the root RP
- Move VCH to root RP
- Delete the VCH created RP
- Delete VCH
- Check vSphere through govc to make sure the VM in the root RP was not deleted
- Delete the VM to cleanup
Expected Outcome:
- All steps should succeed