kubearmor / kvm-service

Kubearmor Virtual Machine Service allows orchestrating policies to VMs and Bare-Metal environments using either k8s or non-k8s control plane.
Apache License 2.0
11 stars 10 forks source link

Invalid data stored in etcd #58

Open wazir-ahmed opened 2 years ago

wazir-ahmed commented 2 years ago

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.

wazir-ahmed commented 2 years ago

@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?