Commit Graph

165 Commits

Author SHA1 Message Date
Andreas Jaeger 91aa182bec Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Ice4cf064434d2d4bd4b089fc06e9aa8ad96d9a64
2019-12-18 09:49:39 +01:00
Georgy Kibardin fae06cf5aa Separate create and build templates
In order to prevent build templates to render during plugin
creation we need to put them into different directories.

Change-Id: I439bc7618a43ad07cc73fb69b60d99d725c3f9d0
Closes-Bug: #1655289
2017-01-13 15:41:49 +03:00
Georgy Kibardin 6a1ae7f520 Move Release.mako into v1 template dir
It turned out that templates/base is used to create new plugin
directory structure by fpb --create and, therefore, is a bad place to
put Release.mako since it is attempted to render it at plugin creation
time, not at a build time as inteded.

Change-Id: I7dbbf192827f8b2a0c0675050f7b48820952f6af
Closes-Bug: #1655289
2017-01-11 16:34:41 +03:00
Georgy Kibardin 57476f32d3 Make ubuntu repo similar for all plugin versions
Release file began to present in a plugin ubuntu repository only since
version 2. This now conflicts with our new repo pinning code which
expects Release file to be in place.

Related-Bug: #1650551

Change-Id: I09b956555c3a6ab0944216d866739fb7f6dc66a0
2017-01-05 13:59:00 +00:00
Evgeny L 13c73e5609 Revert "Make a symlink to deployment scripts in /etc"
The fix broke backward compatibility and used hardcoded
value.

Related-bug: #1603987
Related-bug: #1648882
This reverts commit 3f33bf09e3.

Change-Id: Ie3420116926bef518d68c3e3b381e5cff4c98b6f
2016-12-09 20:21:15 +00:00
Cao Xuan Hoang cf62bee069 Files with no code must be left completely empty
As per OpenStack licensing guide lines [1]:
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: I1b4e87d12ade01d9ce2658a6e6533acb1fd9b5c3
2016-11-15 15:49:32 +07:00
Elena Kosareva 6dbc520503 Added new plugin version with node & nic attributes support
* Added new plugin version supported by Fuel >= v9.0
* Added validation for node/nic/bond plugin node's attributes

Change-Id: I3e059940b910e67cca9b02a4d29179fa985414ff
Implements: blueprint nics-and-nodes-attributes-via-plugin
2016-09-27 14:55:43 +03:00
Igor Kalnitsky 4cd808c39b Allow arrays in 'value' in environment_config.yaml
Since Fuel 9.0 we have a new type for environment attributes: "text_list".
In that case, attribute's value must be an array. FPB didn't handle that
case, and throws error for any case when value is array.

This patch add "array" as a valid type for "value". In order to keep
simplicity and do not overcomplicate JSON schema, it allows arrays for
all types, not only for "text_list". It's consistent with Nailgun code,
where we don't have such check either.

Change-Id: I2ab401e4cdc7c1a1eb276aa71253818c688fdca1
Closes-Bug: #1616466
2016-09-05 16:22:28 +03:00
Ilya Kutukov d6d8b0de6e Old tasks.yaml content is commented for plugins packages v4.0
Examples and templates are affected

Change-Id: I305d499abbd74bc1f3b0e9de60d85ef66764478e
Closes-Bug: #1619255
2016-09-01 18:07:32 +03:00
Jenkins e4bf931839 Merge "Support multi versions of package in fuel plugin" 2016-08-31 13:14:35 +00:00
alexz dd03155047 Allow posibility to provide rpm 'Release' version
* This option allow to iterate pkg version, w\o
   updating plugin version

Closes-Bug: #1616929

Change-Id: I41cfb19da93d2d6e0c95fcb17ead1d08fbfcab99
2016-08-29 15:45:36 +03:00
Ilya Kutukov 5ec8f1ee88 Rename existing BaseValidator to LegacyBaseValidator
This change is required to introduce refactored validator instead current.

