CLOUDIFY-2104 added logs and validations for debugging.