Jump to: navigation, search

Difference between revisions of "User:Evgeniy L"

(Plugins migration from package version 1.0.0 to 2.0.0)
(Plugins migration from package version 1.0.0 to 2.0.0)
Line 1: Line 1:
 
== Drafts ==
 
== Drafts ==
  
===Plugins migration from package version 1.0.0 to 2.0.0===
+
===How to migrate plugins from 1.0.0 to 2.0.0 package version ===
  
Beginning with Fuel 6.1 new plugins format is supported. Note that new format is not compatible with Fuel 6.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.
+
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:
+
In order to migrate from old format to new, follow these steps:
 
# Get the latest fuel plugin builder version, 2.0.0 or higher.
 
# Get the latest fuel plugin builder version, 2.0.0 or higher.
# Change the value of '''package_version''' parameter in '''metadata.yaml''' file from "1.0.0" to "2.0.0"
+
# Change the value of '''package_version''' parameter in '''metadata.yaml''' file from '''1.0.0''' to '''2.0.0'''.
# Run '''fpb --check plugin_path''' and fix the errors one by one, or follow the instruction from bellow
+
# Run the following command:
 +
<pre><nowiki>fpb --check plugin_path</nowiki></pre>
 +
and fix the errors one by one or follow the instructions below.
  
Changes in 2.0.0 plugins:
+
====Updates ====
* [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.
+
If your plugin uses "controller" role in '''tasks.yaml''' file, make sure that you have also specified the "primary-controller".
* [New] required field '''authors''' in '''metadata.yaml''' file, a list of authors, specify your or your company name.
+
In new plugins, "controller" and "primary-controller" should be defined explicitly. In previous version, you could indicate  "controller", and then the "primary-controller" was added at the backend automatically.
* [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.
+
==== Brand new features ====
* [New] '''reboot''' task, the task is useful if you perform node configuration which required reboot, for example linux kernel parameters configuration.
+
 
 +
Several obligatory fields are added to '''metadata.yaml''' file:
 +
* '''groups''' field is used to specify group which your plugin belongs to. Either of the options is available:network, storage, storage::cinder, storage::glance, hypervisor. If your plugin does not belong to any of these options, set an empty list as a value for "groups" parameter.
 +
* '''authors''' field provides the list of authors. Here you should specify your or your company's name.
 +
* '''licenses''' field contains the list of licenses.
 +
* '''homepage''' field sets a link to plugin's project.
 +
 
 +
One more task type is introduced: the '''reboot''' task is useful if you perform node configuration which requires reboot; for example, in case of linux kernel parameters configuration.
 +
For information about reboot task type, see [[Fuel/Plugins#type:_reboot_parameter|the Plugins wiki]].

Revision as of 10:32, 12 March 2015

Drafts

How to migrate plugins from 1.0.0 to 2.0.0 package version

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 these steps:

  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 the following command:
fpb --check plugin_path

and fix the errors one by one or follow the instructions below.

Updates

If your plugin uses "controller" role in tasks.yaml file, make sure that you have also specified the "primary-controller". In new plugins, "controller" and "primary-controller" should be defined explicitly. In previous version, you could indicate "controller", and then the "primary-controller" was added at the backend automatically.

Brand new features

Several obligatory fields are added to metadata.yaml file:

  • groups field is used to specify group which your plugin belongs to. Either of the options is available:network, storage, storage::cinder, storage::glance, hypervisor. If your plugin does not belong to any of these options, set an empty list as a value for "groups" parameter.
  • authors field provides the list of authors. Here you should specify your or your company's name.
  • licenses field contains the list of licenses.
  • homepage field sets a link to plugin's project.

One more task type is introduced: the reboot task is useful if you perform node configuration which requires reboot; for example, in case of linux kernel parameters configuration. For information about reboot task type, see the Plugins wiki.