[MDEV-13993] Transition from 'net-tools' to 'iproute2' Created: 2017-10-03  Updated: 2017-10-05  Resolved: 2017-10-05

Status: Closed
Project: MariaDB Server
Component/s: wsrep
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Michal Schorm Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12697 socat dependency for sst in 10.1+ Closed

 Description   

Hello,

Fedora decided to kill 'net-tools' package.
Here you can find the story behind.
Instead of this package, which was deprecated for a long time, a new set of tools should be used. The package is called 'iproute2'.

MariaDB depends on net-tools package for wsrep.
This is a bugzilla for mariadb package and it will be my main communication channel with a guy behind this change.
He even offers help with the transition itself, so if you're not sure with something, I'm sure he'll glad to help.

To kick off the transition, here is my first question:

  • which tools from 'net-tools' package MariaDB use exactly?


 Comments   
Comment by Elena Stepanova [ 2017-10-03 ]

anikitin, sachin.setiya.007, serg, FYI.

Comment by Andrii Nikitin (Inactive) [ 2017-10-04 ]

I believe most of wsrep-specific dependencies are related to sst scripts. (And my strong wish that server packages do not depend on sst-specific tools).
Most noticable are:
https://github.com/MariaDB/server/blob/10.2/scripts/wsrep_sst_xtrabackup-v2.sh
https://github.com/MariaDB/server/blob/10.2/scripts/wsrep_sst_rsync.sh

/usr/bin$ grep -oP '(which\s)\w+' wsrep_*
wsrep_sst_mariabackup:which pv
wsrep_sst_mariabackup:which nc
wsrep_sst_mariabackup:which socat
wsrep_sst_mariabackup:which pv
wsrep_sst_mariabackup:which timeout
wsrep_sst_mariabackup:which logger
wsrep_sst_mariabackup:which qpress
wsrep_sst_rsync:which lsof
wsrep_sst_rsync:which lsof
wsrep_sst_xtrabackup:which pv
wsrep_sst_xtrabackup:which nc
wsrep_sst_xtrabackup:which socat
wsrep_sst_xtrabackup:which innobackupex
wsrep_sst_xtrabackup:which qpress
wsrep_sst_xtrabackup-v2:which pv
wsrep_sst_xtrabackup-v2:which nc
wsrep_sst_xtrabackup-v2:which socat
wsrep_sst_xtrabackup-v2:which pv
wsrep_sst_xtrabackup-v2:which timeout
wsrep_sst_xtrabackup-v2:which logger
wsrep_sst_xtrabackup-v2:which qpress

Comment by Andrii Nikitin (Inactive) [ 2017-10-04 ]

Those where 10.1 dependencies, 10.2 has additionally :

wsrep_sst_rsync:which ifconfig
wsrep_sst_rsync:which ip

Comment by Sergei Golubchik [ 2017-10-04 ]

Gentoo has moved from net-tools to iproute2 quite a while ago. And looking at mariadb-galera ebuild in gentoo I don't see any patches or changes related to this transition, they've just added a dependency on iproute2.

of course, I might be missing something

Comment by Michal Schorm [ 2017-10-04 ]

Thanks,

It *could* be easy as just switching dependecy, however I'll take the chance asking the guy behind those packages in Fedora, if he spot something, which could use more of our interest.

Comment by Michal Schorm [ 2017-10-04 ]

Looks like everything is fine.

You could take a look at this test James pointed out in RH bugzilla.

Easy and fast transition. That's how I like it
Thanks.

Generated at Thu Feb 08 08:10:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.