diff options
| author | wangxiyuan <wangxiyuan1007@gmail.com> | 2022-08-08 11:01:54 +0800 |
|---|---|---|
| committer | wangxiyuan <wangxiyuan1007@gmail.com> | 2022-08-22 00:51:19 +0000 |
| commit | bafdab171dfb3aed9d781e6a8505e1fd99864704 (patch) | |
| tree | 2144a70a3ca4cf7a5847d4324400c68a0c13644c /tests/pre.yml | |
| parent | 7c36bbfa00b6c5b6897ae2086529cb527b348f6c (diff) | |
| download | kolla-ansible-bafdab171dfb3aed9d781e6a8505e1fd99864704.tar.gz kolla-ansible-bafdab171dfb3aed9d781e6a8505e1fd99864704.zip | |
Upgrade openEuler Distro
openEuler 20.03 LTS SP2 is out of date. This patch:
1. Upgrade openEuler to 22.03 TLS for host OS.
2. Switch guest OS from centOS 8 to ubuntu
Change-Id: If2ff036e965def141f67240945802611e1f4dc4e
Diffstat (limited to 'tests/pre.yml')
| -rw-r--r-- | tests/pre.yml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/pre.yml b/tests/pre.yml index def38158a..75d12d14e 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -106,12 +106,10 @@ # 1. iptables-legacy is used by default. # 2. NTP sync doesn't work by default. - block: - # The CentOS Stream 8 in container uses iptables-nft while the host - # openEuler uses iptables-legacy by default. We should update openEuler - # to keep iptables the same. - # Ubuntu 20.04 container OS uses iptables-legacy by default. It works - # well on openEuler. - - name: Set iptables from legacy to nft for centos stream container + # The Ubuntu 22.04 in container uses iptables-nft while the host + # openEuler 22.03 uses iptables-legacy by default. We should update + # openEuler to keep iptables the same. + - name: Set iptables from legacy to nft for container shell: cmd: | dnf install -y iptables-nft @@ -119,10 +117,14 @@ iptables-nft-restore < iptables.txt update-alternatives --set iptables /usr/sbin/iptables-nft become: true - when: base_distro == 'centos' # The command `timedatectl status` always times out if the command # `timedatectl show-timesync` is not run first. + - name: Install systemd-timesyncd + package: + name: systemd-timesyncd + state: present + become: True - name: Let ntp service work shell: timedatectl show-timesync become: true |
