Commit Graph

90 Commits

Author SHA1 Message Date
Andreas Jaeger 6093325f07 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: Id72d32000788ce1cc359d6144d951fc04032a5fc
2019-12-18 09:46:18 +01:00
Dmitry Nikishov 36f3d95a47 Set vip_namespace when migrating vips from 6.x
Change-Id: I7d76f7984a1870c070126b0ccde160f320576cf3
2016-12-09 12:58:04 +04:00
Dmitry Nikishov 89839b88c3 Enable image-based provisioning for 6.0 upgrades
This fix has been lost during the process of
migration of cluster data manipulation functionality
from the octane to this extension.

Change-Id: Ife92cbd0e8d8f8376ffcb1f333d1fac9e911ff3e
Closes-bug: 1573100
2016-12-02 12:37:22 +00:00
Viacheslav Valyavskiy 40315ce69d Introduce role_metadata into cluster adapter
Change-Id: I19fc51f9fd316a7828267afc995275585a225e30
Implements: blueprint role-decomposition
2016-11-09 13:09:58 +03:00
Pavel Chechetin 595146163e Add orig and seed env versions to astute.yaml
Change-Id: Ic5eb4b4308feba55cbb97ebc63c1a41b4ed14de8
2016-09-22 17:33:56 +03:00
Nikita Zubkov e7b127a308 Add info about upgrade to deployment_info
This patch adds new data pipline for seed cluster that add to cluster
deployment info attributes about upgrade

Change-Id: I0630e75508552927b67065ff85cb6bac1bb88f61
2016-09-21 18:35:09 +03:00
Nikita Zubkov 4150121e8a Validate network roles for new cluster
Checks that network roles mapping from original release is a subset of
network roles mapping of new cluster's release.

Change-Id: I521e70bf3df289abf3e71c5c1558faf7126db964
Partial-Bug: #1619162
2016-09-21 17:00:02 +03:00
Anastasiya 821f8373ab Sync network groups during cloning environment
for creating of network groups in the seed cluster
such as in the original cluster

Change-Id: I17f95756fa26ef0f7df0e969f9f1ba4331047c8d
Closes-Bug: #1616817
2016-09-19 10:33:44 +00:00
Anastasiya e2b9dbf1ca Add initial support of multi-rack for upgrades
* netgroups mapping was changed (additional argument
  for the mapping was added - name of node group)
* copying of node group during cluster cloning was added

Depends-On: I2638279371e91f15090c782fc5fdbb434a2e85f8
Partial-bug: #1612297

Change-Id: Ib1689d7b6d673c0d78434dd047a7ebc520c232e7
Co-Authored-By: Ryan Moe <rmoe@mirantis.com>
Co-Authored-By: Andrew Woodward <awoodward@mirantis.com>
Co-Authored-By: Ilya Kharin <akscram@gmail.com>
2016-09-15 11:00:28 +00:00
Jenkins ce58ef1d7e Merge "Fetch transformations configuration from Nailgun settings" 2016-09-14 13:56:31 +00:00
Anastasiya 6e7303d276 Skip test regarding vips
due to changes functions get_assigned_vips and
assign_given_vips_for_net_groups in nailgun.network.manager
in the next commit (I2638279371e91f15090c782fc5fdbb434a2e85f8)

Change-Id: I93e43be60dacc9ba5546cb50ba04a98bd35d276c
(cherry picked from commit 2d12209aaa)
2016-09-13 06:32:16 +00:00
Yuriy Taraday f23d273ee8 Fetch transformations configuration from Nailgun settings
Change-Id: Ic03f729c738745ff18c849cb4f3a4b5b8d3fe90c
Closes-Bug: #1618177
2016-09-09 18:22:21 +03:00
Ilya Kharin e38d48cbc5 Merge branch stable/mitaka into master
Change-Id: I9075cbe428013f4b5ee140c0b784712b4ff0fa56
2016-09-09 00:22:42 +03:00
Jenkins cc5764751e Merge "Add support to re-assign a set of nodes" into stable/mitaka 2016-09-07 15:02:53 +00:00
Ilya Kharin a4e2a67e3e Add support to re-assign a set of nodes
This patch adds an ability to re-assign a set of the given nodes at
once. This feature was technically available but not exposed to the
client. A groupped re-assigning allows to effectively re-provision nodes
by creating an atomic task in Astute.

Change-Id: I4a7c7e35d844683ef73ad7f8459d1892e80e0a64
Related-Bug: #1616925
2016-09-07 17:52:13 +03:00
Nikita Zubkov d87125662f Add test for vip transformer
Change-Id: I65124237604fe6718ad6c351825f192a98d470fb
(cherry picked from commit 55422ddce7)
2016-09-02 22:20:02 +00:00
Jenkins d8e2b002c3 Merge "Add test for vip transformer" 2016-09-01 20:31:03 +00:00
Ilya Kharin e4d4a0b4b4 Merge branch master into stable/mitaka
Change-Id: Ie7b982cac3fa19a431f0368c933cd6dd0877e256
2016-08-29 23:41:29 +03:00
Ilya Kharin 5ead3bf1b7 Return VIPs on the clone operation
The test was also fixed and returned to the integrational manner.

