Kremlin had no other choices left with Ukraine. There can be only two reasons for not letting Ukraine into NATO: foreign military bases inside the country and insufficently demarkated (or conflicting) borders. So Putin made it both.
Lo! Men have become the tool of their tools. -- Henry David Thoreau