Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann c2ff9b8f49 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I7f1dc7801a025d9bb28110f74340846b99870b79
2024-02-24 11:43:13 -08:00
Rabi Mishra f1f224c1ad Copy ssh_keys from mistral environment locally
We would need the private key to ssh as tripleo-admin to existing
nodes. After upgrade, new nodes would need the public key.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/857560
Change-Id: I34f85c61241e916cabf12ce1aeadf8e9ab73ad1e
2022-09-20 10:30:05 +05:30
Rajesh Tailor 6861fb324b Fix typos in comments and parameter descriptions
This change fixes typos in comments, parameter descriptions
and ansible task names.

Change-Id: I82b67ca834077b66ebd71744face3bba0b43da2f
2022-08-03 17:07:11 +05:30
Takashi Kajinami b2a35f13d5 Remove 'u' prefix
In Python 3, u'...' and '...' are equivalent. Also, the prefix is no
longer printed.

Change-Id: I3de64b2526422322ad10231d9d682a326d4435ca
2022-05-18 11:13:54 +09:00
Jose Luis Franco Arza ed560e46cf Pass OS_CLOUD env when migrating to heat ephemeral.
In order for the undercloud-upgrade-ephemeral-heat.py to work properly
we need to specify the OS_CLOUD for the existing undercloud stack,
otherwise the invoked OpenStack commands won't be able to authenticate
properly.

This change makes use of the --cloud script's option to pass it into
each subprocess' invokation of an openstack command.

Change-Id: I0b05a05907c42abfabe9cb963da65ed1efb2d283
Resolves: rhbz#2040260
2022-01-17 16:43:09 +01:00
Damien Ciabrini 7fc781083f Only delete heat data in the DB if it exists
The undercloud upgrade script that deletes users may
not work if re-run or if other scripts clean DB data
during the upgrade.
Only delete users and database if it still exists in
the DB.

Change-Id: I36e3b33a824f3ae6d1da97ea53527c2b4519ea3c
Related-Bug: #1943440
Related-Bug: #1943330
2021-09-23 09:12:50 +02:00
Takashi Kajinami 8f6d13b7ed Compute HA: Remove version discovery of keystone API
Keystone removed its v2 API a long ago and now it provides v3 API only.
Thus we no longer need any logic depending on Keystone API version.

Change-Id: Ifffe5bea246478954f86e803f8038d73f039eaf8
2021-08-17 17:01:26 +09:00
Takashi Kajinami e04f4a6187 Compute HA: Remove workaround for Newton and older
This change removes workaround in check-run-nova-compute script which
was implemented for ancient versions.

Change-Id: I9250953a179ba9a81b0289bc5e1239c4e0e54784
2021-07-16 11:34:38 +09:00
Zuul 4bdfe08038 Merge "Move ephemeral heat upgrade to the service" 2021-07-07 19:20:20 +00:00
Alex Schultz 4da03adefe Move ephemeral heat upgrade to the service
Rather than using a new service, we can use the existing HeatEphemeral
service we added to ensure the undercloud is prepared for the overcloud
deployment usage of the ephemeral heat version.  Additionally this will
properly tear down the previous containered heat services once the data
has been extracted from the existing databases.

Change-Id: I13270a4866f9b339cb31ebba223121978e52b499
2021-06-28 07:30:44 -04:00
Harald Jensås ff48f2ac1e Get roles data from stack output on UC upgrade
Since not all information can be exported from the
stacks, the intent is to backport the depends-on
to the release intended as the upgrade from release.
i.e the depends on need to go back to Train.

The alternative is to require the user to provide the
roles_data file for each overcloud stack managed by
the undercloud being upgraded as input to the upgrade
command. Support for this is provided in the previous
patch in this chain.

Depends-On: https://review.opendev.org/791476
Related: blueprint network-data-v2-ports
Change-Id: Icc6a7a438e9d0f39d003d1cf8ed84d6fb1d5485a
2021-06-22 20:13:09 +02:00
Harald Jensås 28105815c1 Extend UC ephemeral heat to export network
Run the commands to export the current stack's networks,
virtual IPs and provisioned server as part of the
OS::TripleO::UndercloudUpgradeEphemeralHeat service script.

The network, virtual IP definitions and baremeteal deployment
definition will will be stored in each stacks subdirectory in
the working-dir.

The user must provide the path to the roles data file for each
overcloud stack managed by the undercloud being upgraded.
For example, by adding a file with below content and including
this env file using the 'custom_env_files' option in
undercloud.conf.

  parameter_defaults:
    OvercloudStackRoleDataFileMap:
      overcloud: /home/centos/overcloud/my_roles_data.yaml

