it was a cognitive bias, thinking too much about how and why it could/should work instead of looking at why it couldn't (eg. because the strong selection effect of the repressed political activities of Moscow versus Ukraine, plus the strong rose tinted glasses he and many Russians have that color everything positive that seems like the old Russian Empire, whereas Slavic people a thousands of kilometers away have a rather different view of how great that is and was.)
I'm pretty sure Russians understand that not all of Ukraine is pro-Russian.
and Putin likely counted on at least some support from some parts of the population in Ukraine. as evidenced by their plan of quick victory, and that the Ukrainian government will collapse, and it will be easy to install a puppet government. just as Janukovic was relatively popular some years ago