Skip to content

Inter-cluster resource collisions for gcppubsub bus #253

@scothis

Description

@scothis

Expected Behavior

Each channel on a gcppubsub bus should operate atomically.

Actual Behavior

If there are two Knative clusters running in the same GCP Project, that create a gcppubsub bus with the same name in the same namespace, and a channel is created with the same name, and a subscription is created with the same name. The topics and subscription resources in pub/sub end up being shared between both clusters which assume that have use of those resources exclusively.

This is mostly an issue when running samples, but can cause head scratching.

Steps to Reproduce the Problem

  1. create two Knative clusters
  2. deploy the gcppubsub bus into each cluster in the same name/namespace using the same GCP Project
  3. deploy the hello sample into each cluster
  4. each message hitting the bus will only be delivered to one of the clusters (appears to be round robin)

Additional Info

The topic and subscription resources in cloud pub/sub should have a random value representing the bus that "owns" the resource that is also stable for the lifetime of the bus.

/kind bug

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions