Browse Source

defaults: Bump mariadb to 10.2 release branch

mariadb 10.2 was first released in April 2016 and OpenStack services
should be ready to use it by now, so lets switch to 10.2. For mariadb
10.2 we need to use xtrabackup-24. This version is not available in Leap
42.3 so we add an extra OBS repository for it.

Change-Id: I5f1aaf1f8608ad085acfebc8458910391f280193
Markos Chandras 7 months ago
parent
commit
be75dd0604

+ 2
- 2
defaults/main.yml View File

@@ -40,8 +40,8 @@ galera_debconf_items: []
40 40
 galera_mariadb_server_package: "{{ _galera_mariadb_server_package }}"
41 41
 
42 42
 # The major version used to select the repo URL path
43
-galera_major_version: 10.1
44
-galera_minor_version: 34
43
+galera_major_version: 10.2
44
+galera_minor_version: 17
45 45
 
46 46
 # Set the URL for the MariaDB repository
47 47
 galera_repo_host: "downloads.mariadb.com"

+ 4
- 0
releasenotes/notes/update-mariadb-to-10.2-a70764ae400aadf6.yaml View File

@@ -0,0 +1,4 @@
1
+---
2
+features:
3
+  - |
4
+    The MariaDB version has been bumped to 10.2

+ 13
- 0
tasks/galera_install_zypper.yml View File

@@ -63,6 +63,19 @@
63 63
   retries: 5
64 64
   delay: 2
65 65
 
66
+- name: Install percona repo
67
+  zypper_repository:
68
+    name: "{{ galera_percona_xtrabackup_repo.name }}"
69
+    description: "{{ galera_percona_xtrabackup_repo.description }}"
70
+    repo: "{{ galera_percona_xtrabackup_repo.repo }}"
71
+    autorefresh: yes
72
+    auto_import_keys: yes
73
+    state: "{{ galera_percona_xtrabackup_repo.state }}"
74
+  register: add_repos
75
+  until: add_repos is success
76
+  retries: 5
77
+  delay: 2
78
+
66 79
 - name: Install galera_server role remote packages (zypper)
67 80
   zypper:
68 81
     name: "{{ galera_packages_list }}"

+ 1
- 2
vars/redhat-7.yml View File

@@ -61,7 +61,6 @@ galera_server_upgrade_packages_remove:
61 61
 
62 62
 galera_mariadb_service_name: "mariadb"
63 63
 
64
-# TODO(evrardjp): Unfreeze version to 10.1 branch when clustering issue is solved.
65 64
 _galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/centos7-amd64"
66 65
 _galera_repo:
67 66
   name: MariaDB
@@ -74,7 +73,7 @@ _galera_percona_xtrabackup_repo:
74 73
 
75 74
 galera_server_percona_distro_packages:
76 75
   - percona-toolkit
77
-  - percona-xtrabackup
76
+  - percona-xtrabackup-24
78 77
   - "{{ (galera_xtrabackup_compression | bool) | ternary('qpress', '') }}"
79 78
 
80 79
 galera_wsrep_provider: "/usr/lib/galera/libgalera_smm.so"

+ 8
- 1
vars/suse-42.yml View File

@@ -60,13 +60,20 @@ galera_server_upgrade_packages_remove:
60 60
 
61 61
 galera_mariadb_service_name: "mariadb"
62 62
 
63
-# TODO(evrardjp): Unfreeze version to 10.1 branch when clustering issue is solved.
64 63
 _galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/yum/opensuse42-amd64"
65 64
 _galera_repo:
66 65
   name: MariaDB
67 66
   description: "MariaDB Repo"
68 67
   baseurl: "{{ galera_repo_url }}"
69 68
 
69
+# NOTE(hwoarang): Extra repository is only needed for 42.3. If this starts failig due to network issues we should
70
+# simply pin 10.1.31 to Leap 42.3
71
+_galera_percona_xtrabackup_repo:
72
+  name: "OBS:home:markoschandras:osa"
73
+  description: "OBS OpenStack Ansible repository"
74
+  repo: "https://download.opensuse.org/repositories/home:/markoschandras:/osa/openSUSE_Leap_{{ ansible_distribution_version }}"
75
+  state: "{{ (ansible_distribution_major_version == '42') | ternary('present', 'absent') }}"
76
+
70 77
 galera_server_percona_distro_packages:
71 78
   - percona-toolkit
72 79
   - percona-xtrabackup

+ 2
- 3
vars/ubuntu.yml View File

@@ -58,7 +58,7 @@ _galera_mariadb_server_package: "mariadb-server-{{ galera_major_version }}"
58 58
 # the preseed task and the service startup control used when installing
59 59
 # mariadb-galera-server and galera.
60 60
 galera_server_mariadb_distro_packages:
61
-  - libmariadbclient-dev
61
+  - libmariadb-dev
62 62
   - mariadb-client
63 63
   - "{{ galera_mariadb_server_package }}"
64 64
   - galera-3
@@ -84,7 +84,7 @@ galera_debconf_items:
84 84
 
85 85
 galera_server_percona_distro_packages:
86 86
   - percona-toolkit
87
-  - percona-xtrabackup
87
+  - percona-xtrabackup-24
88 88
   - "{{ (galera_xtrabackup_compression | bool) | ternary('qpress', '') }}"
89 89
 
90 90
 # Repositories
@@ -93,7 +93,6 @@ _galera_percona_xtrabackup_repo:
93 93
   state: "{{ (use_percona_upstream | bool) | ternary('present', 'absent') }}"
94 94
   filename: "Percona"
95 95
 
96
-# TODO(evrardjp): Unfreeze version to 10.1 branch when clustering issue is solved.
97 96
 _galera_repo_url: "http://{{ galera_repo_host }}/MariaDB/mariadb-{{ galera_major_version }}.{{ galera_minor_version }}/repo/ubuntu"
98 97
 _galera_repo:
99 98
   repo: "deb {{ galera_repo_url }} {{ ansible_distribution_release }} main"

Loading…
Cancel
Save