No, Metallica was not the opening act for Ozzy Osbourne's 1984 "Bark at the Moon" tour.
The coveted opening slot went to Mötley Crüe, then riding high on Shout at the Devil. The tour—Ozzy's first solo outing after Black Sabbath—ran North America from November 1983 through August 1984, with Mötley Crüe as primary support. (W.A.S.P. and Armored Saint also appeared on select dates.)
In 1984, Metallica was touring behind Ride the Lightning as headliners on their own club/theater dates and as support for W.A.S.P. on their "W.A.S.P. Tour" (early 1984)—not Ozzy. Their first major arena tour as support came in 1986 opening for Ozzy on the "Ultimate Sin" tour (after Cliff Burton's death, with Jason Newsted).
The confusion may stem from the Metallica/Ozzy connection later solidified by Ozzfest (1996 onward) and shared management (Q Prime), but in 1984, the Crüe got the call.