Dear team, we build slurm from source with the spec file provided on Rocky8. We are using slurmdbd with storage on a mysql-server. For this reason we installed mysql on the build node. We saw then that there is a dependency on mysql for the package "slurm". Is there any reason for that? Best Yann
Just for clarification, are you using the provided slurm.spec provided by the tarball from our site, or are you using another one provided by Rocky8?
We use slurm.spec from the src tarball
Hi Yann, There are 2 plugins in slurm that use the mysql libraries. The obvious one is the accounting_storage/mysql plugin which only the slurmdbd loads. The jobcomp/mysql plugin also requires mysql and can be loaded much more broadly if enabled. Due to its potential use in more than just the slurmdbd it gets packaged in the "slurm" rpm, and therefore also gets the mysql dependency. Let me know if that helps clear things up! --Tim
Hi, thanks for the clarification. Maybe it would be good to package the "tools" (sacct, sinfo etc) in a separate package without MySQL dependency? Our issue is that we compile slurm with MySQL bigger than 8 and we need sacct on our openxdmod server which doesn't support MySQL bigger than 5.x. Anyway, thanks for the information, we'll figure out a workaround, you can close the issue. Best
(In reply to Yann from comment #6) > Hi, thanks for the clarification. > > Maybe it would be good to package the "tools" (sacct, sinfo etc) in a > separate package without MySQL dependency? Its somewhat complicated to do this in an "always works" way since sacct can actually load the plugin in question. > Our issue is that we compile slurm with MySQL bigger than 8 and we need > sacct on our openxdmod server which doesn't support MySQL bigger than 5.x. > > Anyway, thanks for the information, we'll figure out a workaround, you can > close the issue. > > Best Ok, I'll close this out but let us know if you have any other questions! Thanks, --Tim