Supply is tight, prices are soaring and mortgage rates are rising. That shouldn't exactly add up to a happy housing market, and yet, it does. Consumer confidence in housing jumped to its highest level on record in April, according to a monthly sentiment index from Fannie Mae.

Of the index's six components, only the share of those who think it's a good time to buy fell. No surprise there, given the high competition in most of the nation's neighborhoods. The share of those who think it's a good time to sell and those who think prices will continue to rise jumped the most. In addition, more consumers think their incomes will rise over the next year, and fewer think they will lose their jobs.

Consumer attitudes remain resilient going into the spring/summer home buying season," said Doug Duncan, senior vice president and chief economist at Fannie Mae. "However, the upward trend in the good-time-to-sell share seen since last spring has done little to release more for-sale inventory. The tightest supply in decades, combined with rising mortgage rates from historically low levels, will likely remain a hurdle for mobility and a persistent headwind for home sales."