Change-Id: I2972ed8ce23b74b740fe3b6aa49002940677cbcc
Related-Bug: #1534126
Implements: blueprint release-as-a-plugin
2016-08-15 20:10:08 +03:00
Jenkins ee875c63bb Merge "Make a symlink to deployment scripts in /etc" 2016-08-09 10:09:04 +00:00
Jenkins 99e32daaa6 Merge "Execute prebuild_hook in the plugin directory" 2016-08-09 10:02:49 +00:00
Georgy Kibardin 3f33bf09e3 Make a symlink to deployment scripts in /etc
On master node there is no /etc/fuel/plugins/<plugin name>
directory. This causes failures of a plugin shell tasks on master node
because before execution there is an attempt to set current directory to
it. In order to fix this we make a symlink:

/etc/fuel/plugins/<plugin name> ->
/var/www/nailgun/plugins/<plugin name>/deployment_scripts

Change-Id: Idbd2d94462b72a7f98967b379f504c245a6c7135
Closes-Bug: #1603987
2016-07-20 16:10:18 +03:00
Jenkins fe7b5573d3 Merge "Ignore arch specific binaries in plugin" 2016-07-15 11:58:36 +00:00
Guo Ruijing a3f9289478 Support multi versions of package in fuel plugin
Some plugins may have repeating packages, which are currently filtered
by dpkg-scanpackages. This is the case for multiarch builds of some Fuel
plugins like ODL, which build and ship both amd64 and arm64 DEBs for ODL
prereqs. Allow multiple versions of a single package, by passing the
`-m` flag to dpkg-scanpackages when building local Ubuntu repo.

Closes-Bug: #1599896

Change-Id: Iba6442d2f21b252769ae30b2af01bbb04e16fd4c
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2016-07-07 18:21:14 +02:00
Jenkins 424a1c0254 Merge "Allow empty uninstall hooks" 2016-06-29 14:31:55 +00:00
Georgy Kibardin abfe5501b2 Execute prebuild_hook in the plugin directory
Set current working directory to the plugin directory before executing
prebuild hook. This allows prebuild hook script to refer to other
scripts in plugin directory using relative path.

Change-Id: I86193b26e5bd55ea55a712e473c2bbb3b36918fd
Closes-Bug: #1578598
2016-06-29 15:24:12 +03:00
Ilya Kutukov c2d906f5ae Now FPB tasks schema in sync with Fuel 9.0 with 2.1 support
YAQL expressions added.
Tasks 2.0 and 2.1 schema coverage improved.

Change-Id: If433f29283cb4897e8137ba2b33215af14103bea
Closes-Bug: #1590389
2016-06-22 19:46:25 +03:00
Dmitry Mescheryakov 3554228b2d Allow empty uninstall hooks
Without no-op, empty uninstall hook will cause invalid 'if' statement
to be created. As a result, uninstallation of such a package fails.

Change-Id: Idb12870db05b311f6c18cf0eb7d14a200ced6983
2016-06-22 15:04:42 +03:00
Alex Schultz 2d41ae9f4e Ignore arch specific binaries in plugin
This change tells rpmbuilder to not fail the build if arch specific
binaries are included as part of the plugin.  This is helpful if a
plugin wants to include a binary and deploy it via puppet or some other
method that will just copy the file.

Change-Id: Ic3ca86671f0a107b47ab68a54938b6f4040c90b2
Closes-Bug: #1578852
2016-05-23 10:56:10 -06:00
Jenkins 82191ca16b Merge "Lift too strict restrictions on cross-deps role name" 2016-05-13 15:25:22 +00:00
Jenkins bd16170b6c Merge "Change default deployment tasks version to 2.0.0" 2016-05-12 14:04:43 +00:00
Vladimir Kuklin ca8240ff61 Lift too strict restrictions on cross-deps role name
Allow a user to specify any arbitrary string
  as role name for cross-deps that could be
  a regexp or a TASK_ROLE_PATTERN string

  Log a warning when task is not assigned
  to roles/groups/fields

  Set default logging level to INFO

