Flames engulfed two ethanol holding tanks on Tuesday at a NuStar Energy petrochemical storage facility near San Francisco, prompting health authorities to urge residents of two adjacent towns to remain indoors for much of the day while crews battled to subdue the blaze.