Change-Id: Iea2301c95ec84e10cda8e1437f85f10c0c3e5437
Closes-Bug: #1617943
2016-08-29 19:45:26 +03:00
Nikita Zubkov 55422ddce7 Add test for vip transformer
Change-Id: I65124237604fe6718ad6c351825f192a98d470fb
2016-08-29 18:09:47 +03:00
Sergey Abramov 8147718cf7 Fixes in CreateUpgradeReleaseHandler
* add deployment_tasks in clone release
* fix typo
* copy net_roles_metadata on src releases

Change-Id: Ia3b29f3f6d36442d5980e9fdff951bfcc3ad814f
Closes-bug: 1617247
2016-08-29 14:35:41 +03:00
Yuriy Taraday 40dd411fe4 Merge master into stable/mitaka
Change-Id: I62b4f8d1a0a75337d617959b0d7cbc104279018b
2016-08-25 00:03:53 +03:00
Jenkins 0ae07c813e Merge "Add VIPs transformer" 2016-08-24 19:59:09 +00:00
Jenkins f4bf5159dd Merge "Move partition info transformation to extension" 2016-08-24 19:59:04 +00:00
Jenkins 09a6e1c20f Merge "Add create upgrade release handler" 2016-08-24 19:52:17 +00:00
Sergey Abramov 17ab5a3aaa Add create upgrade release handler
Required for create new release just for upgrade, that have overwrited
params. This params are valid for orig cluster release.

Change-Id: Ib2387b9c2b74902c7289ee8f69a5f5d323ec82ca
2016-08-24 22:36:40 +03:00
Nikita Zubkov 8de47e0dbf Add VIPs transformer
Move upgrade vips code to the transformer

Change-Id: Ia6935521b8b90b73fb74ba92859e7febf74c4ced
2016-08-24 22:05:10 +03:00
Nikita Zubkov b54f9d4c29 Move partition info transformation to extension
octane have some dirty hacks to change volumes attributes using nailgun
as a library, such modifications should be done in a extension

Change-Id: I422bb368916f3a319e286edcc6103a2834097a87
2016-08-24 21:58:01 +03:00
Jenkins 72df55c185 Merge "Add tests for assign_node_to_cluster" 2016-08-24 18:13:28 +00:00
Jenkins 1b63629862 Merge "Add cluster transformations" 2016-08-24 16:11:27 +00:00
Jenkins 96ca0fdf0d Merge "Add pluggable transformations for data migration" 2016-08-24 16:08:42 +00:00
Anastasiya b3ce0d348c Add tests for assign_node_to_cluster
Change-Id: Iafa1baa6a1ca4d701ec89e49dd9d6f969804c82e
2016-08-24 17:53:59 +03:00
Yuriy Taraday 95ff3a3598 Add cluster transformations
Implement transformations that are applied to cluster attributes during
environment cloning.

Conversion from text to text_list type has been limited to dns_list and
ntp_list keys only to keep predictable behavior.

Change-Id: I1ff596f850bd42243697cad1c1c35f0cf1386376
2016-08-23 23:01:16 +03:00
Yuriy Taraday 163ce243fb Add pluggable transformations for data migration
This change introduces new transformation mechanism:
- all available transformations are listed in setuptools entry points
  under namespace like this (for cluster transformations):

    nailgun.cluster_upgrade.transformations.cluster.9.0 =
        dns_list = ...
        ntp_list = ...
    nailgun.cluster_upgrade.transformations.cluster.8.0 =
        ...
    <etc>

- config file will include section that specifies enabled
  transformations like this:

    CLUSTER_UPGRADE_TRANSFORMATIONS:
      cluster:
        9.0: dns_list ntp_list ...
        8.0: ...
        7.0: ...

  (only default values are implemented here, actual config support will
  follow)

- when transformations are applied to clone cluster from version X to
  version Y, first transformations for version X+1 are applied, then
  X+2, and so on ending with transformations for version Y.

Since Nailgun doesn't provide any special extension initialization
callback, a Lazy wrapper is implemented to facilitate transformations
manager usage in extension.

Change-Id: I8ee75b54180106ad46c1df67f8d5937d6bd810a1
2016-08-23 22:52:15 +03:00
Ilya Kharin 7cf3fe9b3a Disallow to change operating system during upgrade
Changing of an operating system for clouds nodes is not supported and is
not tested at all. That's why this additional validation was added.

Change-Id: Ibf6db17f783879eff88e2366dfdb0a2871e2aa0a
2016-08-23 17:00:14 +03:00
Yuriy Taraday 6150aaca88 Replace @content decorator with all that madness
Change Ia3da3bd809bcca923d53666eca54def78c995f65 broke our handlers as
it incorporated destructive changes to all handlers.

Change-Id: I688e833b1fb8b658f01b7f858a140c315fa513a2
2016-08-23 12:25:52 +03:00
Anastasiya a78f4348f8 Move change_env_settings function from octane to cluster upgrade extension
* change_env_settings function was moved to cluster upgrade extention
* merge generated attributes code was written

