How did Germany lose Russia as an ally and how does this affect the German war plans?

Germany failed to renew their treaty or promise they made with Russia in 18 something or other. therefore Russia was free to ally with the Allied forces(countries lke England, France, etc.)