SUSE: Add support for openSUSE Leap 15

Change-Id: I7aaa59194dfe00a851c854728265c31d2dae5ca5
This commit is contained in:
Markos Chandras 2018-09-21 14:16:29 +01:00
parent 6f2777a950
commit a960e83a6c
7 changed files with 89 additions and 9 deletions

15
Vagrantfile vendored
View File

@ -80,4 +80,19 @@ Vagrant.configure(2) do |config|
SHELL SHELL
end end
config.vm.define "opensuse150" do |leap150|
leap150.disksize.size = disk_size
leap150.vm.box = "opensuse/openSUSE-15.0-x86_64"
leap150.vm.provision "shell",
privileged: true,
inline: <<-SHELL
cd /vagrant
zypper -qn in gdisk
echo -e 'x\ne\nw\ny\n' | gdisk /dev/sda
parted -s /dev/sda unit GB resizepart 3 100%
btrfs fi resize max /
./scripts/gate-check-commit.sh
SHELL
end
end end

View File

@ -47,8 +47,8 @@
- (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial') or - (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial') or
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'bionic') or (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'bionic') or
(ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') or
(ansible_os_family == 'Suse' and ansible_distribution_major_version == '42') (ansible_os_family == 'Suse' and ansible_distribution_major_version in ['15', '42'])
msg: "The only supported platforms for this release are Ubuntu 16.04 LTS (Xenial), Ubuntu 18.04 LTS (Bionic), CentOS 7 (WIP) and openSUSE Leap 42.X (WIP)" msg: "The only supported platforms for this release are Ubuntu 16.04 LTS (Xenial), Ubuntu 18.04 LTS (Bionic), CentOS 7 (WIP) and openSUSE Leap 42.X and openSUSE Leap 15.X"
- include: common-tasks/package-cache-proxy.yml - include: common-tasks/package-cache-proxy.yml
when: install_method == "source" when: install_method == "source"

View File

@ -86,11 +86,12 @@ case ${DISTRO_ID} in
opensuse*) opensuse*)
zypper -n install -l git-core curl autoconf gcc gcc-c++ \ zypper -n install -l git-core curl autoconf gcc gcc-c++ \
netcat-openbsd python python-xml python-devel gcc \ netcat-openbsd python python-xml python-devel gcc \
libffi-devel libopenssl-devel python-virtualenv libffi-devel libopenssl-devel python-setuptools python-virtualenv
# Leap ships with python3.4 which is not supported by ansible and as # Leap 42.3 ships with python3.4 which is not supported by ansible and as
# such we are using python2 # such we are using python2
# See https://github.com/ansible/ansible/issues/24180 # See https://github.com/ansible/ansible/issues/24180
PYTHON_EXEC_PATH="/usr/bin/python2" source /etc/os-release
[[ ${VERSION} =~ 42 ]] && PYTHON_EXEC_PATH="/usr/bin/python2"
;; ;;
esac esac

View File

@ -19,8 +19,8 @@
- (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial') or - (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial') or
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'bionic') or (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'bionic') or
(ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') or (ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7') or
(ansible_os_family == 'Suse' and ansible_distribution_major_version == '42') (ansible_os_family == 'Suse' and ansible_distribution_major_version in ['42', '15'])
msg: "The only supported platforms for this release are Ubuntu 16.04 LTS (Xenial), Ubuntu 18.04 LTS (Bionic), CentOS 7 (WIP) and openSUSE Leap 42.X (WIP)" msg: "The only supported platforms for this release are Ubuntu 16.04 LTS (Xenial), Ubuntu 18.04 LTS (Bionic), CentOS 7 (WIP), openSUSE Leap 42.X and openSUSE Leap 15.X"
when: (check_operating_system | default(True))| bool when: (check_operating_system | default(True))| bool
tags: tags:
- check-operating-system - check-operating-system

View File

@ -30,5 +30,15 @@
backup: yes backup: yes
- name: Ensure hostname is set - name: Ensure hostname is set
hostname: block:
name: aio1 - name: Set hostname using the Ansible module
hostname:
name: aio1
# NOTE(hwoarang) The hostname module does not work on Leap 15 because of
# https://bugzilla.novell.com/show_bug.cgi?id=997614
# As such we need to fallback to using the command directly.
rescue:
- name: Set hostname using hostnamectl
command: hostnamectl set-hostname aio1
tags:
- skip_ansible_lint

View File

