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
* 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>
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)
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
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