Comments (1)
Validated on master branch with commit 3f906be
Environment Details
Infrastructure
- Cloud
- Hosted
Node(s) CPU architecture, OS, and Version:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
$ uname -m
x86_64
Cluster Configuration:
HA: 3 server/ 1 agent
Config.yaml:
token: xxxx
cluster-init: true
disable-agent: true
write-kubeconfig-mode: "0644"
node-external-ip: 1.1.1.1
node-label:
- k3s-upgrade=server
etcd-snapshot-retention: 2
etcd-snapshot-schedule-cron: "* * * * *"
etcd-s3: true
etcd-s3-access-key: xxxx
etcd-s3-secret-key: xxxx
etcd-s3-bucket: xxxx
etcd-s3-folder: xxxx
etcd-s3-region: xxxx
Testing Steps
- Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
- Install k3s
curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='3f906bee79cb32072bea061cbbf4e38142343c66' sh -s - server
- Check the journal logs for reconciliation error messages:
$ sudo journalctl -xeu k3s | grep 'Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing'
$ sudo journalctl -xeu k3s | grep error | grep snapshot
Replication Results:
- k3s version used for replication:
$ k3s -v
k3s version v1.29.3+k3s1 (8aecc26b)
go version go1.21.8
We can see several error messages on reconciliation requeuing:
$ sudo journalctl -xeu k3s | grep 'Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing'
Apr 11 21:56:25 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:25Z" level=debug msg="Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing"
Apr 11 21:56:56 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:56Z" level=debug msg="Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing"
Apr 11 21:57:28 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:57:28Z" level=debug msg="Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing"
$ sudo journalctl -xeu k3s | grep error | grep snapshot
Apr 11 21:56:04 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:04Z" level=error msg="error syncing 'local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: be05a51b-714d-4a39-a8e6-571917f60f8f, UID in object meta: , requeuing"
Apr 11 21:56:04 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:04Z" level=error msg="Failed to record snapshots for cluster: nodes \"ip-172-31-16-97\" not found"
Apr 11 21:56:06 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:06Z" level=error msg="error syncing 'local-etcd-snapshot-ip-172-31-16-97-1712872562-4d0b13': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-etcd-snapshot-ip-172-31-16-97-1712872562-4d0b13\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-etcd-snapshot-ip-172-31-16-97-1712872562-4d0b13, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 8e45277b-8e84-4e8b-ac44-5984e7d340a9, UID in object meta: , requeuing"
Apr 11 21:56:07 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:07Z" level=error msg="error syncing 'local-on-demand-ip-172-31-16-97-1712872526-9574ea': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-on-demand-ip-172-31-16-97-1712872526-9574ea\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-on-demand-ip-172-31-16-97-1712872526-9574ea, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 66960485-96e8-4068-ad73-295a95a48b8d, UID in object meta: , requeuing"
Apr 11 21:56:07 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:07Z" level=error msg="error syncing 'local-on-demand-ip-172-31-16-97-1712872518-9651cf': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-on-demand-ip-172-31-16-97-1712872518-9651cf\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-on-demand-ip-172-31-16-97-1712872518-9651cf, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 85ce3d94-aae9-400d-9598-3a1dad6f2c23, UID in object meta: , requeuing"
Apr 11 21:56:08 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:08Z" level=error msg="error syncing 'local-on-demand-ip-172-31-16-97-1712872534-fe3ecf': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-on-demand-ip-172-31-16-97-1712872534-fe3ecf\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-on-demand-ip-172-31-16-97-1712872534-fe3ecf, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: b5a8ef96-195f-44fd-9c22-7ac9d5624e6a, UID in object meta: , requeuing"
Apr 11 21:56:08 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:08Z" level=error msg="error syncing 'local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-etcd-snapshot-ip-172-31-16-97-1712872505-428a6c, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: d8816b7c-55bf-44d1-a6bd-7d2738a635d7, UID in object meta: , requeuing"
Apr 11 21:56:09 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:09Z" level=error msg="error syncing 'local-on-demand-ip-172-31-16-97-1712872526-9574ea': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-on-demand-ip-172-31-16-97-1712872526-9574ea\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-on-demand-ip-172-31-16-97-1712872526-9574ea, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: af610bcb-f848-4552-b4d3-f769871b5648, UID in object meta: , requeuing"
Apr 11 21:56:10 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:10Z" level=error msg="error syncing 'local-on-demand-ip-172-31-16-97-1712872518-9651cf': handler managed-etcd-snapshots-controller: Operation cannot be fulfilled on etcdsnapshotfiles.k3s.cattle.io \"local-on-demand-ip-172-31-16-97-1712872518-9651cf\": StorageError: invalid object, Code: 4, Key: /registry/k3s.cattle.io/etcdsnapshotfiles/local-on-demand-ip-172-31-16-97-1712872518-9651cf, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 258dd772-7245-4fbf-ab23-faf18ca557c8, UID in object meta: , requeuing"
Apr 11 21:56:10 ip-172-31-16-97 k3s[8451]: time="2024-04-11T21:56:10Z" level=error msg="Failed to take scheduled snapshot: nodes \"ip-172-31-16-97\" not found"
Validation Results:
- k3s version used for validation:
$ k3s -v
k3s version v1.29.3+k3s-3f906bee (3f906bee)
go version go1.21.8
We do not see the repeat error messages on reque / reconciliation here:
$ sudo journalctl -xeu k3s | grep 'Failed to reconcile snapshot ConfigMap: no nodes have reconciled ETCDSnapshotFile resources, requeuing'
$ sudo journalctl -xeu k3s | grep error | grep snapshot
Apr 11 22:21:27 ip-172-31-18-168 k3s[24196]: time="2024-04-11T22:21:27Z" level=debug msg="Error encountered attempting to retrieve extra metadata from k3s-etcd-snapshot-extra-metadata ConfigMap, error: configmaps \"k3s-etcd-snapshot-extra-metadata\" not found"
from k3s.
Related Issues (20)
- [Release-1.27] - Registry TLS configuration from registries.yaml is only honored for mirror endpoints
- Traefik manifest has wrong location for podAnnotations HOT 1
- Pods can't resolve DNS HOT 3
- Cannot use ipv6 literal as system-default-registry HOT 1
- Update Kube-router to v2.1.0 to fix ICMPv2 Neighbour Solicitation packets drops HOT 1
- [Release-1.28] - Set defaultVolumeType for storageclass HOT 1
- [Release-1.27] - Set defaultVolumeType for storageclass HOT 1
- [Release-1.28] - Traefik manifest has wrong location for podAnnotations HOT 1
- [Release-1.27] - Traefik manifest has wrong location for podAnnotations HOT 1
- [Release-1.28] - Cannot use ipv6 literal as system-default-registry HOT 1
- [Release-1.27] - Cannot use ipv6 literal as system-default-registry HOT 1
- [Release 1.28] Update Kube-router to v2.1.0 to fix ICMPv2 Neighbour Solicitation packets drops HOT 1
- [Release 1.27] Update Kube-router to v2.1.0 to fix ICMPv2 Neighbour Solicitation packets drops HOT 1
- [Release-1.28] - Local path provisioner disallowed from reading Pods logs HOT 1
- [Release-1.27] - Local path provisioner disallowed from reading Pods logs HOT 4
- unable to initialize network policy controller: IPv6 was enabled but no IPv6 address was found on node HOT 1
- k3s on OpenWrt can't find CPU cgroup - but it is enabled. HOT 3
- LoadBalancers crashing after updating from 1.27.3 to 1.29.3 HOT 3
- local path provisioner helper script does not support `-a` flag
- Expose K3s metrics via supervisor port
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.