24 Commits

Author SHA1 Message Date
Antony Messerli
aa26271ee5 Allow for Swift Leap Upgrade to be skipped
An operator might want to ensure Swift is available during
an upgrade and manually upgrade Swift on completion of the
maintenance.

The operator would need to set these vars before operation:

   export SKIP_SWIFT_UPGRADE=yes
   export CONTAINERS_TO_DESTROY=add_!swift_all_exclusion

This would prevent the swift containers from being torn
down during the upgrade and would skip all Swift upgrade
operations.

Change-Id: Ibf40499750751dd9f41e447b7b90bb77f592cc14
2018-08-15 10:58:48 -05:00
Antony Messerli
368b9c0137 Remove destroy reminent grouped containers
This was a provider specific command which can be
removed as it could remove unintended containers.

Change-Id: I179565f84fd8176cbcb79eacc8e63e0fef554223
2018-08-06 14:54:59 -05:00
zhulingjie
08bd475017 Remove the unnecessary space
Change-Id: I95567f20ea5257f27f5b4e8fbde4da41cb186efa
2018-07-11 23:17:55 -04:00
Jean-Philippe Evrard
d7f8076294 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: I897b918785c34523688c450bec16661f0f6e496e
2018-07-12 17:05:08 +02:00
Bjoern Teipel
80db361d31 Add insecure flag for post upgrade CLI commands
In situations where self signed certs are utilized for the API,
the addition of the insecure is necessary to make post-redeploy-cleanup
work.

Change-Id: Ie5d5b6248feba5c4479567d22e74c76065725fda
2018-01-23 10:33:12 -06:00
Marc Gariepy
074a2e9530 Add reserved IP of old neutron_agent container
this should prevent the system to allocate those IP to the new neutron_agent containers.

Change-Id: Idc5207a933d1dd865ec2d480dfe368f9f5a7d3dd
2017-12-05 10:31:23 -05:00
Marc Gariepy
ce9d791291 cinder is_metal is undefined
Check if is_metal is defined, also renaming the tasks name to reduce stress.

Change-Id: Ifcd5b4d1a99ca61cbe508d4980d063a6a9adff1a
2017-12-01 10:59:01 -05:00
Zuul
0690bb6085 Merge "Clean out old mariadb apt sources" 2017-10-20 15:26:04 +00:00
Antony Messerli
027c91704c Clean out old mariadb apt sources
Cleans out old mariadb apt sources before
running redeploy to prevent issues during
leap frog with galera client.

Change-Id: Iba91de800d4f1ec66a062e2213344e61c392407b
2017-10-19 22:20:28 -05:00
Frank-ZhangXin
0176aa4624 Exclude elasticsearch from container-destroy task
The goal is to keep elasticsearch logs from leap upgrade from Kilo,
Liberty and Mitaka to Newton.

Change-Id: I14840c16266dcfe2ed0aa0b89078adae441c8569
2017-10-18 15:09:43 -05:00
Kevin Carter
c19a606d58 Save the rsyslog containers
These containers store logs within them and it would be bad to lose
these logs.

Change-Id: I0b3b114dce89c6e55d54efb351788e0cfe85c3b4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-09-06 16:38:31 -05:00
Bjoern Teipel
b7f4419eaf Fixing neutron-mtu-migration.yml
Adding closing quote for neutron-mtu-migration.yml task

Change-Id: Ic58fc594170f4213ac74f12434232223dccdb0d7
2017-08-25 20:20:38 -05:00
Bjoern Teipel
3966b98706 Prefix tasks with ostack versions
The DB migrations are using recurring task names,
making it difficult to isolate which version task ran.
The prefix of each task with the actual base OpenStack
version makes it easier to identify those, especially
in a leapfrog situation.

Change-Id: I9c2b711452208be28bef421a5e536bd2bf8a9a03
2017-08-25 16:08:33 -05:00
Matthew Thode
575c9b7b12
Fix Newton cinder-manage check used in db-upgrades
cinder-manage service list does not output a usable, full, hostname;
just the short hostname is output.  To fix this we need to query the
database directly.

We also change the behavior of this operation to drop all services.  We
do this at the recommendation of upstream cinder.  This is safe because
all cinder services are stopped and the services will re-register when
restarted.