Change-Id: I42c2490cf22f53892a189165698d1acd56ee4c74
Closes-bug: #1557997
2016-05-11 14:25:17 +03:00
Jenkins 9737039e70 Merge "Revert "Lift too strict restrictions on cross-deps role name"" 2016-04-28 17:00:53 +00:00
Roman Prykhodchenko 83e764260f Allow optional uninstall.sh
Don't put any code to PREUN scripts if uninstall.sh
does not exist or is empty.

Closes-bug: #1574478
Change-Id: Ie7767e285b8086921a944da4bea9aa9749a0e323
2016-04-26 17:32:52 +02:00
Simon Pasquier 5f7b49d1cb Revert "Lift too strict restrictions on cross-deps role name"
This reverts commit 4a6e3f93de.

Change-Id: Ib3fc11af6ffbc780ab8e7170f7f5cff676f45cf8
2016-04-20 15:07:29 +00:00
Fedor Zhadaev b4b0513f1f Change default deployment tasks version to 2.0.0
Change-Id: I0f1932bb30f143e7c9147f1063a430fbc38d0b7e
Closes-Bug: #1570770
2016-04-18 17:18:53 +03:00
Jenkins 6dc5c22149 Merge "Lift too strict restrictions on cross-deps role name" 2016-04-15 14:35:13 +00:00
Vladimir Kuklin 4a6e3f93de Lift too strict restrictions on cross-deps role name
Allow a user to specify any arbitrary string
as role name for cross-deps that could be
a regexp or a TASK_ROLE_PATTERN string

Change-Id: I7124195fd9249acf13236751b7c59bcff2f42b2c
Closes-bug: #1557997
2016-04-11 17:09:06 +03:00
Jenkins 37a853db60 Merge "We shouldn't execute uninstall.sh on plugin upgrade" 2016-04-08 13:19:26 +00:00
Jenkins d5076501a0 Merge "Add possiblity to use generator in environment config" 2016-04-08 13:00:16 +00:00
Artur Svechnikov e00d4bba51 Add possiblity to use generator in environment config
It should be possible to use generators in
environment config. However validation schema
doesn't allow it.
Nailgun doesn't contain such scheme because
validation take place after all values have been
generated

Change-Id: Iff2feb7357afff02793deee65b6c65072914739c
Closes-Bug: #1557562
2016-04-07 18:24:46 +03:00
Alexander Kislitsky 2d24a9dbe3 We shouldn't execute uninstall.sh on plugin upgrade
When package is upgraded the following steps are perfored:
- Run the %pre section of the RPM being installed.
- Install the files that the RPM provides.
- Run the %post section of the RPM.
- Run the %preun of the old package.
- Delete any old files not overwritten by the newer version.
  (This step deletes files that the new package does not require.)
- Run the %postun hook of the old package.

uninstall_hook should be executed only when package removing is
performed. Otherwise in case of upgrade plugin changes made in
post-install.sh can be removed by unistall.sh

Change-Id: Idba866be2556aacc9ac0abeff67afcf34f02d93b
Closes-Bug: #1564123
2016-04-06 18:04:48 +03:00
Andriy Popovych a6f3a6a3fd Add ability for role to conflict with all roles
To support conflict of some node role with other roles '*' symbol is used.
This patch provides fix in validation for such situation.

Change-Id: If0123dbb05df0eddb071527990417ebafe300c93
Related Bug: #1547590
2016-03-31 15:32:54 +03:00
Alexander Kislitsky 58f0370530 Support of mitaka-9.0 added to plugins V4
Plugins V4 are able to be installed on Fuel 9.0 with release
mitaka-9.0. Metadata template changed for generate plugins
for the latest OpenStack release version.

Change-Id: Ic055a3738a670ddc096b1e12e1fe419e9934a092
Closes-Bug: #1549276
2016-03-16 10:08:00 +00:00
Alexander Kislitsky a22bc32ee8 File tasks.yaml made optional for V4 plugins
Plugin developers don't need to have tasks.yaml any more.

