Retry `get_and_verify_metadata` if metadata service is not available yet

The method verify_metadata_from_api gets info from the metadata api
and retries if the info does not match the expected result.
This patch makes the retries apply when the api does not reply/is not
available yet.
This is something that could happen due to a race condition:
- the VM is ACTIVE and accessible via ssh
- the metadata service is not up yet

Change-Id: Id94df05003fa0ba627acd836286a6fbb29012678
Signed-off-by: Eduardo Olivares <eolivare@redhat.com>
1 file changed