The Australian-born second-rower was stretchered off in the first half of Wales' scratchy 11-10 win over Fiji on Friday night. His hamstring was torn away from the bone in a sickening collision and he may not play again this season.
Wales coach Mike Ruddock confirmed: "The injury needs an operation and Brent is out of action for at least four months, possibly six.
"It's awful news for Brent and his family, as well as the Ospreys and Welsh rugby, who have lost a quality player.
"On the injury front, we are getting a lot more headaches than we would like."
Cockbain, who turns 31 on Tuesday, joins fellow British Lions Gethin Jenkins, Ryan Jones, Dwayne Peel, Tom Shanklin and Gavin Henson on Wales' ever-expanding injury list. As well, three other Wales players - Dafydd Jones, Kevin Morgan and Chris Horsman - limped off during the Fiji match with ankle injuries. Jones and Morgan are unlikely to play against South Africa next Saturday.
The WRU has teamed up with Crawshay's to tour Georgia in June. The side, which will be called the Crawshays WRU President's XV, will play Emerging Georgia twice, in a tour which supports the Welsh Government's efforts to grow relations between the two countries.
Wales Sevens are looking to re-group after a disappointing tournament last time out in South Africa. The next double leg in New Zealand and Las Vegas offers Gareth Williams a chance to redeem themselves.
Wales Women's head coach Rhys Edwards was at Llandovery to see the conclusion of an entertaining Women's Regional championship where any one of three teams were in contention for title glory on the last day of action.