-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/mariadb-upgrade-10.2 #6149
Conversation
I run a pipeline here to see if build passed: https://gitlab.com/inverse-inc/packetfence/-/pipelines/263867228. If build passed, you should have a package ready for your tests on Debian and CentOS. |
5b8d812
to
1d108de
Compare
I've tested out the upgrade so far and I get Mariadb errors:
|
1d108de
to
36de912
Compare
haproxy-admin errors also:
|
lib/pf/dal.pm
Outdated
@@ -114,6 +114,7 @@ sub db_execute { | |||
unless ($sth && $sth->execute(@bind)) { | |||
my $err = $dbh->err; | |||
my $errstr = $dbh->errstr; | |||
print STDERR "$errstr\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove tab
347677c
to
00cf39b
Compare
1b05936
to
9f11cb8
Compare
9f11cb8
to
690181a
Compare
What's preventing us from merging that branch now? |
Needs at least a rebase |
I still testing it. I have some weird issues with it. |
5cf032a
to
3f3eed1
Compare
Here is a list of the things we'd need in my opinion:
|
c7cbae5
to
4a6cf75
Compare
Description
Upgrade to MariaDB
NEW Package(s) required
MariaDB-server-10.2.37
MariaDB-client-10.2.37
Issue
fixes #5907
Delete branch after merge
YES
Checklist
NEWS file entries
Enhancements
UPGRADE file entries
MariaDB upgrade (CentOS + RHEL only)
Before packetfence upgrade:
In order to upgrade the MariaDB metadata files and tables, first stop any started process.
systemctl stop packetfence-mariadb
rpm -e --nodeps MariaDB-client MariaDB-common MariaDB-server MariaDB-shared
yum install --enablerepo=packetfence MariaDB-server-10.2.37
Then start a mysqld_safe process manually (this will start a background process)
systemctl unmask mariadb
systemctl start mariadb
Then, execute the upgrade script and enter the root password when prompted
mysql_upgrade -u root -p
When done, stop mariadb
systemctl stop mariadb
systemctl mask mariadb
Note that it might take up to a few minutes for the process to exit depending on the size of your database.
Once done, restart the MariaDB service (managed by PacketFence)
systemctl start packetfence-mariadb
Next proceed with yum update packetfence
Centos7 Cluster upgrade
bin/pfcmd service pf stop
systemctl stop packetfence-mariadb
rpm -e --nodeps MariaDB-client MariaDB-common MariaDB-server MariaDB-shared
yum install --enablerepo=mariadb MariaDB-server MariaDB-backup
systemctl unmask mariadb
systemctl start mariadb
if error with "Recovering after a crash using tc.log" then delete tc.log
mysql_upgrade -u root -p
systemctl stop mariadb
systemctl mask mariadb
yum update packetfence --enablerepo=packetfence
bin/pfcmd generatemariadbconfig
/usr/local/pf/sbin/pf-mariadb --force-new-cluster
Debian 9 only
Before packetfence upgrade:
dpkg -r --force-depends mariadb-server mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 libmariadbclient18
apt install mariadb-server-10.2 mariadb-common mariadb-client-10.2 mariadb-client-core-10.2 mariadb-server-core-10.2 libmariadb3 libmariadbclient18 mariadb-server