Change the read_file behaviour
Change the read_file behaviour

Changes the logic, so that the method will retry to get the logs until it
times out or succeeds. This is a better approach since the command was
sometimes previously failing because of unexpected time outs.

cloudbase/cloudbase-init-ci,stefan-caraiman/cloudbase-init-ci,micumatei/cloudbase-init-ci