Questions tagged [etcd3]
58 questions
1
vote
0 answers
C++ Shared library gives floating point exception when linked with C application
Background:
A C++ library for etcd client having APIs to communicate with etcd server, to use this library in C application, we wrote C++ wrappers over this library so that it can be called by C application.
Created a shared library using the below…

Kuldeepsinh
- 49
- 4
1
vote
1 answer
etcdctl can't see the key put by go client
I run etcd by this command (no more other configuration)
./etcd-v3.2.12-linux-amd64/etcd
package main
import (
"context"
"fmt"
"github.com/coreos/etcd/clientv3"
)
func main() {
cli, err := clientv3.New(clientv3.Config{
…

小明湖畔
- 95
- 7
1
vote
1 answer
Error: getaddrinfo ENOTFOUND while making get request to localhost, Nodejs
I am trying to make a het request to etcd instance running in my local trough the node http module.
the code look like this
'use strict';
const express = require('express');
const app = express();
var http = require('http');
const port =…

user3649361
- 944
- 4
- 20
- 40
1
vote
0 answers
Compare-and-swap in etcd v3?
I'm trying to do a compare-and-store operation on a given key using etcd's Go client for the v3 API. Seeing that --swap-with-value seems to be gone from etcdctl put, I suspect there's no corresponding method or argument in the client library either.…

Miguel
- 3,466
- 8
- 38
- 67
1
vote
1 answer
etcd3 Go Client - How to paginate large sets of keys?
It seems that pagination through a large set of keys involve using WithFromKey() and WithLimit() options to Get(). For example if I want to fetch 2 pages of 10 items I would do something like:
opts := []clientv3.OpOption {
…

Pyramid Newbie
- 6,865
- 3
- 24
- 28
1
vote
1 answer
etcd server output some error
I started up with an etcdv3 single server, etcdctl get / put is ok but the server console has some error logs and how to fix it
2017-06-19 09:26:42.225787 I | etcdserver/api/v3rpc: grpc: addrConn.resetTransport failed to create client transport:…

feng liu
- 11
- 4
1
vote
0 answers
etcd3 docker persist discovery information
I want to deploy an ETC cluster with 3 nodes with Docker.
So I use a dicovery url for that purpose.
The problem Im having is that when I delete a etcd container, and start a new one, then it cannot rejoin to the cluster.
Docker log says:
member…

user2620348
- 309
- 4
- 15
0
votes
1 answer
kubeadm init conflict with already setup etcd for HAProxy
On my Server1, Server2 and Server3, I've installed PostgreSQL and Patroni, and on Server1 only, I've installed HAProxy and etcd. Server1 is acting as master db and Server2 and Server3 are acting as replica.
Since it is not a production setup, I'm…

Amartya Sinha
- 47
- 9
0
votes
0 answers
etcd: cluster-health vs endpoint health. When to use which one?
I am a bit confused regarding how do I check an etcd cluster's health. Should I use
etcdctl cluster-health or etcdctl --cluster=true endpoint health. Is the former command deprecated now? If yes, then from which version?
I have once etcd cluster…

Kalit Inani
- 59
- 1
- 10
0
votes
1 answer
Error in pplx when runing project with etcd-client-v3 library installed with vcpkg
I have a project where I want to use etcd-cpp-apiv3 library(https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3), so I installed with vcpkg. But when I run it, fails.
I installed it with vcpkg: 'vcpkg install etcd-cpp-apiv3:x64-windows' and included it…

jaimet
- 42
- 4
0
votes
1 answer
grpc bidir stream not crossing nodes in ETCD cluster
I'm using PHP and the gRPC API to talk to an etcd cluster. I'm trying to do a watch on a range of keys. I get a WatchClient and call Watch to get a BiDiStreamingCall object and write a WatchCreateRequest. I then go into a loop reading from the…

Gregg H
- 167
- 1
- 10
0
votes
0 answers
Ectd lock permission denied
Calling a lock on an etcd with an active lease sometimes results in a permission denied error
[HttpGet("test")]
public async Task Test()
{
Environment.SetEnvironmentVariable("GRPC_VERBOSITY", "DEBUG");
…

user3555620
- 101
- 2
- 6
0
votes
0 answers
Downgrade etcd API version from 3 to 2 on MacOS
I have etcd installed through Homebrew on Mac.
etcdctl version
etcdctl version: 3.5.1
API version: 3.5
I would like to downgrade the API version to v2, however when I cheekily set the environment variable it then renders the cluster…

crmpicco
- 16,605
- 26
- 134
- 210
0
votes
1 answer
How to failover in etcd cluster
I have 3 nodes etcd cluster i.e. one master and two slaves. I need to bring down the master node for some maintenance activity. So, I tried conducting elections to elect a new master but it didn't work.
Below is the current state of the etcd…

CrazyCoder
- 2,465
- 8
- 36
- 57
0
votes
1 answer
type clientv3.Config has no field or method Username
the code is:
import (
"context"
"crypto/tls"
"time"
"go.etcd.io/etcd/clientv3"
)
func main(){
...
config := clientv3.Config{}
config.Username = u.username
...
}
go.mod file
module github.com/xxx
go 1.17
require…

tpinellia
- 1
- 1