Coming from bug 4038, we made the output of slurm.log_user() available for the user clients even on "return slurm.SUCCESS". This bug should track the continuation work to make the output also available when the function is called from within the lua function slurm_job_modify (triggered on scontrol update job).
Also we've noticed that if you have for instance 'defer' in SchedulerParameters, and/or if the nodes are set to DRAIN when you submit the job, then eventually you resume the nodes, the job submit user_msg isn't sent back to the user. If we look for instance at the _slurm_rpc_allocate_resources func, at the end of it there's the send_msg: goto tag. If the job is waiting for resources, the execution goes through the reject_job=true path, and no RESPONSE_RESOURCE_ALLOCATION is sent back (or the pack or will run analogous response), instead just the slurm_send_rc_[err]_msg, thus not including the new job_submit_user_msg member.
*** Bug 5149 has been marked as a duplicate of this bug. ***
Take into account the changes made in 3f4cde9c from bug 5106.
Marking as duplicate. *** This bug has been marked as a duplicate of bug 14539 ***