-
Notifications
You must be signed in to change notification settings - Fork 792
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
Unable to create new domain #4013
Comments
I ran into this yesterday as well, what will get you to a working state (temporarily) is to add the cluster name to your command, ie: docker run --network=host --rm ubercadence/cli:master --domain sample-domain domain register --active_cluster active I had to dig through the Cadence Slack channel to figure that one out. Now I say, "temporarily" because as of now you're not going to be able to use Go v1.16 because of this bug: uber-go/cadence-client#1056 So, yea... |
Hey thanks a lot for letting me know about this, it works! I think the documentation needs upgrading. Regarding the 1.16 |
I'm not familiar with the internals but think there is a bug in this change. The default value for that flag is now an empty string instead of a nil pointer. This flag should not be required for if you don't have any data center replication setup. Even if you do there should probably be some smart defaults for picking which cluster is initially active. |
There are defaults that picks active cluster. However logic changed from checking nil pointer to checking for empty string. You are using older server release (0.18.0) which still checks for nil, while your cli (latest master) already passes empty string. This will get resolved with upcoming 0.20 release. For now please specify |
This bug is fixed in 0.18.2 . |
This is not fixed. Unable to register a domain using the latest version. If I pass the --ac active argument it complains it doesn't exist. If I don't pass it , the domain is registered in secondary not in active cluster... |
I think this is a different issue— it’s because of your config changes. Maybe not directly from you. I know Cadence helmchart changed it recently: Can you show me your clusterMetadata config? cadence/config/development_active.yaml Line 71 in bec009a
By default domain will be registered under primary(master) cluster. and can you show me the domain info by “domain describe” command? Also what is the issue of using secondary cluster? |
Hi @longquanzheng , thank you for answering . I don't have the "clusterMetadata" you've mentioned in the helm values.... Describing a domain that was registered gives me the following:
|
If you pass this env as true then the cluster will be “Primary” So it’s not a problem at all that a cluster name is not “active”. Active is a bad word to describe cluster name as we want to use “active”/ passive(standby) to describe if a domain is processing write request in that cluster under XDC (replication) mode. Cadence repo also update the config example recently to use “primary/secondary “ instead. cadence/docker/config_template.yaml Line 208 in fbc79f9
|
Cool, thank you. Adding the following into my helm cadence values made it work on a fresh install .
The cadence stuff is created under cluster active, and the domain registration without passing addtional parameters is also created under active. |
Where do you get this I feel like something is off:
Did I miss something? Or are in on a different branch or commit? |
Created an issue to improve it: banzaicloud/banzai-charts#1274 |
I think it had to do with this part
So when I specifid the the Env.PRIMARY , the current cluster name was set to primary so it resulted in active ? |
@dragosrosculete yeah I believe that's a bug then. Another user also reported the same thing that by default the template would apply to "secondary" as currentClusterName, which won't allow to create domain. Because only "masterCluster" can register domains. I reported a bug here: banzaicloud/banzai-charts#1275 |
Describe the bug
I'm trying to create a new Cadence domain with:
and I get the following error:
To Reproduce
Is the issue reproducible?
Yes
Steps to reproduce the behavior:
Start new Cadence Docker setup with:
and then run the domain creation command mentioned above.
Expected behavior
Domain is created.
Hope somebody can help me out. I only started getting these errors after upgrading to Go 1.16 and the versions of the Cadence Docker components.
The text was updated successfully, but these errors were encountered: