Hi All
      After our ACS is upgraded to 4.11.3, the VM on the shared network usually 
loses its IP address (it cannot get an IP address in the guest VM).

Analysis of the cloud.log in vr, we found that sometimes restarting or deleting 
the A VM will cause the B VM to disappear in /etc/dhcphosts.txt.
Because /etc/dhcphosts.txt is inconsistent with the data in 
/var/lib/misc/dnsmasq.leases. This triggers delete_leases to remove the IP 
address of the B VM from the DHCP server.



2019-07-25 12:03:58,519  CsHelper.py execute:193 Command 'ip link show eth0 | 
grep 'state DOWN'' returned non-zero exit status 1
2019-07-25 12:03:58,529  CsRoute.py add_network_route:73 Adding route: dev eth0 
table: Table_eth0 network: 10.40.51.0/24 if not present
2019-07-25 12:03:58,530  CsHelper.py execute:188 Executing: ip route show type 
throw 10.40.51.0/24 table Table_eth0 proto static
2019-07-25 12:03:58,544  CsHelper.py execute:188 Executing: sudo ip route flush 
cache
2019-07-25 12:03:58,582  CsHelper.py execute:188 Executing: systemctl start 
cloud-password-server@10.40.51.252
2019-07-25 12:03:58,603  CsHelper.py service:225 Service 
cloud-password-server@10.40.51.252 start
2019-07-25 12:03:58,604  CsRoute.py defaultroute_exists:115 Checking if default 
ipv4 route is present
2019-07-25 12:03:58,604  CsHelper.py execute:188 Executing: ip -4 route list 0/0
2019-07-25 12:03:58,617  CsRoute.py defaultroute_exists:119 Default route 
found: default via 10.40.51.1 dev eth0
2019-07-25 12:03:58,619  CsHelper.py execute:188 Executing: ip addr show
2019-07-25 12:03:58,635  CsFile.py commit:60 Nothing to commit. The 
/etc/dnsmasq.d/cloud.conf file did not change
2019-07-25 12:03:58,635  CsFile.py commit:66 Wrote edited file 
/etc/dhcphosts.txt
2019-07-25 12:03:58,635  CsFile.py commit:68 Updated file in-cache configuration
2019-07-25 12:03:58,635  CsFile.py commit:60 Nothing to commit. The 
/etc/dhcpopts.txt file did not change
2019-07-25 12:03:58,636  CsDhcp.py delete_leases:122 Attempting to delete 
entries from dnsmasq.leases file for VMs which are not on dhcphosts
file
2019-07-25 12:03:58,636  CsDhcp.py delete_leases:133 dhcp_release $(ip route 
get 10.40.51.231 | grep eth | head -1 | awk '{print $3}') 10.40.
51.231 1e:00:94:00:04:40
2019-07-25 12:03:58,636  CsHelper.py execute:188 Executing: dhcp_release $(ip 
route get 10.40.51.231 | grep eth | head -1 | awk '{print $3}')
10.40.51.231 1e:00:94:00:04:40
2019-07-25 12:03:58,660  CsDhcp.py delete_leases:137 Deleted 1 entries from 
dnsmasq.leases file
2019-07-25 12:03:58,661  CsFile.py commit:66 Wrote edited file /etc/hosts
2019-07-25 12:03:58,661  CsFile.py commit:68 Updated file in-cache configuration
2019-07-25 12:03:58,661  CsDhcp.py write_hosts:156 Updated hosts file
2019-07-25 12:03:58,662  CsHelper.py execute:188 Executing: systemctl restart 
dnsmasq
2019-07-25 12:03:58,772  CsHelper.py service:225 Service dnsmasq restart
2019-07-25 12:03:58,772  CsHelper.py execute:188 Executing: systemctl stop 
conntrackd
2019-07-25 12:03:58,793  CsHelper.py service:225 Service conntrackd stop
2019-07-25 12:03:58,793  CsHelper.py execute:188 Executing: systemctl stop 
keepalived
2019-07-25 12:03:58,813  CsHelper.py service:225 Service keepalived stop
2019-07-25 12:03:58,813  CsHelper.py execute:188 Executing: mount
2019-07-25 12:04:31,229  update_config.py <module>:146 update_config.py :: 
Processing incoming file => vm_dhcp_entry.json.41460506-6ea7-4474-
a970-b923726889b8

Reply via email to