Russia has made it clear that it's going to stop gas transit through the Ukraine by 2019 and has no intention of renewing the contract.
It has also cancelled South Stream over EU wrangling and pressure tactics, and made it pretty clear that the only pipeline it's interested in building is a new one to Turkey - and how Europe gets its gas from the Turkish hub is their problem.
Later, after a few meetings with Hungarian, Serbian, Greek representitives, it decided to give the whole idea another shot and continue on the Turk Stream pipeline to Greece and then north through Macedonia, Serbia and Hungary.
However the Kremlin holds no fools; everyone understands what sort of leverage the West holds over Greece and Macedonia thus they are prepared for the eventuality that the whole project will be derailed again, in which case I assume they will just go back to their original idea of building a pipeline to Turkey and leaving it at that.
At the same time, Russia is also actively expanding its gas ties to Asia and has accelerated the process - it is completely serious about stopping the export of gas through the Ukraine.
Worst comes to worst, it's preparing to forget about gas exports to Europe (except through Belarus/Poland and Nord Stream), and just sell to Asia instead.