Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Datastream: Failed to perform tenant project creation

Hello!

I have a Datastream problem that never happened to me before. Hoping someone knows how to fix.
My projects are part of organisation. I have all permissions neeed.

When attempting to create any Datastream connection profile regardless if source or destination, it consistently fails with:

  • Error: "Failed to perform tenant project creation"
  • Error code: 10
  • This occurs in all regions

I tried to create a connection profile using 

  • GCP Console
  • CLI: `gcloud datastream connection-profiles create test-profile --location=us-central1 --type=bigquery --display-name="Test Profile"`

Getting always the same error.

Key Findings from Troubleshooting:

1. The Datastream agent service account is not being created:

  • Expected account `...@gcp-sa-datastream.iam.gserviceaccount.com` is missing
  • Other service accounts (compute, container, pubsub) exist and work correctly

2. All necessary permissions are in place:

  •  Owner and Organization Admin roles
  • Project has billing enabled

3. Required APIs are enabled:

  • datastream.googleapis.com
  • servicenetworking.googleapis.com
  • compute.googleapis.com

I have a feeling that there is something to do with gcp-sa-datastream.iam.gserviceaccount.com not being created.

Anyone has ideas where its all going wrong?

 

 

Solved Solved
4 11 1,101
2 ACCEPTED SOLUTIONS

Found a solution.

  • Navigate to the Datastream page in the GCP console.
  • Click “Private Connectivity".
  • Click “CREATE CONFIGURATION”.
  • Set up the private service even if it does nothing. Just needs to be created
  • Then try creating the connection profile.

View solution in original post

You can create the service account using CLI:

```

gcloud beta services identity create --service=datastream.googleapis.com --project=<project_name>
```

View solution in original post

11 REPLIES 11

Hey I am having the same issue, did you find a solution?

I also get the same error from tokyo

Found a solution.

  • Navigate to the Datastream page in the GCP console.
  • Click “Private Connectivity".
  • Click “CREATE CONFIGURATION”.
  • Set up the private service even if it does nothing. Just needs to be created
  • Then try creating the connection profile.

For some reason, I'm not seeing the option to create the Datastream service account. I don't have a VPC setup in the project, so I think this may only work if you have a VPC in the project.

Datastream service account gets created when you enable apis usually. That's the whole issue here that gcp failed to provision one so Datastrem interface is struggling to create a resource because it doesn't exist.

Enable your api first. You might not have the same problem at all. Otherwise you can just enable vpc in your project. Don't have to use it

This doesn't work for me, I don't have that option.

Same issue here as well.

You can create the service account using CLI:

```

gcloud beta services identity create --service=datastream.googleapis.com --project=<project_name>
```

That's interesting. Thanks for sharing.

Does this create actual datastream service agent as opposed to service account?

Thanks! That works.

That worked for me!