René's URL Explorer Experiment


Title: Still seeing the issue for endpoints staying out of sync · Issue #126578 · kubernetes/kubernetes · GitHub

Open Graph Title: Still seeing the issue for endpoints staying out of sync · Issue #126578 · kubernetes/kubernetes

X Title: Still seeing the issue for endpoints staying out of sync · Issue #126578 · kubernetes/kubernetes

Description: What happened? This issue #125638 was supposed to have fixed the issue where endpoint stay out of sync I0807 14:01:51.613700 2 endpoints_controller.go:348] "Error syncing endpoints, retrying" service="test1/test-qa" err="endpoints inform...

Open Graph Description: What happened? This issue #125638 was supposed to have fixed the issue where endpoint stay out of sync I0807 14:01:51.613700 2 endpoints_controller.go:348] "Error syncing endpoints, retrying" servi...

X Description: What happened? This issue #125638 was supposed to have fixed the issue where endpoint stay out of sync I0807 14:01:51.613700 2 endpoints_controller.go:348] "Error syncing endpoints, retrying&q...

Opengraph URL: https://github.com/kubernetes/kubernetes/issues/126578

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Still seeing the issue for endpoints staying out of sync","articleBody":"### What happened?\n\nThis issue https://github.com/kubernetes/kubernetes/issues/125638 was supposed to have fixed the issue where endpoint stay out of sync \r\n```\r\nI0807 14:01:51.613700       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\nI0807 14:01:51.624576       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\nI0807 14:01:51.645704       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\nI0807 14:01:51.686942       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\nI0807 14:01:51.768648       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\nI0807 14:01:51.808043       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test2-qa\" err=\"endpoints informer cache is out of date, resource version 10168250766 already processed for endpoints test1/test2-qa\"\r\nI0807 14:01:51.930345       2 endpoints_controller.go:348] \"Error syncing endpoints, retrying\" service=\"test1/test-qa\" err=\"endpoints informer cache is out of date, resource version 10168236546 already processed for endpoints test1/test-qa\"\r\n```\r\nI also wrote a small script which would get me the out of sync endpoints compared to the endpointslices \r\n```\r\nfrom kubernetes.client import CoreV1Api, DiscoveryV1Api\r\nfrom hubspot_kube_utils.client import build_kube_client\r\nimport json\r\nimport os\r\nfrom datetime import datetime\r\n\r\ndef extract_ips_from_endpoint(endpoint):\r\n    ips = set()\r\n    if endpoint.subsets:\r\n        for subset in endpoint.subsets:\r\n            if subset.addresses:\r\n                ips.update(addr.ip for addr in subset.addresses)\r\n            if subset.not_ready_addresses:\r\n                ips.update(addr.ip for addr in subset.not_ready_addresses)\r\n    return ips\r\n\r\ndef extract_ips_from_endpoint_slice(slice):\r\n    if not slice.endpoints:\r\n        return set()\r\n    return set(address for endpoint in slice.endpoints\r\n               for address in (endpoint.addresses or []))\r\n\r\ndef compare_endpoints_and_slices(core_client, discovery_client):\r\n    all_mismatches = []\r\n\r\n    try:\r\n        namespaces = core_client.list_namespace()\r\n    except Exception as e:\r\n        print(f\"Error listing namespaces: {e}\")\r\n        return all_mismatches\r\n\r\n    for ns in namespaces.items:\r\n        namespace = ns.metadata.name\r\n        print(f\"Processing namespace: {namespace}\")\r\n\r\n        try:\r\n            endpoints = core_client.list_namespaced_endpoints(namespace)\r\n        except Exception as e:\r\n            print(f\"Error listing endpoints in namespace {namespace}: {e}\")\r\n            continue\r\n\r\n        for endpoint in endpoints.items:\r\n            name = endpoint.metadata.name\r\n\r\n            try:\r\n                slices = discovery_client.list_namespaced_endpoint_slice(namespace, label_selector=f\"kubernetes.io/service-name={name}\")\r\n            except Exception as e:\r\n                print(f\"Error listing endpoint slices for service {name} in namespace {namespace}: {e}\")\r\n                continue\r\n\r\n            endpoint_ips = extract_ips_from_endpoint(endpoint)\r\n            slice_ips = set()\r\n\r\n            for slice in slices.items:\r\n                slice_ips.update(extract_ips_from_endpoint_slice(slice))\r\n\r\n            if endpoint_ips != slice_ips:\r\n                mismatch = {\r\n                    \"namespace\": namespace,\r\n                    \"service_name\": name,\r\n                    \"endpoint_ips\": list(endpoint_ips),\r\n                    \"slice_ips\": list(slice_ips),\r\n                    \"missing_in_endpoint\": list(slice_ips - endpoint_ips),\r\n                    \"missing_in_slice\": list(endpoint_ips - slice_ips)\r\n                }\r\n                all_mismatches.append(mismatch)\r\n\r\n        print(f\"Completed processing namespace: {namespace}\")\r\n        print(\"---\")\r\n\r\n    return all_mismatches\r\n\r\ndef save_to_json(data, cluster_name):\r\n    timestamp = datetime.now().strftime(\"%Y%m%d_%H%M%S\")\r\n    filename = f\"{cluster_name}_mismatches_{timestamp}.json\"\r\n\r\n    with open(filename, 'w') as f:\r\n        json.dump(data, f, indent=2)\r\n\r\n    print(f\"Mismatch data for cluster {cluster_name} saved to {filename}\")\r\n\r\ndef main():\r\n    clusters = [\"test\"]\r\n    all_cluster_mismatches = {}\r\n\r\n    for cluster_name in clusters:\r\n        print(f\"Processing cluster: {cluster_name}\")\r\n\r\n        try:\r\n            kube_client = build_kube_client(host=\"TEST\",\r\n                              token=\"TOKEN\")\r\n\r\n            core_client = CoreV1Api(kube_client)\r\n            discovery_client = DiscoveryV1Api(kube_client)\r\n\r\n            mismatches = compare_endpoints_and_slices(core_client, discovery_client)\r\n\r\n            all_cluster_mismatches[cluster_name] = mismatches\r\n\r\n            save_to_json(mismatches, cluster_name)\r\n\r\n            print(f\"Completed processing cluster: {cluster_name}\")\r\n            print(f\"Total mismatches found in this cluster: {len(mismatches)}\")\r\n        except Exception as e:\r\n            print(f\"Error processing cluster {cluster_name}: {e}\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    main()\r\n```\n\n### What did you expect to happen?\n\nI expect the endpoints to eventually sync and reflect the most upto date information. \n\n### How can we reproduce it (as minimally and precisely as possible)?\n\nI have just deployed the newer patch to our cluster and that has resulted in endpoints never ending up being updated if the status goes out of sync. \n\n### Anything else we need to know?\n\n_No response_\n\n### Kubernetes version\n\nClient Version: v1.29.7\r\nKustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3\r\nServer Version: v1.29.7\r\n\n\n### Cloud provider\n\n\u003cdetails\u003e\r\n\r\n\u003c/details\u003e\r\n\n\n### OS version\n\nalmalinux-9\n\n### Install tools\n\n\u003cdetails\u003e\r\n\r\n\u003c/details\u003e\r\n\n\n### Container runtime (CRI) and version (if applicable)\n\ncri-o\n\n### Related plugins (CNI, CSI, ...) and versions (if applicable)\n\n_No response_","author":{"url":"https://github.com/kedar700","@type":"Person","name":"kedar700"},"datePublished":"2024-08-07T14:22:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/126578/kubernetes/issues/126578"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75427c62-1c5a-537a-02f0-684e86734193
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBC4:A94F2:2583FD:32203D:6994F0FF
html-safe-nonce2832b1ebc41961f376401713349fd2c91f418d5be09e9b065a70df955f20cadc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkM0OkE5NEYyOjI1ODNGRDozMjIwM0Q6Njk5NEYwRkYiLCJ2aXNpdG9yX2lkIjoiODk1MzQ1NTg2Njg4MTA0NDczNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac718be5ed1a4e8c7cbe7aaa0564d3b1d76eb57c1b776cdf6be2325812a0e504e5
hovercard-subject-tagissue:2453624326
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/kubernetes/kubernetes/126578/issue_layout
twitter:imagehttps://opengraph.githubassets.com/636de8dda3f17534b4c0e6d8b4c017e0652e2ec463489776ab431c24460cf8a3/kubernetes/kubernetes/issues/126578
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/636de8dda3f17534b4c0e6d8b4c017e0652e2ec463489776ab431c24460cf8a3/kubernetes/kubernetes/issues/126578
og:image:altWhat happened? This issue #125638 was supposed to have fixed the issue where endpoint stay out of sync I0807 14:01:51.613700 2 endpoints_controller.go:348] "Error syncing endpoints, retrying" servi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekedar700
hostnamegithub.com
expected-hostnamegithub.com
None45bfdcf303b8bbf65a4da4dbf4669683e0c8440359e5c27eb3c96256ec925d65
turbo-cache-controlno-preview
go-importgithub.com/kubernetes/kubernetes git https://github.com/kubernetes/kubernetes.git
octolytics-dimension-user_id13629408
octolytics-dimension-user_loginkubernetes
octolytics-dimension-repository_id20580498
octolytics-dimension-repository_nwokubernetes/kubernetes
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20580498
octolytics-dimension-repository_network_root_nwokubernetes/kubernetes
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd890ce0113567a54b23fc534f145f0af038abc9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/kubernetes/kubernetes/issues/126578#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkubernetes%2Fkubernetes%2Fissues%2F126578
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkubernetes%2Fkubernetes%2Fissues%2F126578
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=kubernetes%2Fkubernetes
Reloadhttps://github.com/kubernetes/kubernetes/issues/126578
Reloadhttps://github.com/kubernetes/kubernetes/issues/126578
Reloadhttps://github.com/kubernetes/kubernetes/issues/126578
kubernetes https://github.com/kubernetes
kuberneteshttps://github.com/kubernetes/kubernetes
Notifications https://github.com/login?return_to=%2Fkubernetes%2Fkubernetes
Fork 42.5k https://github.com/login?return_to=%2Fkubernetes%2Fkubernetes
Star 121k https://github.com/login?return_to=%2Fkubernetes%2Fkubernetes
Code https://github.com/kubernetes/kubernetes
Issues 1.8k https://github.com/kubernetes/kubernetes/issues
Pull requests 804 https://github.com/kubernetes/kubernetes/pulls
Actions https://github.com/kubernetes/kubernetes/actions
Projects 2 https://github.com/kubernetes/kubernetes/projects
Security 0 https://github.com/kubernetes/kubernetes/security
Insights https://github.com/kubernetes/kubernetes/pulse
Code https://github.com/kubernetes/kubernetes
Issues https://github.com/kubernetes/kubernetes/issues
Pull requests https://github.com/kubernetes/kubernetes/pulls
Actions https://github.com/kubernetes/kubernetes/actions
Projects https://github.com/kubernetes/kubernetes/projects
Security https://github.com/kubernetes/kubernetes/security
Insights https://github.com/kubernetes/kubernetes/pulse
New issuehttps://github.com/login?return_to=https://github.com/kubernetes/kubernetes/issues/126578
New issuehttps://github.com/login?return_to=https://github.com/kubernetes/kubernetes/issues/126578
#127417https://github.com/kubernetes/kubernetes/pull/127417
Still seeing the issue for endpoints staying out of synchttps://github.com/kubernetes/kubernetes/issues/126578#top
#127417https://github.com/kubernetes/kubernetes/pull/127417
https://github.com/tnqn
https://github.com/M00nF1sh
kind/bugCategorizes issue or PR as related to a bug.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22needs-triage%22
sig/networkCategorizes an issue or PR as relevant to SIG Network.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22sig%2Fnetwork%22
https://github.com/kedar700
https://github.com/kedar700
kedar700https://github.com/kedar700
on Aug 7, 2024https://github.com/kubernetes/kubernetes/issues/126578#issue-2453624326
#125638https://github.com/kubernetes/kubernetes/issues/125638
M00nF1shhttps://github.com/M00nF1sh
tnqnhttps://github.com/tnqn
kind/bugCategorizes issue or PR as related to a bug.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22needs-triage%22
sig/networkCategorizes an issue or PR as relevant to SIG Network.https://github.com/kubernetes/kubernetes/issues?q=state%3Aopen%20label%3A%22sig%2Fnetwork%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.