Manage Resources
Manage Resources includes creating resources, listing and planning for resources.
Actors
Extends Use Cases
Detail Scenarios
Scenario Get Resources
Get Resources based on a set of requirements, this could be one resource or a set of resources. Requires a cloud and requirements to be specified. A name for the resources can be requested.
Criteria
- Given - A cloud with set of resources and specific requirements are provided
- When - A request for resources based on specific requirements is made
- Then - A cloud with set of resources and specific requirements are provided
Steps
- device create –name hostgr1 –file ./templates/device.yaml
- device create –name hostgr2 –file ./templates/device.yaml
- device create –name hostgr3 –file ./templates/device.yaml
- device create –name hostgr4 –file ./templates/device.yaml
- device create –name hostgr5 –file ./templates/device.yaml
- device create –name hostgr6 –file ./templates/device.yaml
- datacenter create –name dcgr1
- datacenter adddevices –name dcgr1 –items hostgr1,hostgr2,hostgr3,hostgr4,hostgr5,hostgr6
- cloud create –name cloudgr1
- cloud adddatacenters –name cloudgr1 –items dcgr1
- datacenter disable –name dcgr1
- sdi resource/get –name myRes –cloud cloudgr1 –requirements ./templates/requirements.yaml
- sdi resource/get –name myRes2 –cloud cloudgr1 –requirements ./templates/requirements2.yaml
- sdi resource/get –name myRes3 –cloud cloudgr1 –requirements ./templates/requirements3.yaml
- sdi resource/get –name myRes4 –cloud cloudgr1 –requirements ./templates/requirements.yaml
Actors
Scenario List Resources
List Resources and their utilization numbers. This is used for capacity planning.
Criteria
- Given - IT Operations has access to list resources and their utilization numbers
- When - a device is created with specific parameters and datacenter is created and disabled
- Then - IT Operations has access to list resources and their utilization numbers
Steps
- device create –name hostlr1 –file ./templates/device.yaml
- device create –name hostlr2 –file ./templates/device.yaml
- device create –name hostlr3 –file ./templates/device.yaml
- device create –name hostlr4 –file ./templates/device.yaml
- device create –name hostlr5 –file ./templates/device.yaml
- device create –name hostlr6 –file ./templates/device.yaml
- datacenter create –name dclr1
- datacenter adddevices –name dclr1 –items hostlr1,hostlr2,hostlr3,hostlr4,hostlr5,hostlr6
- cloud create –name cloudlr1
- cloud adddatacenters –name cloudlr1 –items dclr1
- datacenter disable –name dclr1
- sdi resource/get –name myRes –cloud cloudlr1 –requirements ./templates/requirements.yaml
- sdi resource/get –name myRes2 –cloud cloudlr1 –requirements ./templates/requirements2.yaml
- sdi resource/get –name myRes3 –cloud cloudlr1 –requirements ./templates/requirements3.yaml
- sdi resource/get –name myRes4 –cloud cloudlr1 –requirements ./templates/requirements.yaml
Actors
Scenario Release Resources
Release Resources based on the name given when the Resources are requested
Criteria
- Given - IT operations has requested resources using a specific name
- When - The resources are no longer needed
- Then - IT operations has requested resources using a specific name
Steps
- To Be Defined