I would expect the Medvedev would be on Putin’s side, not on the side of the coup.
Though to be honest, maybe that is why it has happened. He was a place holder, and expected to step aside. Medvedev might not have wanted to do so.