are you using any virtual port?
If the ping fails, it means that the connectivity between both mgmt0 interfaces does not exist or that they are not interconnected properly.
Make sure the mgmt0 interface is unshut and that you can ping the switch mgmt0 interface.