GithubHelp home page GithubHelp logo

Failed to start controller : can t find valid default client configuration template file or file not json about beegfs-csi-driver HOT 4 CLOSED

thinkparq avatar thinkparq commented on June 12, 2024
Failed to start controller : can t find valid default client configuration template file or file not json

from beegfs-csi-driver.

Comments (4)

seb-835 avatar seb-835 commented on June 12, 2024

i search and got more details on my case,

in the sts deploiement file, the controller is set to run on master/control place node.
On my infrastructure, only nodes have infiniband and beegfs tools and setting, so that' s why it failed looking for /etc/beegfs/beegfs-client.conf file on master nodes.

Anyway, i copy the file to the master nodes, and now got :

"failed to handle configuration file: likely missing quotes around an integer or boolean beegfsClientConf value: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field BeegfsConfig.config.beegfsClientConf of type string" "fullError"="error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field BeegfsConfig.config.beegfsClientConf of type string\nlikely missing quotes around an integer or boolean beegfsClientConf value\ngithub.com/netapp/beegfs-csi-driver/pkg/beegfs.parseConfigFromFile

That's true the file is a not json file.
Can you share an example of your /etc/beegfs/beegfs-client.conf for me to compare with mine and then i can adapt it on my controlplane nodes

from beegfs-csi-driver.

ejweber avatar ejweber commented on June 12, 2024

Hello @seb-835. There are likely a couple of things at play here:

  1. You mentioned that master nodes in your infrastructure are incapable of running (or do not run) BeeGFS services. While the initial error you get when trying to run the BeeGFS CSI driver on nodes like this relates to a missing beegfs-client.conf file, simply copying the file to these nodes is not a fix. The driver will eventually fail for other reasons (as it must be able to use BeeGFS related modules and programs on the node where it runs). The correct approach is to patch the deployment manifests so that the driver is never scheduled to run on incapable nodes. See https://github.com/NetApp/beegfs-csi-driver/blob/master/docs/deployment.md#deployment-to-kubernetes-clusters-with-mixed-nodes for detailed instructions. Feel free to reach out with specific questions if this does not go well.
  2. The unmarshalling error you are seeing is not occurring when the driver is reading /etc/beegfs/beegfs-client.conf (this file should generally remain in its default state). It is occurring when the driver reads in your csi-beegfs-config ConfigMap. You have included a large number of parameters here, many of which are simply the defaults. It is only necessary to specify parameters in this file if/when they need to be different than the defaults specified in /etc/beegfs/beegfs-client.conf. However, if you do specify parameters here, booleans and integers must be quoted as strings. I recommend you remove any parameters from the ConfigMap you don't need and fix any booleans or integers you do need.
  3. Note that it is incorrect to specify sysMgmtdHost in the beegfsClientConf section of the ConfigMap (the driver will log a warning). sysMgmtdHost is specified individually for each PersistentVolume (and set automatically on provisioned PersistentVolmes according to the StorageClass parameters).

from beegfs-csi-driver.

seb-835 avatar seb-835 commented on June 12, 2024

Hi @ejweber ,
i am very grateful for this long and detailed answer, many thanks, this resolve my trouble !!!

from beegfs-csi-driver.

ejweber avatar ejweber commented on June 12, 2024

Glad to hear the issue is resolved!

from beegfs-csi-driver.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.