Commit Graph

249 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
OpenDev Sysadmins 794a56969c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:44 +00:00
Jenkins b34e005b96 Merge "Separate create and build templates" 2017-04-25 14:51:31 +00:00
Alexander Kislitsky 348a20fd2d Version 4.2.0
This version that includes the following features:

- Added new plugin version with node & nic attributes support

This version that includes the following fixes:

- Move Release.mako into v1 template dir
- Make ubuntu repo similar for all plugin versions
- Show team and repo badges on `README`
- Remove reboot task from plugin example version "3.0.0"
- Files with no code must be left completely empty
- Legacy deployment tasks are turned back for plugin example version "3.0.0"
- `tasks.yaml` was commented for plugin example version "3.0.0"
- Allow unauthenticated packages in the deployment scripts
- Allow arrays in 'value' in environment_config.yaml
- Old `tasks.yaml` content is commented for plugins packages version "4.0.0"
- Allow possibility to provide rpm `Release` version
- Rename existing BaseValidator to LegacyBaseValidator
- Fix a word spell error in `README.rst`
- Support multi versions of package in fuel plugin

Change-Id: Ifddad557d9572e36ea4551c4e1bf583ccc9dafdb
Partial-Bug: #1660934
2017-02-01 14:12:23 +03: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
Jenkins d3b909334d Merge "Files with no code must be left completely empty" 2016-12-06 18:40:20 +00:00
Flavio Percoco 9f047a0ee5 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/1a731e4289e9c7ffbf167d27bef4fd25

Change-Id: I272c1aabcdcc92ed8f21a5d1db4d778fbead1c77
2016-11-25 17:36:13 +01:00
Georgy Kibardin 50dbec6184 Remove reboot task
This task isn't needed for example purposes but it indirectly conflicts
with other task which are cruicial for tests. These tasks create files
in /tmp but the reboot task makes them disappear.

Change-Id: Iff09fb84c04737813455cc7cc75502f14c992e90
Closes-Bug: #1625244
2016-11-16 15:11:32 +03: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
Ilya Kutukov 40bca6b4f0 Legacy tasks are turned back for exmaple v3.0.0
In previous patch tasks.yaml contained legacy tasks was cleaned up
but it turned up that some QA tests was relying on this tasks output
so this tasks was moved to the deployment_tasks.yaml to provide this
output.

Double unfortuantely FPB validation does not support tasks <v1.0.0
validation for the deployment_tasks.yaml without major changes in
validation logic.

So the tasks was converted to the tasks v1.0.0 by adding tasks id.

Change-Id: I1f820030a0575155b06db3c493accadc252c241a
Closes-Bug: #1625244
2016-09-29 11:23:21 +00: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
Ilya Kutukov 2ce77d627e tasks.yaml was commented for plugin example v3
Task from tasks.yaml in example v3 was running
example.pp the second time and this have been fixed.

Change-Id: Ic4263cc7998f9bba9f0144ddc46613d30fa5c002
Closes-Bug: #1625244
2016-09-20 15:06:44 +00:00
Maksim Malchuk 4983c5c7d0 Allow unauthenticated packages in the deployment scripts
DocImpact
Change-Id: Ib9464781fefd958d7ef4dfb5c9bf36aa7adcc663
Closes-Bug: #1622506
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-09-12 13:19:39 +00: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
dongwenjuan 1a893f74d3 Fix a word spell error
use `fpb` not `fbp` in README.rst

Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>

Change-Id: I84174747a0811538373ee85ab8657c8acdb6a668
2016-08-04 18:05:16 +08: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 7fa4f82edb Merge "Update example plugins metadata for 10.0" 2016-07-05 17:23:33 +00: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
Igor Kalnitsky ce8a0b3598
Version 4.1.0
It's a bugfix version that includes the following fixes:

- `tasks.yaml` is now optional for package version "4.0.0"
- Fuel Mitaka (9.0) is supported by default in package version "4.0.0"
- Use more reliable way to check for `fpm` Ruby GEM
- Add ability for role to conflict with all roles by using `*` sign
- Do not execute `uninstall.sh` on plugin upgrade
- Add possiblity to use generators in `environment_config.yaml`
- Don't put any code to PREUN section if `uninstall.sh` doesn't exist or empty
- Allow a user to specify any arbitrary string as role name for cross-deps
- Add deployment tasks v2.1 validation support

Related-Bug: #1594949
Change-Id: I9ce3b85ab9ac9516def24c15d1cb20ab69350ce2
2016-06-29 11:57:42 +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 243edd75ee Update example plugins metadata for 10.0
This change adds the 10.0 version into the example plugins.

Change-Id: I7d7734c3674ae72cd988a466345f32f5f4598307
Closes-Bug: #1572551
2016-05-23 11:03:53 -06: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
Jenkins 74f0e23118 Merge "Change Author credentials in setup.cfg" 2016-03-31 09:37:26 +00:00