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
[BUG] Unable to list backups when backuptarget resource is picked up by a cordoned node #7619
Comments
So far I am unable to reproduce this. Checking with @derekbit about the reproducing steps. Below are my steps attempting to reproduce:
> k cordon ip-10-0-2-24; k cordon ip-10-0-2-68; k cordon ip-10-0-2-181
> k get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-2-24 Ready,SchedulingDisabled <none> 7d2h v1.27.1+k3s1
ip-10-0-2-68 Ready,SchedulingDisabled <none> 7d2h v1.27.1+k3s1
ip-10-0-2-181 Ready,SchedulingDisabled <none> 7d2h v1.27.1+k3s1
ip-10-0-1-145 Ready control-plane,master 7d2h v1.27.1+k3s1
> k -n longhorn-system get lhim
NAME STATE TYPE NODE AGE
instance-manager-d9ac85ac5afd4cda85235f84a47d8dfd running aio ip-10-0-2-68 5m47s
instance-manager-824cd89daa26c0160438e0f69c4f5b3c running aio ip-10-0-2-24 5m47s
instance-manager-188cf465a00e27f2d2497f6cdd5017ec running aio ip-10-0-2-181 5m44s
> k -n longhorn-system get backup
NAME SNAPSHOTNAME SNAPSHOTSIZE SNAPSHOTCREATEDAT STATE LASTSYNCEDAT
backup-8357898bca8d4ded ec4dced4-961d-4d8d-a3f2-a3384fc2bd26 117440512 2023-09-15T00:53:03Z Completed 2024-01-11T03:12:51Z
> k -n longhorn-system get backuptargets.longhorn.io
NAME URL CREDENTIAL LASTBACKUPAT AVAILABLE LASTSYNCEDAT
default 5m0s false 2024-01-11T03:22:23Z
> k -n longhorn-system get backup
No resources found in longhorn-system namespace.
> k -n longhorn-system get backuptargets.longhorn.io
NAME URL CREDENTIAL LASTBACKUPAT AVAILABLE LASTSYNCEDAT
default s3://c3y1-s3@ap-southeast-1/ aws-secret 5m0s true 2024-01-11T03:27:59Z
> k -n longhorn-system get backup
NAME SNAPSHOTNAME SNAPSHOTSIZE SNAPSHOTCREATEDAT STATE LASTSYNCEDAT
backup-8357898bca8d4ded ec4dced4-961d-4d8d-a3f2-a3384fc2bd26 117440512 2023-09-15T00:53:03Z Completed 2024-01-11T03:28:00Z |
Provided a cluster with the issue to @c3y1huang My steps are
|
Cause:
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#taints-and-tolerations |
Pre Ready-For-Testing Checklist
|
Verifide pass on longhorn master (longhorn-manager Can reproduce on v1.5.x. In master-head, backup can be listed when longhorn installed on a cluser which already have some worker nodes cordoned. |
Describe the bug
Unable to list backups when backuptarget resource is picked up by a cordoned node
To Reproduce
Expected behavior
Support bundle for troubleshooting
Environment
Additional context
<!-Please add any other context about the problem here.-->
The text was updated successfully, but these errors were encountered: