diff options
| author | Zuul <zuul@review.opendev.org> | 2022-09-01 08:13:16 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2022-09-01 08:13:16 +0000 |
| commit | b0dc2423bc4e87094d45740894331f3ef75affd8 (patch) | |
| tree | 048fa0dc949b0ebc1484fb205dfe1128652830ba /tests/pre.yml | |
| parent | 6c3513f4f47aeb34c5c5520abfa97093d70d63e3 (diff) | |
| parent | bafdab171dfb3aed9d781e6a8505e1fd99864704 (diff) | |
| download | kolla-ansible-b0dc2423bc4e87094d45740894331f3ef75affd8.tar.gz kolla-ansible-b0dc2423bc4e87094d45740894331f3ef75affd8.zip | |
Merge "Upgrade openEuler Distro"
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 1f68039a1..a15836261 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -105,12 +105,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 @@ -118,10 +116,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 |
