5 Commits

Author SHA1 Message Date
Dan Prince
f316311a38 move undercloud-upgrade.yaml into deployment
Change-Id: Iea06bac12043318ff773ccc49315173f8b55c0a6
Related-Blueprint: services-yaml-flattening
2019-03-21 07:29:46 -04:00
Emilien Macchi
e36cbb9524 Remove UpgradeRemoveUnusedPackages from undercloud-upgrade-prepare.yaml
We're creating a new parameter "undercloud_cleanup" in tripleoclient for
undercloud.conf, so our operators can cleanup the undercloud after an
upgrade.

Change-Id: I1b7a786cbf8171d1d89048b1a2524adec89b1267
2018-05-24 22:31:29 +00:00
Emilien Macchi
8ef2e7ee19 Add missing UndercloudUpgrade to environment
UndercloudUpgrade needs to be set to True when upgrading a containerized
undercloud. It was missed in a previous patch.

Change-Id: I5f06052b1d5290f8193aea57bafc8ddf86d2d8cf
2018-05-16 11:58:28 -07:00
Emilien Macchi
77aa6763f6 Undercloud upgrades will use upgrade_tasks
Instead of using host_prep_tasks (which are part of deployment tasks),
we'll use the upgrade tasks that are now well known and tested in
previous releases, when the we containerized the overcloud.

Depends-On: Id25e6280b4b4f060d5e3f78a50ff83aaca9e6b1a
Change-Id: Ic199c7d431e155e2d37996acd0d7b924d14af2b7
2018-05-05 06:52:34 +00:00
Emilien Macchi
d86025593b Handle undercloud upgrades via host_prep_tasks
Using host_prep_tasks interface to handle undercloud teardown before we
run the undercloud install.
The reason of not using upgrade_tasks is because the existing tasks were
created for the overcloud upgrade first and there are too much logic
right now so we can easily re-use the bits for the undercloud. In the
future, we'll probably use upgrade_tasks for both the undercloud and
overcloud but right now this is not possible and a simple way to move
forward was to implement these tasks that work fine for the undercloud
containerization case.

Workflow will be:
- Services will be stopped and disabled (except mariadb)
- Neutron DB will be renamed, then mariadb stopped & disabled
- Remove cron jobs
- All packages will be upgraded with yum update.

Change-Id: I36be7f398dcd91e332687c6222b3ccbb9cd74ad2
2018-04-12 18:14:28 -07:00