[MXS-1932] MaxScale reads hidden files from maxscale.cnf.d Created: 2018-06-18  Updated: 2020-08-17  Resolved: 2018-06-21

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.2.9
Fix Version/s: 2.2.10

Type: Bug Priority: Major
Reporter: David Thompson (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-3115 Error loading kubernetes mounted cnf Closed

 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.



 Comments   
Comment by markus makela [ 2018-06-20 ]

Any idea where those hidden files come from? They are not in the MaxScale repository.

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