Change-Id: I6d1e27b8b0c01f3251067bc88931cd2354feb5ce
Partial-Bug: #1602587
(cherry picked from commit dc2e3f9309)
2016-08-15 16:04:23 +00:00
Jenkins 8573c98921 Merge "Move change_env_settings function from octane to cluster upgrade extension" 2016-08-15 14:19:43 +00:00
Anastasiya dc2e3f9309 Move change_env_settings function from octane to cluster upgrade extension
* change_env_settings function was moved to cluster upgrade extention
* merge generated attributes code was written

Change-Id: I6d1e27b8b0c01f3251067bc88931cd2354feb5ce
Partial-Bug: #1602587
2016-08-12 15:57:23 +03:00
Jenkins da0e1d2cca Merge "Add absent __init__.py to migrations/versions" into stable/mitaka 2016-08-10 16:27:46 +00:00
Ilya Kharin 9e9ae1fabe Add absent __init__.py to migrations/versions
Without the versions/__init__.py file versions was not identified as
a package and was not included in a distribution.

Change-Id: I67f152ebb9234df880c61d79d154b1aabc8828c6
Closes-Bug: #1611793
2016-08-10 15:36:29 +00:00
Ilya Kharin 280fc4f082 Add absent __init__.py to migrations/versions
Without the versions/__init__.py file versions was not identified as
a package and was not included in a distribution.

Change-Id: I67f152ebb9234df880c61d79d154b1aabc8828c6
Closes-Bug: #1611793
2016-08-10 17:30:47 +03:00
Anastasiya b93ebedc49 Correction of transformation for text_list
* added removing of space in text_list
* added test for merge_attributes

Change-Id: I5582878fc7c524551593abf21dfd4ea45cd430c9
Closes-bug: 1602607
(cherry picked from commit fdd2a62264)
2016-08-01 13:45:41 +00:00
Anastasiya 56dc7c1f8f Assign node to cluster with network template
Don't need to assign nics and bonds to netgroups
if network template has been applied to new cluster.

Change-Id: Ibd06de87964bf7a2038899d32e3d8a0189b9cbbd
Partial-bug: 1584044
2016-07-29 14:24:35 +03:00
Anastasiya fdd2a62264 Correction of transformation for text_list
* added removing of space in text_list
* added test for merge_attributes

Change-Id: I5582878fc7c524551593abf21dfd4ea45cd430c9
Closes-bug: 1602607
2016-07-29 14:24:00 +03:00
Nikita Zubkov d4db5ba78c Fix package namespace 2016-07-13 14:03:45 +03:00
Sergey Abramov 030fda6fa4 Fix cluster attributes dns_list and ntp_list
Settings in release change. Cloned cluster should have values valid for
its release.

dns_list and net_list were text values but in version mitaka-9.0 it
changed to text_list

Change-Id: Iac0aa42b7c36333e6d9c40b8a27a19df9efe36f5
Closes-Bug: 1572179
(cherry picked from commit 5ae4c7ebdcdbf1621ce617de4ec019ae2b5670c4)
2016-07-13 14:03:45 +03:00
Artur Svechnikov 7cf79178e6 Check nodes roles before deployment
Nodes roles should be checked in CheckBeforeDeploymentTask,
because it's possible to deploy node with conflicting roles
or with incompatible role. Roles release metadata will be
used for roles checks, this metadata contains restrictions.

Since `depends` is not used anymore, it's changed to
`restrictions` in assignment validator.

Change-Id: Ibba7951968cbafd59fff0d516e74f9dd9e454edc
Closes-Bug: #1573006
(cherry picked from commit 3482a5d7a9417c268a526cf511e114be94c884be)
2016-07-13 14:03:45 +03:00
Artem Roma e15ad4ab63 Fix get_common_node_group behavior
Now if common nodegroup has not been found for given nodes None as a
result is returned instead of default node group.

This directly affects procedure of VIP allocation as (e.g.) VIPs will
not be allocated when cluster does not have assigned nodes.

Tests updated accordingly

Change-Id: Iaa94453f3f98cc9238f9810aab7311ffabbfa8b7
Closes-Bug: #1549254
2016-07-13 14:03:45 +03:00
Artem Roma a72d2f6862 Add handler for copying of VIPs
New handler triggers copying of VIPs from given original cluster to new
one. The reason for separation of this action from copying of network
configuration is that accordion to [1] copying of existing VIPs/allocation
of new ones will not take effect for new cluster unless it has assigned
nodes. Thus in context of cluster upgrade procedure VIP transfer must be
done after node reassignment, and as long as nodes are being operated on
one by one it would be not efficient to call VIP copying method after
each such reassignment.

Tests updated accordingly.

[1]: https://review.openstack.org/#/c/284841/

Change-Id: I33670e8f2561be6fe18cec75bfc7ecc056ae2f6b
Closes-Bug: #1552744
2016-07-13 14:03:45 +03:00