Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13993

Transition from 'net-tools' to 'iproute2'

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • N/A
    • wsrep
    • None

    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?

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova added a comment - anikitin , sachin.setiya.007 , serg , FYI.

            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
            

            anikitin Andrii Nikitin (Inactive) added a comment - 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

            Those where 10.1 dependencies, 10.2 has additionally :

            wsrep_sst_rsync:which ifconfig
            wsrep_sst_rsync:which ip
            

            anikitin Andrii Nikitin (Inactive) added a comment - Those where 10.1 dependencies, 10.2 has additionally : wsrep_sst_rsync: which ifconfig wsrep_sst_rsync: which ip

            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

            serg Sergei Golubchik added a comment - 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
            mschorm Michal Schorm added a comment -

            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.

            mschorm Michal Schorm added a comment - 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.
            mschorm Michal Schorm added a comment -

            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.

            mschorm Michal Schorm added a comment - 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.

            People

              Unassigned Unassigned
              mschorm Michal Schorm
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.