-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
Description
Do you want to request a feature or report a bug?
Bug
What did you do?
- Execute command to storeconfig:
traefik storeconfig --etcd --etcd.endpoint=etcd:2379 --etcd.prefix=/traefik --etcd.useapiv3
- Desired configuration is output to screen in JSON format.
- Execute
etcdctl lsto verify keys and values were stored.
What did you expect to see?
Expected /traefik key in etcd to contain KV mapping of outputted JSON.
What did you see instead?
KV store empty and no values created.
Output of traefik version: (What version of Traefik are you using?)
Version: v1.5.2
Codename: cancoillotte
Go version: go1.9.4
Built: 2018-02-12_10:56:31AM
OS/Arch: linux/amd64
What is your environment & configuration (arguments, toml, provider, platform, ...)?
{
"LifeCycle": null,
"GraceTimeOut": 0,
"Debug": false,
"CheckNewVersion": true,
"SendAnonymousUsage": false,
"AccessLogsFile": "",
"AccessLog": null,
"TraefikLogsFile": "",
"TraefikLog": null,
"LogLevel": "ERROR",
"EntryPoints": {},
"Cluster": null,
"Constraints": [],
"ACME": null,
"DefaultEntryPoints": [
"http"
],
"ProvidersThrottleDuration": 2000000000,
"MaxIdleConnsPerHost": 200,
"IdleTimeout": 0,
"InsecureSkipVerify": false,
"RootCAs": null,
"Retry": null,
"HealthCheck": {
"Interval": 30000000000
},
"RespondingTimeouts": null,
"ForwardingTimeouts": null,
"Web": null,
"Docker": null,
"File": null,
"Marathon": null,
"Consul": null,
"ConsulCatalog": null,
"Etcd": {
"Watch": true,
"Filename": "",
"Constraints": [],
"Trace": false,
"DebugLogGeneratedTemplate": false,
"Endpoint": "xxxx",
"Prefix": "/traefik",
"TLS": null,
"Username": "",
"Password": "",
"UseAPIV3": true
},
"Zookeeper": null,
"Boltdb": null,
"Kubernetes": null,
"Mesos": null,
"Eureka": null,
"ECS": null,
"Rancher": null,
"DynamoDB": null,
"ServiceFabric": null,
"Rest": null,
"API": null,
"Metrics": null,
"Ping": null,
"ConfigFile": ""
}Other Notes
Executing the same command defaulted to the v2 API works as expected:
traefik storeconfig --etcd --etcd.endpoint=etcd:2379 --etcd.prefix=/traefik
The only side effect is a warning:
The ETCD API V2 is deprecated. Please use API V3 instead
The KV store is filled with entries:
/traefik/accesslogsfile
/traefik/acme
/traefik/docker
/traefik/providersthrottleduration
/traefik/idletimeout
/traefik/insecureskipverify
/traefik/maxidleconnsperhost
/traefik/sendanonymoususage
/traefik/defaultentrypoints
/traefik/gracetimeout
/traefik/loglevel
/traefik/web
/traefik/healthcheck
/traefik/traefiklogsfile
/traefik/checknewversion
/traefik/debug
/traefik/entrypoints
/traefik/etcd