kubearmor / kvm-service

Kubearmor Virtual Machine Service allows orchestrating policies to VMs and Bare-Metal environments using either k8s or non-k8s control plane.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid data stored in etcd

wazir-ahmed opened this issue · comments

In a non-k8s setup (refer - https://kloudone.atlassian.net/browse/AK-8529), the kvm-service restoration fails because of invalid data stored in etcd with the error as shown below.

kvms-startup-error

Attached the dump of key-value pairs in etcd - kvms-etcd-data.txt

The initial analysis of this data shows that, there are entries with empty labels, nil values and identity mentioned as 0.

We have to fully analysis the etcd dump and add proper validation and checks so that, in future these junk data can be reduced to zero.

@nyrahul @seswarrajan Also, what we should do if the restoration fails? Can we start the kvm-service in a clean state with a error/warning saying that restoration failed?