René's URL Explorer Experiment


Title: Expunge vm not release in-memory dhcp record in vpc redundant virtual route correctly · Issue #10182 · apache/cloudstack · GitHub

Open Graph Title: Expunge vm not release in-memory dhcp record in vpc redundant virtual route correctly · Issue #10182 · apache/cloudstack

X Title: Expunge vm not release in-memory dhcp record in vpc redundant virtual route correctly · Issue #10182 · apache/cloudstack

Description: Environment cloudstack 4.19.1.2 Problem In-memory record never released before next reboot of virtual router, finally run out of ip address, new vm can not get ip from dhcp. Reproduce 1. Create vpc with redundant router and vm 2. After v...

Open Graph Description: Environment cloudstack 4.19.1.2 Problem In-memory record never released before next reboot of virtual router, finally run out of ip address, new vm can not get ip from dhcp. Reproduce 1. Create vpc...

X Description: Environment cloudstack 4.19.1.2 Problem In-memory record never released before next reboot of virtual router, finally run out of ip address, new vm can not get ip from dhcp. Reproduce 1. Create vpc...

Opengraph URL: https://github.com/apache/cloudstack/issues/10182

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expunge vm not release in-memory dhcp record in vpc redundant virtual route correctly","articleBody":"### Environment\ncloudstack 4.19.1.2\n### Problem\nIn-memory record never released before next reboot of virtual router, finally run out of ip address, new vm can not get ip from dhcp.\n### Reproduce\n```\n1. Create vpc with redundant router and vm\n2. After vm success boot up, expunge it.\n3. Check `/var/lib/misc/dnsmasq.leases`, the vm record still there.\n```\n### Research\n1. When expunging vm, cloudstack will call shell command like `dhcp_release eth3 172.29.101.250 02:02:00:d4:00:4f` try to release in-memory dhcp record in dnsmasq in virtual router vm\n2. the `dhcp_release` command will actually do nothing, because dnsmasq will check the server address in config is matching the request address. check the dnsmasq source code below\n\n```\n// dnsmasq v2.85 src\\rfc2131.c:1046\n    case DHCPRELEASE:\n      if (!(context = narrow_context(context, mess-\u003eciaddr, tagif_netid)) ||\n\t  !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) ||\n\t  option_addr(opt).s_addr != server_id(context, override, fallback).s_addr) \u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\n\treturn 0;\n\n```\n3. The address will not match because `dhcp_release` is requesting the primary address, and dnsmasq is listening the secondary address.\n```\n// /etc/dnsmasq.d/cloud.conf\ndhcp-hostsfile=/etc/dhcphosts.txt\nlisten-address=127.0.0.1,172.29.101.1           \u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\ndhcp-range=set:interface-eth3-1,172.29.101.1,static\ndhcp-option=tag:interface-eth3-1,15,cs2cloud.internal\ndhcp-option=tag:interface-eth3-1,6,172.29.101.1,10.1.2.146\ndhcp-option=tag:interface-eth3-1,3,172.29.101.1\ndhcp-option=eth3,26,1450\ndhcp-option=tag:interface-eth3-1,1,255.255.255.0\n```\n```\n// tcpdump view of packet emit by dhcp_release\n08:23:24.200332 lo    In  IP (tos 0x0, ttl 64, id 61594, offset 0, flags [DF], proto UDP (17), length 576)\n    172.29.101.245.57053 \u003e 172.29.101.245.67: [bad udp cksum 0x2663 -\u003e 0xd1aa!] BOOTP/DHCP, Request from 02:02:00:d4:00:51, length 548, Flags [none] (0x0000)\n          Client-IP 172.29.101.49\n          Client-Ethernet-Address 02:02:00:d4:00:51\n          Vendor-rfc1048 Extensions\n            Magic Cookie 0x63825363\n            DHCP-Message (53), length 1: Release\n            Server-ID (54), length 4: 172.29.101.245\n            END (255), length 0\n            PAD (0), length 0, occurs 298\n```\n```\n// ip addr show\n5: eth3: \u003cBROADCAST,MULTICAST,UP,LOWER_UP\u003e mtu 1450 qdisc pfifo_fast state UP group default qlen 1000\n    link/ether 02:02:00:d4:00:32 brd ff:ff:ff:ff:ff:ff\n    altname enp0s10\n    altname ens10\n    inet 172.29.101.245/24 brd 172.29.101.255 scope global eth3\n       valid_lft forever preferred_lft forever\n    inet 172.29.101.1/24 brd 172.29.101.255 scope global secondary eth3\n       valid_lft forever preferred_lft forever\n```\n\n### Workaround\nAdd both primary and secondary address to `cloud.conf` make it works.\n```\ndhcp-hostsfile=/etc/dhcphosts.txt\nlisten-address=127.0.0.1,172.29.101.1,172.29.101.245\n```\nOr patch `/opt/cloud/bin/cs/CsDhcp.py` in virtual router\n```\n            if self.cl.is_redundant():\n                listen_address.append(gateway)\n                listen_address.append(ip)                            # \u003c\u003c\u003c\u003c\u003c add this\n            else:\n                listen_address.append(ip)\n```","author":{"url":"https://github.com/hulucc","@type":"Person","name":"hulucc"},"datePublished":"2025-01-14T08:45:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10182/cloudstack/issues/10182"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1dec044b-e591-554a-678d-ee8d53a87c74
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9818:2A256:C2E2B3:118D249:6A4E481E
html-safe-nonce5f742a1187aacbaf81a63a1b25f1e36dbecf83d26d7018173e26a8d78a85af64
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODE4OjJBMjU2OkMyRTJCMzoxMThEMjQ5OjZBNEU0ODFFIiwidmlzaXRvcl9pZCI6Ijc1Nzg4MTQ1NDQwMTA0MzA0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac94107268fed6e5afe21cc369027e8393aca3bd3b95fc67edc783084355143b15
hovercard-subject-tagissue:2786570329
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/apache/cloudstack/10182/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6b7779ce408d430e9a7369aba6db5813d6e08c1a19354577d8ecf98ab7b56bc4/apache/cloudstack/issues/10182
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6b7779ce408d430e9a7369aba6db5813d6e08c1a19354577d8ecf98ab7b56bc4/apache/cloudstack/issues/10182
og:image:altEnvironment cloudstack 4.19.1.2 Problem In-memory record never released before next reboot of virtual router, finally run out of ip address, new vm can not get ip from dhcp. Reproduce 1. Create vpc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehulucc
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
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
releasee8506f6d0538364886e3f0153c154c410965e70d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/10182#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F10182
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fapache%2Fcloudstack%2Fissues%2F10182
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=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/10182
Reloadhttps://github.com/apache/cloudstack/issues/10182
Reloadhttps://github.com/apache/cloudstack/issues/10182
Please reload this pagehttps://github.com/apache/cloudstack/issues/10182
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 535 https://github.com/apache/cloudstack/issues
Pull requests 266 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
#10183https://github.com/apache/cloudstack/pull/10183
Expunge vm not release in-memory dhcp record in vpc redundant virtual route correctlyhttps://github.com/apache/cloudstack/issues/10182#top
#10183https://github.com/apache/cloudstack/pull/10183
component:virtual-routerhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avirtual-router%22
component:vpchttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avpc%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
4.19.2https://github.com/apache/cloudstack/milestone/33
https://github.com/hulucc
hulucchttps://github.com/hulucc
on Jan 14, 2025https://github.com/apache/cloudstack/issues/10182#issue-2786570329
component:virtual-routerhttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avirtual-router%22
component:vpchttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avpc%22
type:bughttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
Bughttps://github.com/apache/cloudstack/issues?q=type:"Bug"
4.19.2https://github.com/apache/cloudstack/milestone/33
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.