Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cockroach demo --geo-partitioned-replicas --multitenant=true fails with license error (but not with --multitenant=false) #80270

Closed
andreimatei opened this issue Apr 20, 2022 · 15 comments · Fixed by #81737
Assignees
Labels
A-multiregion Related to multi-region C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-multiregion

Comments

@andreimatei
Copy link
Contributor

andreimatei commented Apr 20, 2022

Epic: CRDB-14538

[andrei:~/src/github.com/cockroachdb/cockroach] park+ ± ./cockroach demo  --geo-partitioned-replicas
...
# Partitioning the demo database, please wait...
*
* ERROR: partitioning the demo database: pq: license for cluster(s) a97a31f4-71ef-4a2e-ad11-b76eaccc81e3 is not valid for cluster a97a31f4-71ef-4a2e-55d9-ada0d4e6b842

Notice that the two cluster IDs start the same.

(Btw, is --geo-partitioned-replicas how I'm supposed to get a multi-region demo these days?)

Jira issue: CRDB-15789

@andreimatei andreimatei added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. A-multiregion Related to multi-region T-multiregion labels Apr 20, 2022
@ajwerner
Copy link
Contributor

Is this still happening? We had an outage in the reg server which I think has been fixed.

@andreimatei
Copy link
Contributor Author

Happening now on master.
Does the registration cluster really play a role in cockroach demo.

@ajwerner
Copy link
Contributor

Does the registration cluster really play a role in cockroach demo.

Yes, I'm almost certain it does.


I think this might be related to #74005. Try adding --multitenant=false to your invocation. I don't think this affects 22.1 because we merged #78168.

@rickystewart
Copy link
Collaborator

Does the registration cluster really play a role in cockroach demo.

Unfortunately, yes.

@andreimatei
Copy link
Contributor Author

I think this might be related to #74005. Try adding --multitenant=false to your invocation. I don't think this affects 22.1

Running with --multitenant=false works. So perhaps this is a dupe of a known issue? I'll let @ajstorm close or triage.


Does the registration cluster really play a role in cockroach demo.

Unfortunately, yes.

Waaa? Can we do something about that?
22.1, with --geo-partitioned-replicas and without an Internet connection indeed fails:

ERROR: unable to acquire a license for this demo
DETAIL: Enterprise features are needed for this demo (--geo-partitioned-replicas).

This seems silly to me. Are we doing anybody any favors by requesting these demo licenses?
@knz I see you've fixed the code around this in 2019, so perhaps you know more?
Without knowing what I'm talking about, it seems to me that, given that we want demo to sometimes have licensed features enabled for multi-region, maybe we should have it always have licensed features enabled without asking for a license.

@rickystewart
Copy link
Collaborator

Waaa? Can we do something about that?

I am strongly in favor of doing something to stop this, yes. We discussed it at the dev-inf team meeting on Tuesday. So far the feeling has been that there isn't anyone who's willing to own the functionality so everything just kind of sits in the current state. 🤷

The registration server has other core functionality like crash reporting (errors.cockroachdb.com) which should also be handled by a proper service.

@knz
Copy link
Contributor

knz commented Apr 20, 2022

@ajstorm let's bring this up at the next MT meeting.

@knz
Copy link
Contributor

knz commented Apr 20, 2022

maybe we should have it always have licensed features enabled without asking for a license.

FWIW, the current thinking is that yes, we could do that, but first we need our legal dept to make it clear to customers that they can't embed cockroach demo in their tech stack just to get a valid enterprise license.

@andreimatei
Copy link
Contributor Author

Did anybody else but you bring the legal dept into this? :P
What prevents people from " embedding cockroach demo in their tech stack just to get a valid enterprise license" today, with the mechanic license acquisition? If anything, it seems to me that giving out these licenses blindly makes it seem more legit to use cockroach demo for whatever you want cause look - you have a license! Not that we should care what people do with cockroach demo, IMHO.

@ajstorm
Copy link
Collaborator

ajstorm commented Apr 20, 2022

@ajstorm let's bring this up at the next MT meeting.

Are we sure that this is an MT issue? IIRC, we request a license in non-MT mode as well.

@andreimatei
Copy link
Contributor Author

We do appear to always request a license, but failing to get one doesn't seem to be fatal unless --geo-partitioned-replicas is specified.

Adam, you haven't confirmed that --geo-partitioned-replicas not working at all on master is a known problem. If it is, feel free to close this if there's a dupe.

@ajwerner
Copy link
Contributor

There's two different things being discussed in this thread:

  1. cockroach demo --geo-partitioned-replicas --multitenant=true fails 100% of the time because we're requesting the wrong license. That's a multi-tenant issue. --multitenant=true is the default on master, hence the complaints.
  2. Andrei's more general sadness that --geo-partitioned-replicas requests a license at all.

This issue is about 1) and not about 2). Andrei or perhaps Ricky or somebody can file a separate issue about 2).

@knz
Copy link
Contributor

knz commented Apr 21, 2022

ok thanks so we can update the issue title.

I believe the license is requested properly but may not be applied properly where it needs to be. we need to investigate that

@knz knz changed the title cockroach demo --geo-partitioned-replicas fails with license error cockroach demo --geo-partitioned-replicas --multitenant=true fails with license error (but not with --multitenant=false) Apr 21, 2022
@andreimatei
Copy link
Contributor Author

Friendly ping. Who's a good victim for this? :) I can't tell if it's a multi-region or a multi-tenant issue, but... @ajstorm you it?

@ajstorm
Copy link
Collaborator

ajstorm commented May 6, 2022

Last I heard, @knz was on it. Raphael, feel free to flame me if I've got that wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multiregion Related to multi-region C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-multiregion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants