I have migrated vault data from an existing working setup to a new vault server using “operator migrate” command. Migration was successful and complete, but while trying to retrieve an existing policy from the new server, it throws an error “policy” doesn’t exist. Any suggestions.
Environment - O/S centos7, Vault version - 0.11.1, Vault backend - Consul
Is the new server using the same version of Vault? It shouldn’t matter, but would be good to know. Do other Vault operations work (e.g. vault auth list)? Did you just move the data and then start the server? In particular, vault operation init shouldn’t be run.
The migrate command is pretty simple, just a mass move of all data at the physical level from one storage backend to another. Nothing is decrypted or reprocessed. If the migration completed and you can’t read data, I’d suggest checking the permissions and access the new Vault server has to the storage.