Manage Resources

Manage Resources includes creating resources, listing and planning for resources.

Activities Diagram

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.

Scenario GetResources

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

  1. device create –name hostgr1 –file ./templates/device.yaml
  2. device create –name hostgr2 –file ./templates/device.yaml
  3. device create –name hostgr3 –file ./templates/device.yaml
  4. device create –name hostgr4 –file ./templates/device.yaml
  5. device create –name hostgr5 –file ./templates/device.yaml
  6. device create –name hostgr6 –file ./templates/device.yaml
  7. datacenter create –name dcgr1
  8. datacenter adddevices –name dcgr1 –items hostgr1,hostgr2,hostgr3,hostgr4,hostgr5,hostgr6
  9. cloud create –name cloudgr1
  10. cloud adddatacenters –name cloudgr1 –items dcgr1
  11. datacenter disable –name dcgr1
  12. sdi resource/get –name myRes –cloud cloudgr1 –requirements ./templates/requirements.yaml
  13. sdi resource/get –name myRes2 –cloud cloudgr1 –requirements ./templates/requirements2.yaml
  14. sdi resource/get –name myRes3 –cloud cloudgr1 –requirements ./templates/requirements3.yaml
  15. 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.

Scenario ListResources

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

  1. device create –name hostlr1 –file ./templates/device.yaml
  2. device create –name hostlr2 –file ./templates/device.yaml
  3. device create –name hostlr3 –file ./templates/device.yaml
  4. device create –name hostlr4 –file ./templates/device.yaml
  5. device create –name hostlr5 –file ./templates/device.yaml
  6. device create –name hostlr6 –file ./templates/device.yaml
  7. datacenter create –name dclr1
  8. datacenter adddevices –name dclr1 –items hostlr1,hostlr2,hostlr3,hostlr4,hostlr5,hostlr6
  9. cloud create –name cloudlr1
  10. cloud adddatacenters –name cloudlr1 –items dclr1
  11. datacenter disable –name dclr1
  12. sdi resource/get –name myRes –cloud cloudlr1 –requirements ./templates/requirements.yaml
  13. sdi resource/get –name myRes2 –cloud cloudlr1 –requirements ./templates/requirements2.yaml
  14. sdi resource/get –name myRes3 –cloud cloudlr1 –requirements ./templates/requirements3.yaml
  15. 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

Scenario ReleaseResources

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

  1. To Be Defined

Actors