« Previous | Next » 

Revision 1615d3af

ID1615d3af415f463aab57fec11175acb5189bd5ec

Added by Constantinos Venetsanopoulos about 12 years ago

Initial support for ext-params

Add support for ext-params in the `ext' disk template.
Take advantage of disk-params and use them to pass the ext-params
to the ext template dynamically. disk-params don't make sense
anyway in an ext template, because the External Storage Provider
is not unique.

All ext-params are exported to the Provider via it's environment,
with variables prefixed with 'EXTP_' (similarly to the OS
interface's OSP_ params).

For now the ext-params are passed as --disk parameters from the
command line e.g. -t ext --disk=0:size=2G,provider=rbd

For the above reason two new IDISK_PARAMS have been introduced
to cover most current use cases: IDISK_PROVIDER and IDISK_SNAP

In the future we should consider a way, that allows NOT predefined
parameters to be passed from the command line, since the template
supports it.

Specifically:

  • Add generic parameters mechanism inside the `ext' template.
    All ext-params are passed through disk-params.
  • Fix cmdlib to handle ld_params for ext disk_type differently.
    Populate ld_params with the ext-params taken from the --disk
    option and then pass them to the `ext' template
  • Add the IDISK_PROVIDER parameter in constants and make it
    mandatory for the `ext' disk template
  • Add the IDISK_SNAP parameter, so that Providers can create
    volumes out of previous snapshots

Signed-off-by: Constantinos Venetsanopoulos <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences