bhouse-nexthop commented on issue #12265:
URL: https://github.com/apache/cloudstack/issues/12265#issuecomment-3660484663

   Guess I should have read the script, you have to pass `advanced` as an 
argument for it to do anything at all:
   ```
   root@r-664-VM:~# /root/health_checks/dns_check.py advanced
   Missing entries for VMs in /etc/hosts -
   10.252.4.11 ntp1, 10.252.4.12 ntp2, 10.252.5.11 secureproxy1, 10.252.5.12 
secureproxy2, 10.252.5.22 cacheproxy2, 10.252.5.21 cacheproxy1, 10.252.6.11 
ldapproxy1, 10.252.6.12 ldapproxy2, 10.252.0.10 bastion, 10.252.7.12 nfs2, 
10.252.7.11 nfs1, 10.252.1.12 dns2, 10.252.1.11 dns1, 10.252.3.11 ipa1, 
10.252.3.12 ipa2, 10.252.3.13 ipa3, 10.252.240.11 vr1, 10.252.240.12 vr2, 
10.252.2.11 mirror1, 10.252.2.11 mirror1, 10.252.12.11 sccache1, 10.252.12.12 
sccache2, 10.252.12.13 sccache3, 10.252.13.146 garm, 10.252.14.11 dhcp1, 
10.252.14.12 dhcp2
   root@r-664-VM:~# /root/health_checks/dhcp_check.py advanced
   Missing elements in dhcphosts.txt -
   02:01:00:dc:00:16 10.252.4.11 ntp1, 02:01:00:dc:00:18 10.252.4.12 ntp2, 
02:01:00:dd:00:17 10.252.5.11 secureproxy1, 02:01:00:dd:00:18 10.252.5.12 
secureproxy2, 02:01:00:dd:00:19 10.252.5.22 cacheproxy2, 02:01:00:dd:00:1b 
10.252.5.21 cacheproxy1, 02:01:00:de:00:16 10.252.6.11 ldapproxy1, 
02:01:00:de:00:17 10.252.6.12 ldapproxy2, 02:01:00:df:00:2e 10.252.0.10 
bastion, 02:01:00:e0:00:1f 10.252.7.12 nfs2, 02:01:00:e0:00:20 10.252.7.11 
nfs1, 02:01:00:e2:00:04 10.252.1.12 dns2, 02:01:00:e2:00:16 10.252.1.11 dns1, 
02:01:00:e3:00:1b 10.252.3.11 ipa1, 02:01:00:e3:00:1c 10.252.3.12 ipa2, 
02:01:00:e3:00:1d 10.252.3.13 ipa3, 02:01:00:e8:00:01 10.252.240.11 vr1, 
02:01:00:e8:00:02 10.252.240.12 vr2, 02:01:00:e1:00:2f 10.252.2.11 mirror1, 
02:01:00:e1:00:2f 10.252.2.11 mirror1, 02:01:00:f4:00:03 10.252.12.11 sccache1, 
02:01:00:f4:00:04 10.252.12.12 sccache2, 02:01:00:f4:00:05 10.252.12.13 
sccache3, 02:01:01:1e:00:0c 10.252.13.146 garm, 02:01:01:1f:00:01 10.252.14.11 
dhcp1, 02:01:01:1f:00:04 10.25
 2.14.12 dhcp2
   ```
   ```
   root@r-664-VM:~# cp /root/health_checks_data.json 
/root/health_checks_data.json.bkp
   sed -i "s/dhcp=true,dns=true/dhcp=false,dns=false/g" 
/root/health_checks_data.json
   root@r-664-VM:~# /root/health_checks/dns_check.py advanced
   All 0 VMs are present in /etc/hosts
   root@r-664-VM:~# /root/health_checks/dhcp_check.py advanced
   All 0 VMs are present in dhcphosts.txt
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to