I had an odor problem with my near-new dishwasher. The inside was stainless steel and no matter what I did, I could not get rid of the odor. I tried every remedy listed in the owner manual including vinegar, bleach, and dishwasher cleaner from the supermarket, with no success.
A dishwasher repairman finally told me to try Lime-Away. I had used this product for years for other purposes, but I never read the back label to see that it was also good for dishwashers and washers.
He told me that food “sludge” can line the walls of the hoses or pipes that take the water out of the dishwasher, and it may be difficult to remove with regular products. I tried it and thankfully it worked. Now I do it on a monthly basis to keep it from building up again. Arlene