CLOUDIFY-1890 added retry mechanism for port validation