I don't think that putting I-bonds inside of a Roth IRA -- or any other tax-advantaged plan -- is a good idea. I-Bonds already have a tax-deferred advantage, and you're wasting that if you place them in a Roth IRA or Traditional IRA.
Furthermore, the purpose for I-Bonds is defeated by placing them in a Roth IRA. I-Bonds are supposed to be a
guarantee against inflation. If you place them in a Roth IRA, then you can only access your initial contributions. You'd probably be better off putting more aggressive, long-term investments in your Roth IRA (which is a retirement account).
Meanwhile, you can invest in I-Bonds outside of your Roth IRA. I'd suggest you consider them alongside Series EE bonds as short-term, low-risk investment vehicles. You can even use them as an alternative to placing money in a savings account, with their paltry interest rates, though you'll have to keep the money in for at least one year. By purchasing I-Bonds with a cash-back credit card, if you pay all your balances off in full each month, you can create a 0.5% - 1% discount, depending on your credit-card's cash-back options.
It is true that you will have to leave your money in I-Bonds for at least one year, and will be penalized 3 months interest if you cash them in before 5 years. If you can leave your money in there for a year, then it is probably worth it over a savings account, money-market, or CD. Even with the penalty, you will probably be better off than had you invested in a money-market or CD, depending on the interest rate on the money-market or CD. The penalty becomes less and less relevant as you approach 5 years.
Also, you should consider that there are additional tax-benefits (0% income tax) you may qualify for if you use I-Bonds for qualified higher education.
If you're looking at an I-Bond, you should also seriously consider Series EE bonds. Depending on how severe inflation is, Series EE Bonds can be better options than I-Bonds...because you can cash both of them in after a year at face-value (minus 3 months of interest if before 5 years), you can switch from one to another if one obtains a significant advantage over the other.
You may find the following links helpful:
As you can see, at this time, I-Bonds (4.66%) are a better deal than Series EE bonds (2.66%).