Merge "Remove stop-chrony.yml"

This commit is contained in:
Zuul 2019-12-09 11:27:14 +00:00 committed by Gerrit Code Review
commit 74da0d4531
4 changed files with 6 additions and 64 deletions

View File

@ -1,28 +0,0 @@
---
# NOTE(mgoddard): In the Rocky release, Kolla Ansible enabled the chrony
# container by default. Running this alongside the NTP daemon on the host is
# likely to cause issues, so we should explicitly disable it. Kolla Ansible
# won't automatically stop the container, so we do it here if it is disabled.
# See https://storyboard.openstack.org/#!/story/2005272.
- name: Stop the chrony container
hosts: overcloud
vars:
# kolla_overcloud_inventory_top_level_group_map looks like:
# kolla_overcloud_inventory_top_level_group_map:
# control:
# groups:
# - controllers
overcloud_nodes_in_kolla_inventory: >-
{{ kolla_overcloud_inventory_top_level_group_map.values() |
map(attribute='groups') | flatten | unique | join(':') }}
tags:
- stop-chrony
tasks:
- name: Stop the chrony container
docker_container:
name: chrony
state: absent
when:
- not kolla_enable_chrony | bool
- inventory_hostname in query('inventory_hostnames', overcloud_nodes_in_kolla_inventory)

View File

@ -1203,11 +1203,6 @@ class OvercloudServiceDeploy(KollaAnsibleMixin, KayobeAnsibleMixin, VaultMixin,
if not parsed_args.skip_prechecks:
self.run_kolla_ansible_overcloud(parsed_args, "prechecks")
# Workaround: Stop the chrony container.
# TODO(mgoddard): Remove in the Train cycle.
playbooks = _build_playbook_list("stop-chrony")
self.run_kayobe_playbooks(parsed_args, playbooks, limit="overcloud")
# Perform the kolla-ansible deployment.
self.run_kolla_ansible_overcloud(parsed_args, "deploy")
@ -1301,11 +1296,6 @@ class OvercloudServiceReconfigure(KollaAnsibleMixin, KayobeAnsibleMixin,
if not parsed_args.skip_prechecks:
self.run_kolla_ansible_overcloud(parsed_args, "prechecks")
# Workaround: Stop the chrony container.
# TODO(mgoddard): Remove in the Train cycle.
playbooks = _build_playbook_list("stop-chrony")
self.run_kayobe_playbooks(parsed_args, playbooks, limit="overcloud")
# Perform the kolla-ansible reconfiguration.
self.run_kolla_ansible_overcloud(parsed_args, "reconfigure")
@ -1355,11 +1345,6 @@ class OvercloudServiceUpgrade(KollaAnsibleMixin, KayobeAnsibleMixin,
if not parsed_args.skip_prechecks:
self.run_kolla_ansible_overcloud(parsed_args, "prechecks")
# Workaround: Stop the chrony container.
# TODO(mgoddard): Remove in the Train cycle.
playbooks = _build_playbook_list("stop-chrony")
self.run_kayobe_playbooks(parsed_args, playbooks, limit="overcloud")
# Perform the kolla-ansible upgrade.
self.run_kolla_ansible_overcloud(parsed_args, "upgrade")

View File

@ -1525,13 +1525,6 @@ class TestCase(unittest.TestCase):
],
ignore_limit=True,
),
mock.call(
mock.ANY,
[
utils.get_data_files_path("ansible", "stop-chrony.yml"),
],
limit="overcloud",
),
mock.call(
mock.ANY,
[
@ -1650,13 +1643,6 @@ class TestCase(unittest.TestCase):
],
ignore_limit=True,
),
mock.call(
mock.ANY,
[
utils.get_data_files_path("ansible", "stop-chrony.yml"),
],
limit="overcloud",
),
mock.call(
mock.ANY,
[
@ -1721,13 +1707,6 @@ class TestCase(unittest.TestCase):
],
ignore_limit=True,
),
mock.call(
mock.ANY,
[
utils.get_data_files_path("ansible", "stop-chrony.yml"),
],
limit="overcloud"
),
mock.call(
mock.ANY,
[

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Removes transitional support for stopping the chrony container when
``kolla_enable_chrony`` is ``false``. See `story 2006949
<https://storyboard.openstack.org/#!/story/2006949>`__ for details.