Skip to content
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

Kubernetes 1.8.3 - Error: etcdserver: mvcc: required revision has been compacted. #58067

Closed
ghost opened this issue Jan 10, 2018 · 7 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/storage Categorizes an issue or PR as relevant to SIG Storage.

Comments

@ghost
Copy link

ghost commented Jan 10, 2018

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
New changes performed from the master respond with:
Error: etcdserver: mvcc: required revision has been compacted.

Existing calico pod can't be scheduled, we are trying to kill the pod to let it restart since other replica's do work as expected.

What you expected to happen:
Pod should be deleted and restarted on the node.

How to reproduce it (as minimally and precisely as possible):
Simply give the kube-apiserver the delete command for this pod in the namespace kube-system

Anything else we need to know?:
We have etcd clustered on virtual machines outside the cluster, this has always worked as expected.

Environment:

  • Kubernetes version (use kubectl version):
    1.8.3
  • Cloud provider or hardware configuration:
    vSphere Virtual Machines
  • OS (e.g. from /etc/os-release):
    CentOS 7.4
  • Kernel (e.g. uname -a):
    4.13.12-1.el7.elrepo.x86_64
  • Install tools:
    Kubeadm
  • Others:
    Etcd version 3.2.7-1
@k8s-ci-robot k8s-ci-robot added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. kind/bug Categorizes issue or PR as related to a bug. sig/storage Categorizes an issue or PR as relevant to SIG Storage. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 10, 2018
@liggitt
Copy link
Member

liggitt commented Jan 10, 2018

"etcdserver: mvcc: required revision has been compacted." is not an error, it's an expected message when a watch is attempted to be established at a resource version that has already been compacted

without more information, this isn't recreatable or debuggable.

do you have etcd, apiserver, kubelet, or controller manager logs?

@liggitt liggitt added kind/support Categorizes issue or PR as a support question. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. and removed kind/bug Categorizes issue or PR as related to a bug. sig/storage Categorizes an issue or PR as relevant to SIG Storage. labels Jan 10, 2018
@ghost
Copy link
Author

ghost commented Jan 11, 2018

@liggitt thanks for your feedback, every action gives the following output;
Error from server: etcdserver: mvcc: database space exceeded

Apparently there is a 2gb quota by default which is exceeded by 2/3 of our etcd nodes (replication I assume) which causes these other issue's.

@ghost
Copy link
Author

ghost commented Jan 11, 2018

"Unable to register node"

@jennybuckley
Copy link

/cc @jpbetz

@lavalamp
Copy link
Member

Something is wrong with your etcd cluster, this is almost certainly not an apiserver problem. There's an alarm you might need to disable.

@ghost
Copy link
Author

ghost commented Jan 11, 2018

There was indeed an alarm, solved this issue by compacting the latest revision, defrag and turn the alarm off.

@ghost ghost closed this as completed Jan 11, 2018
@k8s-ci-robot k8s-ci-robot added the sig/storage Categorizes an issue or PR as relevant to SIG Storage. label Jan 11, 2018
@lijinghuatongxue
Copy link

There was indeed an alarm, solved this issue by compacting the latest revision, defrag and turn the alarm off.

how turn the alarm off ?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/storage Categorizes an issue or PR as relevant to SIG Storage.
Projects
None yet
Development

No branches or pull requests

5 participants