The dataproc provisioner supports 'auto-detect' as a value for the network. It behaves similar to project auto-detect, where the project of the VM will be used as the dataproc project if CDAP is running on a GCE or GKE VM. However, this is not correct if the provisioner is configured to use a project that differs from the VM project. In that scenario, a network should be chosen from the configured project.
Fixed a bug in the dataproc provisioner that caused the wrong network to be used when CDAP is running on GCP and a project different from the CDAP project is given.