CentOS 8 undercloud installation is failing because
/usr/bin/env python does not exist. Update the
python scripts to use platform-python.
Closes-Bug: #1869714
Change-Id: I459410950503c42cc39a91c64e56f69aa0a34d20
The 'tripleo.validations.v1.upload_validations' workflow has been
removed from tripleo-common, this Undercloud post installation step
could be safely removed.
Change-Id: I55495b932c682367a0b336741319aa31b0dcbcd2
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This change makes sure that we apply pyflake8 checks on all python
codes to improve its readability.
Note that there are some rules applied for other OpenStack projects,
but not yet turned on, which should be enabled in the future.
Change-Id: Iaf0299983d3a3fe48e3beb8f47bd33c21deb4972
Moving undercloud deployment to container means that during execution
of undercloud backup mistral-executor does not have required connections
and data available and so creates empty tarball currently. This patch is
one of many, which are supposed to fix this. On THT side we need to:
- Include DB host IP address in tripleo.undercloud-config env
- we need to have this information about undercloud IP available
as we cannot connect to local socket anymore and using 'localhost'
does not work.
- Mount directories which are meant to be backed up
- currently directories backing up directories local to mistral_executor
are useless for undercloud backup
Change-Id: Ia1fd60a13570a42f5243beb5bb0487c743e31d27
Partial-Bug: #1812960
We need to include also the Undercloud DB in a Mistral
environment to be able to create the DB backup from the CLI.
Now, we do this using python and THT but we didn't include it.
Change-Id: If503e733b103a34ae5639eb56dfae05f9783d59a
Closes-Bug: 1812839
Numerous files have incorrect modes set. Correct these so that executables
have 755 and yaml files are 644 to address rpmlint errors.
Change-Id: I8db36209b41a492f6b85e3469994de884bf556e8
Add the cloud to clouds.yaml for the undercloud so
that it is available for post deploy script's.
The clouds.yaml is created both in the stack users
home directory ~/.config/openstack/clouds.yaml and
globally for the system in /etc/openstack/clouds.yaml.
Update standalone post configuration to use the same
code to create and update clouds.yaml on standalone.
clouds.yaml is used when setting up client's in other
post scripts instead of passing all the options to
each script.
Partial-Bug: #1801927
Change-Id: I6402fa561745bacf184b1ad2ada44bf8f7c75324
Setting boot_option_local is no longer required as its the default.
So setting this is redundant.
Migrate existing flavors to remove boot_option if set to local.
Change-Id: Ib793acc98641091bcde2580b725656976e5d6625
Depends-On: I9fbe12f7878328f0ca084e29483f30d18dad1773
Related-Bug: #1803965
* https://review.openstack.org/#/c/614540/ converts undercloud
post deploystep to python where property resources:MEMORY_MB
was setted to 1 but earlier it was zero. It fixes the typo.
Change-Id: If26e17cb2079ef994cc0e0506cbf40bf9023808e
Configuring Nova (quota, flavors) and Mistral (workbooks,
workflows, etc.) is a lot faster if we do it in python.
Initial undercloud install - 3.5x faster
----------------------------------------
Run deployment UndercloudPostDeployment ---- 130.50s < Shell
Run deployment UndercloudPostDeployment ---- 37.39s < Python
Re-Running undercloud install - 10x faster
------------------------------------------
Run deployment UndercloudPostDeployment ---- 405.01s < Shell
Run deployment UndercloudPostDeployment ---- 39.95s < Python
Change-Id: If7b3ad701e434ed0d606356b9bbab2716d53c5bb