Jump to: navigation, search

User:Evgeniy L

Revision as of 14:22, 11 March 2015 by Evgeniy L (talk | contribs) (Plugins migration from package version 1.0.0 to 2.0.0)

Drafts

Plugins migration from package version 1.0.0 to 2.0.0

Beginning with Fuel 6.1 new plugins format is supported. Note that new format is not compatible with Fuel 6.0.

For new plugins fuel plugin builder builds RPM packages instead of fuel plugin archives.

In order to migrate from old format to new, follow the instruction:

  1. Get the latest fuel plugin builder version, 2.0.0 or higher.
  2. Change the value of package_version parameter in metadata.yaml file from "1.0.0" to "2.0.0"
  3. Run fpb --check plugin_path and fix the errors one by one, or follow the instruction from bellow

Changes in 2.0.0 plugins:

  • [Update] If your plugin uses "controller" role in tasks.yaml file, make sure that you also specify "primary-controller", because in new plugins "controller" and "primary-controller" should be specified explicitly, in previous version you could specify "controller" and "primary-controller" was added at the backend automatically.
  • [New] required field groups in metadata.yaml file, specify group which your plugin belongs to, any of the next options are available "network", "storage", "storage::cinder", "storage::glance" or "hypervisor", if your plugin does not belong to any of these options, set an empty list as a value for "groups" parameter.
  • [New] required field authors in metadata.yaml file, a list of authors, specify your or your company name.
  • [New] required field licenses in metadata.yaml file, a list of licenses.
  • [New] required field homepage in metadata.yaml file, set a link at plugin's project.
  • [New] reboot task, the task is useful if you perform node configuration which required reboot, for example linux kernel parameters configuration.