16 Commits

Author SHA1 Message Date
Zuul
c7d42ca119 Merge "Use /usr/libexec/platform-python in undercloud post" 2020-03-31 04:00:49 +00:00
Harald Jensås
e41a3e65c6 Use /usr/libexec/platform-python in undercloud post
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
2020-03-30 17:27:42 +02:00
Rabi Mishra
e16b4e522b Remove most of the mistral related undercloud post config
Leaves the workbook/workflow creation part as we still have
some more workflows to migrate yet.

Depends-On: https://review.opendev.org/713773
Depends-On: https://review.opendev.org/714567
Change-Id: I54d21e486ef2c1fc6eed9b79e5a7f08f221935f7
2020-03-26 08:31:55 +05:30
Gael Chamoulaud
d31b694a2c
Remove upload_validations workflow execution
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>
2019-12-16 13:22:38 +01:00
Takashi Kajinami
f47dfe1059 Enforce pep8/pyflakes rule on python codes
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
2019-09-05 15:40:46 +09:00
Zuul
c8cc9b2830 Merge "Enable mistral_executor to perform backups" 2019-07-29 21:09:07 +00:00
Martin Magr
70d41af00a Enable mistral_executor to perform backups
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
2019-07-25 14:30:46 -04:00
Dougal Matthews
d665a2bb03 Remove the tripleo.plan_management.v1.publish_ui_logs_to_swift cron trigger
This was only used by tripleo-ui and is no longer needed.

Change-Id: I3c7854654cb7238ee6297c6178ee6d55402be40a
Related-bug: #1835242
2019-07-04 13:21:18 +01:00
Gael Chamoulaud
7bf040e8f9 Fix minor typos
* s/wrokbooks/workbooks/
* s/execututed/executed/

Change-Id: I7a5ce8e67da59dc8a33dce06099f819d8807653e
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2019-04-09 13:49:24 +02:00
Carlos Camacho
166803d05f Include the DB password in a Mistral environment for creating backups and restores
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
2019-01-22 16:08:03 +01:00
Jill Rouleau
971d97bf99 Correct file modes for rpmlint failures
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
2018-12-14 13:21:28 -07:00
Zuul
2557bfdf14 Merge "Create clouds.yaml for the undercloud" 2018-12-04 16:30:30 +00:00
Harald Jensås
afa16ae150 Create clouds.yaml for the undercloud
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
2018-11-22 13:54:54 +01:00
Derek Higgins
3d9e7731b5 Don't set boot_option=local on baremetal flavors
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
2018-11-21 10:18:27 +00:00
Chandan Kumar
50b048cf0d Set flavor property resources:MEMORY_MB to 0
* 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
2018-11-13 17:56:50 +05:30
Harald Jensås
0312050421 Move UndercloudPostDeployment to python
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
2018-11-08 03:58:11 +01:00