Introduction

Purpose

Provide ability that user can use UCS blades as hardware resource pool in CloudStack, and provisioning operation system/hypervisor on UCS blade by CloudStack baremetal feature

Document History

Glossary

Feature Specifications

Use cases

  1. user has a UCS chassis setup in their lab, and a UCS manager managing UCS chassis
  2. user creates one or more UCS template to describe what kind of hardware they want to realize on UCS blade
  3. user go to CloudStack to register UCS manager with necessary UCS credentials. The UCS manager is zone wide
  4. CloudStack connects to UCS manager and discovers available blades and create a resource pool based on these blades
  5. user create a baremetal cluster in CloudStack
  6. user chooses some blades from resource pool and add them to baremetal cluster
  7. when adding a blade to baremetal cluster, user select a UCS template which tells CloudStack hardware specification of this blade
  8. CloudStack connects to UCS manager and initializes a UCS profile from UCS template selected in step 7
  9. CloudStack uses profile initialized in step 8 to realize the blades to add in baremetal cluster
  10. after blades being added to baremetal cluster, user is able to provision these hosts using common CloudStack baremetal feature

Architecture and Design description

Concepts:

Workflow:
This feature is default enabled as long as cloud-hypervisor-ucs.jar presents in classpath of CloudStack. User doesn't need to do any extra work to get the feature working,
a typical workflow is:

  1. open Zone page, click button 'Add Resource Pool'
  2.         in 'Add Resource Pool' wizzard, select 'UCS' as type
  3.         fill up information required for adding UCS manger, e.g IP address, username, password ...
  4.         click 'Add'. Cloudstack will automatically create the pool and discover the resources (UCS blades)

Implementations:
      The feature is implemented as a plugin locating in incubator-cloudstack/plugins/hypervisors/ucs

web services APIs

AddUcsManagerCmd

example: 

curl "http://localhost:8096/?command=addUcsManager&zoneid=$zoneid&name=ucsmanager&url=$url&username=admin&password=C1tr1x99"
curl "http://localhost:8096/?command=addUcsManager&zoneid=$zoneid&name=ucsmanager&url=$url&username=admin&password=C1tr1x99"

AssociateUcsProfileToBladeCmd

example:

curl "http://localhost:8096/?command=associatesUscProfileToBlade&ucsmanagerid=$ucsid&profiledn=$profileDn&bladeid=$bladeId"

ListUcsBladeCmd

example:

curl "http://localhost:8096/?command=listUcsBlade&ucsmanagerid=$ucsid"

ListUcsManagerCmd

example:

TODO

ListUcsProfileCmd

example:

curl "http://localhost:8096/?command=listUcsProfile&ucsmanagerid=$ucsid"

UI flow

Appendix

Appendix A:

Appendix B: