Remove stop-chrony.yml
Remove transitional support for stopping the chrony container. This was originally added for https://storyboard.openstack.org/#!/story/2005272. Change-Id: Ief43e723b8f4b97fdcd5960aabfb7208beb0b7cd Story: 2006949 Task: 37630
This commit is contained in:
parent
a30cf063d1
commit
085484478a
@ -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)
|
@ -1208,11 +1208,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")
|
||||
|
||||
@ -1266,11 +1261,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")
|
||||
|
||||
@ -1323,11 +1313,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")
|
||||
|
||||
|
@ -1524,13 +1524,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,
|
||||
[
|
||||
@ -1598,13 +1591,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,
|
||||
[
|
||||
@ -1672,13 +1658,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,
|
||||
[
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user