Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1932

MaxScale reads hidden files from maxscale.cnf.d

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.2.9
    • 2.2.10
    • Core
    • None

    Description

      If you setup and use /etc/maxscale.cnf.d, it will include files:

      • example.cnf
      • .example.cnf
      • .directory/example.cnf

      This is a problem if you use a kubernetes persistent volume mapped to a configmap (containing say example.cnf=...) because you will end up with the following actually on disk:

      • example.cnf
      • .<GUID>/example.cnf

      Maxscale then won't startup because it loads both and has duplicate configurations. I think the logic to find the cnf files should exclude all hidden files and directories as i can't think of a good reason why anyone would want to do that.

      To workaround this i used the configdir argument to load from a specific directory but this means i can only support one file.

      Attachments

        Issue Links

          Activity

            People

              markus makela markus makela
              dthompson David Thompson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.