For anyone who could find it helpful - this is what helped me in a situation when a freshly installed node refused to join the cluster (or was refused by the cluster).
This is only a short version which might work. I've executed more commands so it is possible that this will be not enough...