fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

install and computes get different munge keys #59

Closed A1ve5 closed 8 years ago

A1ve5 commented 8 years ago

install munge key should be copied from install by ansible-pull

martbhell commented 8 years ago

I suspect this is an issue only seen when reinstallating the cluster.

See https://github.com/CSC-IT-Center-for-Science/ansible-role-slurm/blob/master/tasks/service.yml#L87

When the slurm role is running on the install node, it only checks if there is a munge.key in /etc/munge/munge.key - if there is not it will generate a new one.

Because the NFS share on /home is not cleared, the {{ slurm_munge_key_nfs }} still exists and we could instead check if that file exists first and if so copy that to /etc/munge/munge.key on install node.

This also means we need to run the slurm role on the install node after NFS is mounted

A1ve5 commented 8 years ago

Moving to Review in order to investigate if this is still an issue

A1ve5 commented 8 years ago

It's now working by using ansible-pull. Closing it.