The information contained in this article has been verified as up-to-date on the date of the original publication of the article. HashiCorp endeavors to keep this information up-to-date and correct, but it makes no representations or warranties of any kind, express or implied, about the ongoing completeness, accuracy, reliability, or suitability of the information provided.
All information contained in this article is for general information purposes only. Any reliance you place on such information as it applies to your use of your HashiCorp product is therefore strictly at your own risk.
Introduction
Problem
When attempting to enable Admin Partitions on a cluster, the following error occurs:
2023-02-09T16:32:10.471Z [ERROR] Error reading Partition from Consul: name=NAAP error="Unexpected response code: 500 (rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing failed to find Consul server for global address \\\"dc1-192.168.166.81:8300\\\"\")"
2023-02-09T16:32:10.471Z [INFO] Retrying in 1s
Prerequisites
- This feature requires version 1.10.0+ of HashiCorp Cloud Platform (HCP) or self-managed Consul Enterprise
Cause
The partitions are unavailable on all of the Consul servers pods; the default Admin Partition is only available on one server pod.
Overview of possible solutions
Solutions:
- Create a namespace using
consul namespace create -name XXX
- Create a partition using
consul partition create -name XXX
on the server
Outcome
The partition list will be present on all servers
root@amy-kind:~# kc1 exec -it consul-server-0 -- consul partition list
default:
Description:
Builtin Default Partition
naap:
root@amy-kind:~# kc1 exec -it consul-server-1 -- consul partition list
default:
Description:
Builtin Default Partition
naap:
root@amy-kind:~# kc1 exec -it consul-server-2 -- consul partition list
default:
Description:
Builtin Default Partition
naap:
root@amy-kind:~# kc1 exec -it consul-server-0 -- consul catalog services -namespace=client-apps -partition=naap
frontend
frontend-sidecar-proxy