Related-Bug: #1712372
Change-Id: I6d845165ec22d4c2aeece0636a550e0b57050c22
2017-08-22 10:16:49 -05:00
Jean-Philippe Evrard
fea4cfd7ec Prevent Ceph containers delete in leapfrog
During leapfrog all containers are deleted, and ceph containers
are no exception.

This adds exceptions into the process:
- One on the generic container delete;
- One on the Juno container delete of any remnant container.

Change-Id: I34812f4472594998f3e40b4a5cb650e396a80421
2017-08-17 12:47:45 +00:00
Jean-Philippe Evrard
7547fa4b8f Cleanup HAProxy before re-deploying haproxy
HAProxy should not have an init that loads conf.d files, like it
was done on K, and removed in N, during the haproxy installation.
Else the installation of the package will fail, because it will
load the conf.d files.

Change-Id: I345089cc3493b90c1c4fbd2d47c51f83c65c94f4
2017-08-11 15:57:48 +01:00
Jean-Philippe Evrard
0de82c08d9 Remove the | changed idempotency breaker
If we interrupt the process in unarchive, we'll have a broken
idempotency state: The leapfrog process will run again the venv
prep, the synchronize will be unchanged, and the unarchive
rewire will never run.

Change-Id: I8e91ef39d4ecbc9ff5a6a4a73cd0ce4679d6ecf0
2017-08-02 17:28:46 +00:00
git-harry
b291961361 Fix neutron agent container removal
This change fixes the removal of neutron agent containers so that it no
longer relies on the containers existing on the deploy host.

The file `leapfrog_remove_remaining_old_containers` is only created on
the deploy host, when combined with the fact that the original task
couldn't fail, it resulted in the removal of the containers silently
failing on multi-node builds.

This change gets the list of containers from the file on the deploy host
before trying to delete them on all hosts.

Change-Id: Ic95187fd7e7ff93c796ce01f296cb06a16ba72bd
2017-07-27 21:14:49 +01:00
Jean-Philippe Evrard
c441ba4410 Do not delete containers named rpc.*
If leapfrogging from Kilo (and above) with a host named rpc.*
all the containers will be wiped during the step
``neutron-remove-old-containers.yml``.

Change-Id: I2e1106bcce12547d6ab9e0384cd96d5e0194001d
2017-07-11 13:36:58 +00:00
Jean-Philippe Evrard
2c4f9d110b Ensure all the packages are installed
Instead of ensuring only the package failing was installed, we
here ensure all the usual packages are installed to the proper
version to avoid headaches in the future.

Change-Id: Ibf766551a4c17adf7763f8c986b0d39cd7148979
2017-05-24 09:46:07 +00:00
Jean-Philippe Evrard
820469266f Remove when {{
Finally deprecated

Change-Id: I577e9b1731a712ecd7f26e35b84a2fb707960d14
2017-05-23 14:13:04 +01:00
Jean-Philippe Evrard
ee93901d05 Make possible to start leap from K
This change:
- discovers the current running version to know what
  to leap from, because we can't assume Juno only.
  At the same time it introduces a human verification
  of the source branch.
- removes the useless "-v" of the runs that produced
  an undesirable output, making the interface less
  "user friendly".

Change-Id: I04e4780bf5f58638addbd992eab7152f288532ae
Co-Authored-By: Jean-Philippe Evrard <jean-philippe@evrard.me>
2017-05-19 09:15:47 +00:00
Weezer Su
db9edda9c7 Correct conditional for cinder is_metal check
change the is_metal == true to is_metal != true

Change-Id: I1836a3f354a951b6761442baf2c09d8d372c459f
2017-03-21 18:58:08 +00:00
Kevin Carter
2438ad03ab Added leap upgrade tooling
This change adds upgrade tooling that will take a Juno based
OpenStack-Ansible cloud and upgrade it to Newton. The tooling
will run a deployment through all of the needed steps upgrading
the environment and skipping all of the OpenStack releases in
between.

**This tooling should be considered experimental at this time**

Change-Id: I1880794717b9e47786ae255ea1afa57d805cde8e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-02-01 14:27:07 +00:00