diff options
| author | wangxiyuan <wangxiyuan1007@gmail.com> | 2022-02-21 06:33:41 +0000 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2022-03-28 07:54:49 +0000 |
| commit | 01ed75acefddb3247b697f3ab37c1a222e35e129 (patch) | |
| tree | b1841ed55241a6a0cc7347ee52a4eea55ed0b29b /tests/pre.yml | |
| parent | 318e739f12ec09b05eac6dfa46ac3f828155fbde (diff) | |
| download | kolla-ansible-01ed75acefddb3247b697f3ab37c1a222e35e129.tar.gz kolla-ansible-01ed75acefddb3247b697f3ab37c1a222e35e129.zip | |
Add openEuler Distro support
openEuler is the newest open source operating system, which is quite
famous and widely used in China. This patch aims to add the OS support
in kolla-ansible for the host OS.
bp: support-openeuler-os
Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/830320
Change-Id: I66dc84f02c324dbc0787ec25d4bd92ada9362e94
Diffstat (limited to 'tests/pre.yml')
| -rw-r--r-- | tests/pre.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/pre.yml b/tests/pre.yml index 7bbd5ae55..def38158a 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -102,6 +102,32 @@ use: systemd become: true + # NOTE(wxy): There are some issues on openEuler, fix them by hand. + # 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 + shell: + cmd: | + dnf install -y iptables-nft + iptables-save > iptables.txt + 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: Let ntp service work + shell: timedatectl show-timesync + become: true + when: ansible_facts.distribution == 'openEuler' + - name: Wait for ntp time sync command: timedatectl status register: timedatectl_status |
