Nova VM lifecycle test
This blueprint is to develop a VM lifecycle test in tempest. Though all the APIs are covered by the community, we dont have a test in the form of a VM lifecycle.
In tempest/
The test does the basic server operations (tempest/
"""
This smoke test case follows this basic set of operations:
* Create a keypair for use in launching an instance
* Create a security group to control network access in instance
* Add simple permissive rules to the security group
* Launch an instance
* Pause/unpause the instance
* Suspend/resume the instance
* Terminate the instance
"""
I am planning to extend this to include the following test points.
"""
This smoke test case follows this basic set of operations:
* Create a keypair for use in launching an instance
* Create a security group to control network access in instance
* Add simple permissive rules to the security group
* Launch an instance with keypair and security group
* Create a floating ip
* Check if floating ip gets listed
* Add floating IP to a VM
* Check if floating up is listed against the VM
* Enable ping and ssh by adding rules in security group
* List security group rules and verify
* Ensure ping and ssh to the vm work
* Reboot an instance and check for ping
* Remove rules and check if ping / ssh is disallowed
* Create a source sec group and add that to the existing sec group
* List security group rules and verify
* Ensure ping and ssh to the vm work
* Remove security group and check if ping / ssh is disallowed
* Remove floating IP from the server and check if it is removed
* Verify the working of VM rename
* Create an image from the running server
* Check if the VM comes to active state
* Rebuild the vm with the new image
* Delete the floating IP from the project
* Pause/unpause the instance
* Suspend/resume the instance
* Terminate the instance
"""
Blueprint information
- Status:
- Complete
- Approver:
- Jay Pipes
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Nithya Ganesan
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Sean Dague
Related branches
Related bugs
Sprints
Whiteboard
I like it!
The only thing I would change is the floating IP part... just change it to "Associate a floating IP with the server instance" instead of "Create a floating IP", since the creation of Floating IPs is an Admin-only operation AFAIK... and should be done in the setUpClass() fixture of the test.
Recommend simply renaming test_server_
Gerrit topic: https:/
Addressed by: https:/
Testcase for Nova VM Lifecycle