cloudstack/systemvm/debian/opt/cloud/bin
Wei Zhou b25823213b
vr: remove old ips with same mac address in dhcpentry databag (#5059)
This PR fixes #5058

when start a vm, the old entries in databag for the vm (with same mac addresses) should be removed then set again, to avoid duplicated records in dhcpentry databag and also /etc/dhcphosts.txt 

Testing with Isolated networks:
(1) stop vm, change vm ip address, start vm
vm info is updated in /etc/dhcphosts.txt and /etc/cloudstack/dhcpentry.json
(2) stop vm, expunge vm.
vm is removed from /etc/dhcphosts.txt and /var/lib/misc/dnsmasq.leases

Testing with VPC:
(1) create vm in 2 vpc tiers
vm has 2 entries in /etc/dhcphosts.txt, and /etc/cloudstack/dhcpentry.json
(2) stop vm, change ip addresses, change nics order, start vm
entries are updated in /etc/dhcphosts.txt and /etc/cloudstack/dhcpentry.json
(3) remove a nic from vm (hot unplug)
vm nic is removed from /etc/dhcphosts.txt and /var/lib/misc/dnsmasq.leases
entry in /etc/cloudstack/dhcpentry.json is updated.
2021-06-01 20:57:26 +05:30
..
cs Merge remote-tracking branch 'origin/4.14' into 4.15 2021-04-10 13:41:50 +05:30
setup systemvm: Load modules to support NAT traversal in VR (#4777) 2021-03-24 12:13:31 +05:30
baremetal-vr.py mac-check 2020-04-16 15:10:50 +02:00
baremetal_snat.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
bumpup_priority.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
checkbatchs2svpn.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
checkrouter.sh vr: Fix vpc router in UNKNOWN state (#3465) 2019-07-11 01:48:37 +05:30
checks2svpn.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
cleanup.sh Get Diagnostics: Download logs and diagnostics data from SSVM, CPVM, Router (#3350) 2020-01-15 11:38:33 +01:00
cloud-nic.sh router: Fixes #2789 fix proper mark based packet routing across interfaces (#2791) 2018-08-08 12:05:42 +05:30
configure.py network: fix dhcp/password/metadata issues on shared networks with multiple subnets (#5013) 2021-05-13 14:31:47 +05:30
cs_cmdline.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_dhcp.py vr: remove old ips with same mac address in dhcpentry databag (#5059) 2021-06-01 20:57:26 +05:30
cs_firewallrules.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_forwardingrules.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_guestnetwork.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_ip.py router: Fixes #2719 program VR nics by device id order for VPC (#2888) 2018-10-10 15:20:36 +05:30
cs_loadbalancer.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_monitorservice.py Health check feature for virtual router (#3575) 2020-01-30 12:39:03 +01:00
cs_network_acl.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_remoteaccessvpn.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_site2sitevpn.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_staticroutes.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_vmdata.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_vmp.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
cs_vpnusers.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
diagnostics.py diagnostics: new diagnostics admin API for system VMs (#2721) 2018-07-13 16:58:45 +05:30
dnsmasq.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
edithosts.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
getRouterAlerts.sh cloudstack: add JDK11 support (#3601) 2020-02-12 12:58:25 +05:30
getRouterMonitorResults.sh Health check feature for virtual router (#3575) 2020-01-30 12:39:03 +01:00
get_diagnostics_files.py Get Diagnostics: Download logs and diagnostics data from SSVM, CPVM, Router (#3350) 2020-01-15 11:38:33 +01:00
get_template_version.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
ilb.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
ipassoc.sh router: Fixes #2789 fix proper mark based packet routing across interfaces (#2791) 2018-08-08 12:05:42 +05:30
ipsectunnel.sh server: Adding VPN options for IKE version and IKE split connections (#4953) 2021-05-05 12:54:23 +05:30
line_edit.py Fix Python code checkstyle execute by "systemvm\test\runtests.sh" (#2576) 2018-04-18 13:07:37 -03:00
loadbalancer.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
master.py CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
merge.py Revert "Handle private gateways more reliably" 2020-11-25 08:40:16 +01:00
monitor_service.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
netusage.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
passwd_server_ip.py router: Set up metadata/password/dhcp server on gateway IP instead of guest IP in RVR (#3477) 2020-01-28 10:35:59 +05:30
prepare_pxe.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
savepassword.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
set_redundant.py CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
update_config.py VR: fix logging is not working and logs are not appended to /var/log/cloud.log (#4466) 2020-11-20 10:40:02 +00:00
vmdata.py Fix Python code checkstyle execute by "systemvm\test\runtests.sh" (#2576) 2018-04-18 13:07:37 -03:00
vpc_func.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
vpc_netusage.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
vpc_snat.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
vpc_staticroute.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
vpn_l2tp.sh CLOUDSTACK-10013: SystemVM codebase refactorings and improvements 2017-12-23 09:22:44 +05:30
vr_cfg.sh systemvm: loop optimisation in bash (#4451) 2021-02-18 18:18:16 +05:30