Now no chastening for the present seemeth to be joyous, but grievous: nevertheless afterward it yieldeth the peaceable fruit of righteousness unto them which are exercised thereby.
Now, it doesn't feel happy when we face discipline. It feels sad. But later, this discipline brings a peaceful and good result for those who learn from it.