@ -235,6 +235,11 @@
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
nodeset: opensuse-423 nodeset: opensuse-423
- job:
name: openstack-ansible-deploy-aio_lxc-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
- job: - job:
name: openstack-ansible-deploy-aio_distro_lxc-opensuse-423 name: openstack-ansible-deploy-aio_distro_lxc-opensuse-423
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
@ -242,6 +247,13 @@
vars: vars:
install_method: distro install_method: distro
- job:
name: openstack-ansible-deploy-aio_distro_lxc-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
vars:
install_method: distro
- job: - job:
name: openstack-ansible-deploy-ceph-opensuse-423 name: openstack-ansible-deploy-ceph-opensuse-423
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
@ -250,6 +262,14 @@
action: deploy action: deploy
scenario: ceph scenario: ceph
- job:
name: openstack-ansible-deploy-ceph-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
vars:
action: deploy
scenario: ceph
- job: - job:
name: openstack-ansible-deploy-distro_ceph-opensuse-423 name: openstack-ansible-deploy-distro_ceph-opensuse-423
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
@ -259,6 +279,15 @@
scenario: ceph scenario: ceph
install_method: distro install_method: distro
- job:
name: openstack-ansible-deploy-distro_ceph-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
vars:
action: deploy
scenario: ceph
install_method: distro
- job: - job:
name: openstack-ansible-upgrade-aio_lxc-opensuse-423 name: openstack-ansible-upgrade-aio_lxc-opensuse-423
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
@ -276,9 +305,24 @@
action: deploy action: deploy
scenario: aio_metal scenario: aio_metal
- job:
name: openstack-ansible-deploy-aio_metal-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
vars:
action: deploy
scenario: aio_metal
- job: - job:
name: openstack-ansible-deploy-aio_nspawn-opensuse-423 name: openstack-ansible-deploy-aio_nspawn-opensuse-423
parent: openstack-ansible-deploy-aio parent: openstack-ansible-deploy-aio
nodeset: opensuse-423 nodeset: opensuse-423
vars: vars:
scenario: aio_nspawn scenario: aio_nspawn
- job:
name: openstack-ansible-deploy-aio_nspawn-opensuse-150
parent: openstack-ansible-deploy-aio
nodeset: opensuse-150
vars:
scenario: aio_nspawn

View File

@ -40,11 +40,13 @@
jobs: jobs:
- openstack-ansible-deploy-aio_lxc-centos-7 - openstack-ansible-deploy-aio_lxc-centos-7
- openstack-ansible-deploy-aio_lxc-opensuse-423 - openstack-ansible-deploy-aio_lxc-opensuse-423
- openstack-ansible-deploy-aio_lxc-opensuse-150
- openstack-ansible-deploy-aio_lxc-ubuntu-bionic - openstack-ansible-deploy-aio_lxc-ubuntu-bionic
gate: gate:
jobs: jobs:
- openstack-ansible-deploy-aio_lxc-centos-7 - openstack-ansible-deploy-aio_lxc-centos-7
- openstack-ansible-deploy-aio_lxc-opensuse-423 - openstack-ansible-deploy-aio_lxc-opensuse-423
- openstack-ansible-deploy-aio_lxc-opensuse-150
- openstack-ansible-deploy-aio_lxc-ubuntu-bionic - openstack-ansible-deploy-aio_lxc-ubuntu-bionic
periodic: periodic:
jobs: jobs:
@ -59,6 +61,8 @@
voting: false voting: false
- openstack-ansible-deploy-aio_distro_lxc-opensuse-423: - openstack-ansible-deploy-aio_distro_lxc-opensuse-423:
voting: false voting: false
- openstack-ansible-deploy-aio_distro_lxc-opensuse-150:
voting: false
- openstack-ansible-deploy-aio_distro_lxc-ubuntu-bionic: - openstack-ansible-deploy-aio_distro_lxc-ubuntu-bionic:
voting: false voting: false
gate: gate:
@ -70,11 +74,13 @@
jobs: jobs:
- openstack-ansible-deploy-aio_metal-centos-7 - openstack-ansible-deploy-aio_metal-centos-7
- openstack-ansible-deploy-aio_metal-opensuse-423 - openstack-ansible-deploy-aio_metal-opensuse-423
- openstack-ansible-deploy-aio_metal-opensuse-150
- openstack-ansible-deploy-aio_metal-ubuntu-bionic - openstack-ansible-deploy-aio_metal-ubuntu-bionic
gate: gate:
jobs: jobs:
- openstack-ansible-deploy-aio_metal-centos-7 - openstack-ansible-deploy-aio_metal-centos-7
- openstack-ansible-deploy-aio_metal-opensuse-423 - openstack-ansible-deploy-aio_metal-opensuse-423
- openstack-ansible-deploy-aio_metal-opensuse-150
- openstack-ansible-deploy-aio_metal-ubuntu-bionic - openstack-ansible-deploy-aio_metal-ubuntu-bionic
- project-template: - project-template:
@ -85,6 +91,8 @@
voting: false voting: false
- openstack-ansible-deploy-aio_nspawn-opensuse-423: - openstack-ansible-deploy-aio_nspawn-opensuse-423:
voting: false voting: false
- openstack-ansible-deploy-aio_nspawn-opensuse-150:
voting: false
- openstack-ansible-deploy-aio_nspawn-ubuntu-bionic: - openstack-ansible-deploy-aio_nspawn-ubuntu-bionic:
voting: false voting: false
gate: gate:
@ -105,5 +113,7 @@
jobs: jobs:
- openstack-ansible-deploy-distro_ceph-opensuse-423: - openstack-ansible-deploy-distro_ceph-opensuse-423:
voting: false voting: false
- openstack-ansible-deploy-distro_ceph-opensuse-150:
voting: false
gate: gate:
jobs: [] jobs: []