Change-Id: Ieff19c5a1d8f9a647076afdf2b4028e96be1ce7e
Closes-Bug: #1552248
2016-03-10 17:33:09 +03:00
Ilya Kutukov f54c307add equipment plugin group added
Related-Bug: 1520287
Related to blueprint external-dashboard-links-support-in-nailgun

Change-Id: I8fda5cdee6cf5af56b879e21925950c89e8e8f5f
2016-02-19 19:08:04 +03:00
Ilya Kutukov 3d056b7663 Example plugins and templates is updated accordingly to package version v4.0.0
Task-based deployment is intoduced as experimental orchestrator in Fuel v8.0.0
Plugins v4.0.0 could use tasks v2.0.0 in deployment_tasks.yaml

Also small problem with existing but empty legacy tasks.yaml is fixed.

Change-Id: Ibf8d65833b74c79e0c63ae9c51995c953b83d301
Closes-Bug: #1533771
Related-Bug: #1534235
2016-02-03 16:09:37 +03:00
Igor Kalnitsky 9cfd2b0e9c Change Fuel version from 2015.1-8.0 to liberty-8.0
Recently Fuel has changed its version format in order to be closer
to OpenStack [1]. We should reflect that change in FPB's templates
and example plugins.

[1]: I5bdabcf921ccda53b672d3f535238cd4c8c184fc

Change-Id: I6d2610aae51c4e8ac7e8699914975c84fa8c62f8
Closes-Bug: #1535293
2016-01-18 18:34:20 +02:00
Jenkins 5ef0901d01 Merge "Added pre-post tasks validation to plugins builder" 2016-01-06 13:09:29 +00:00
Ilya Kutukov 4ca6c5950e Added pre-post tasks validation to plugins builder
- The plugin deployment tasks now could contain
  cross-depends and cross-depended-by properties
  inroduced by task based deploment feature.

Change-Id: Icb351e4475ba6e78e7c8ef22cefc255116d44ba8
Related-Bug: #1527325
2015-12-28 18:28:33 +03:00
Jenkins 8e974ecbd8 Merge "Support bind option in json schema" 2015-12-25 14:21:04 +00:00
Andriy Popovych 89b1fbfd8f Support bind option in json schema
Currently validation process fails when 'bind' attribute exists in
components.yaml file. Validation of json schema should support it.

Partial-Bug: #1523981
Change-Id: Ifbdb552e7e17df6d6b94e2167de359a4eb3feb91
2015-12-23 18:49:33 +02:00
Andriy Popovych c41143cba2 Add validation for 'reexecute_on' deployment task attribute
In context of 'redeploy-network-on-changes' feature appeared new attribute
called 'reexecute_on' for deployment task. This patch provides basic json
schema validation for it.

Change-Id: I7aa7b00893182288b7cb86bef74f893289396caa
Closes-Bug: #1527624
2015-12-21 23:39:02 +02:00
Ilya Kutukov f680fdc6c1 Parallel strategy was added to the FPB templates for plugins v3 and v4
Change-Id: Icf9923053f74e81dabe730bedec803d8450b98d6
Closes-Bug: #1522785
2015-12-15 11:02:51 +00:00
Vitaly Kramskikh f877ebd56a Add 'group' field to the sample plugin v4
Also add validation for values of this field

Implements: blueprint segment-settings-tab-logically

Change-Id: I06e584621d75634d5896928395b71e4a4e180328
2015-12-03 15:55:43 +03:00
ekosareva 2cbe7a136a Validation for components metadata in FPB
* Adding validation of components.yaml metadata file for V4 plugins
* Adding components.yaml file for fuel_plugin_example_v4

Change-Id: I7b65371c5330abbb0b724e0b6faca66d033d9898
Implements: blueprint component-registry
2015-12-02 15:07:03 +02:00
Ilya Kutukov bc521bd800 Adds is_hotpluggable flag that allows to install plugin to operational environment
Change-Id: I57a9570566184b5c5e8ddd6090a256b79075c61f
Related-Bug: #1519050
2015-12-01 20:46:10 +03:00