Related: blueprint network-data-v2-ports
Change-Id: Id04a4f71f923a25fd50ca78e478a9b5abb61bbb9
2021-06-22 20:12:24 +02:00
James Slagle b252d45739 Add OS::TripleO::UndercloudUpgradeEphemeralHeat
A new service, OS::TripleO::Services::UndercloudUpgradeEphemeralHeat is
added to the Undercloud role. The service is mapped to OS::Heat::None by
default, but when environments/lifecycle/undercloud-upgrade-prepare.yaml
is included, the service will be enabled and will migrate any already
deployed stacks in the undercloud's Heat instance to be able to be used
with the ephemeral Heat deployment option from tripleoclient.

Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: If11e2fc07a1ff773f6eaf209d8b48493f0b60e85
2021-06-04 15:26:55 -04:00
David Vallee Delisle 6eb72aa769 Adding an optional startup delay to nova-compute
We need an optional delay on nova-compute when it's waiting for ceph to
be healthy. This commit is adding a wrapper that will be deployed when
necessary.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1498621

Change-Id: Ie7ad2d835c1762dc4b9341e305e6a428cb087935
2020-12-18 08:52:47 -05:00
Rajesh Tailor a672bedfc2 Fix typos
Change-Id: Ia9b0410d1ade1abc2d29d3634379b9128016d0e9
2020-09-16 15:45:12 +05:30
Bogdan Dobrelya 341ec7b9cc Drop unused remnants of the hosts-config bits
Hosts entries are used to be configured via tripleo_ansible's
tripleo_hosts_entries.

Ifd4bc4ce5618587c341ecbf37f82777ae6fc2f4a removed the use
of WRITE_HOSTS, which currently makes hosts-config.yaml "headless" and
taking no real data for the hosts-config.sh template that generates
outputs for OS::TripleO::Hosts::SoftwareConfig.

Also I606e0f27f9f9ae9d85bc0fc653f8985eb734d004 removed the use of
HOST_ENTRY, which makes the hosts-config.sh taking an empty value for
it.

Probably that all makes it safe now to remove any use of
hosts-config.sh and hosts-config.yaml and corresponding
OS::TripleO::Hosts::SoftwareConfig completely.

Change-Id: Id04767ae0c32caf62271cf564608350974fefd1b
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2020-03-24 10:41:35 +01:00
Emilien Macchi 0b0553fdf7 Move instanceha into scripts
So we can clear out the extraconfig directory sometimes soon.

Change-Id: I8a5baeff456a569fb0e398b33dd90166d8720b41
2019-07-18 19:13:08 +00:00
James Slagle 79d9113e5d Use ansible for HostsConfig
Replace the HostsConfig SoftwareDeployment with an ansible task.

implements: blueprint reduce-deployment-resources
Change-Id: Ifd4bc4ce5618587c341ecbf37f82777ae6fc2f4a
2019-06-17 12:05:27 +00:00
Natal Ngétal 6e901b3d6b [Templates] Use str_replace for hosts.
There is a limit to how long input data can be for the heat script hook.

Change-Id: I48286e300874d7d8311d2ef14f95b6fc87ed579c
Closes-Bug: #1772673
2018-11-12 16:33:27 +01:00
Alex Schultz e34cfb63d9 Cleanup hosts name on initial install
When we initially install our heat hosts configuration, we need to make
sure the short hostname for the host is not currently defined within the
hosts file as it will conflict with our definitions later in the file.

We only do this on initial installation as we don't want to touch the
file after the initial deployment outside of the matching host entries.
This also is restricted to just the short hostname which is consumed via
the configuration management for determining bootstrap configurations as
well as used by some services during startup (rabbitmq)

Change-Id: If55cf8f90ee7be4acd40fda1f72bb1f31d218b57
Related-Blueprint: all-in-one
2018-07-09 15:02:08 -06:00
Steven Hardy 92b238ea17 Avoid awk error in hosts-config.sh for large deployments
This ports the fixes made to the legacy 51-hosts script, which this
script is derived from, to tht.

See related t-i-e patch Ibe0a9f6ec10d55750e3b0e16301236141f988d69

Change-Id: Ide922af93a5d185bd592e220327326f1d244c4e2
Closes-Bug: #1674732
2017-04-07 10:50:39 +01:00
Steve Baker f592e195e2 Don't rely on lsb_release for hosts template write
This is problematic for the containerised heat-agents, lsb_release has
to be bind-mounted in, and atomic host doesn't even have lsb_release
installed.

Instead just write to every /etc/cloud/templates/hosts.*.tmpl file.

Change-Id: If2aab7e9b1e03aa657baf1c33aa4392ef7044075
2016-12-08 20:09:26 +00:00
Dan Prince f02742a981 Configure /etc/hosts via os-collect-config script
This patch moves the t-i-e element code for hosts configuration
into a t-h-t shell script that gets driven by a os-collect-config
script hook.

This helps accomplish several goals:

 - moves us away from t-i-e

 - gives us better signal handling in the error case (where the
   previous element relied on 99-refresh-completed

 - Allows the t-h-t undercloud installer to more easily consume this
   since it doesn't rely on the old os-apply-config metadata (which
   that installer doesn't support).

Change-Id: I73c3d4818ef531a3559fab272521f44519e2f486
2016-11-30 14:22:36 -05:00