Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Cluster restore from backup fails for 3.2.1 #1222

Closed
aaronyoungkash opened this issue Jun 27, 2017 · 3 comments
Closed

Cluster restore from backup fails for 3.2.1 #1222

aaronyoungkash opened this issue Jun 27, 2017 · 3 comments

Comments

@aaronyoungkash
Copy link

aaronyoungkash commented Jun 27, 2017

When operator attempts to pull the backup image from sidecar it fails with a 400 to the backup endpoint:

time="2017-06-27T15:50:50Z" level=error msg="check backup existence (etcd-cluster-backup-sidecar:19999) failed: unexpected status code (400 Bad Request), response ()" cluster-name=etcd-cluster pkg=cluster

After some investigation it seems to be because the the endpoint http://etcd-cluster-backup-sidecar:19999/v1/backup?etcdVersion=3.2.1 is unaware of the existence of version 3.2:

< HTTP/1.1 400 Bad Request
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 27 Jun 2017 16:19:14 GMT
< Content-Length: 64
<
requested version (3.2) is not compatible with the backup (3.2)

Which is because this map hasn't been updated:

var compatibilityMap = map[string]map[string]struct{}{
	"3.0": {"2.3": struct{}{}, "3.0": struct{}{}},
	"3.1": {"3.0": struct{}{}, "3.1": struct{}{}},
}
@theothermike
Copy link

Should also probably include this: #1185

which would have caught this particular bug

@hongchaodeng
Copy link
Member

We haven't supported 3.2 yet. So there are two action items for this:

  • have docs for compatibility matrix against etcd
  • support etcd 3.2

@hongchaodeng
Copy link
Member

This is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants