FRANKFURT ( Reuters ) - General Motors and Canadian auto parts group Magna International have reached an agreement in principle that could rescue ailing German carmaker Opel , sources close to the negotiations said on Friday .