syahrulsazli

cloud.log (Not working network router VM)

Dec 21st, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 106.28 KB | None | 0 0
  1.  
  2. Wed Dec 21 06:21:14 UTC 2016 Executing cloud-early-config
  3. Wed Dec 21 06:21:14 UTC 2016 Detected that we are running inside kvm guest
  4. Wed Dec 21 06:21:14 UTC 2016 Found a non empty cmdline file. Will now exit the loop and proceed with configuration.
  5. Wed Dec 21 06:21:14 UTC 2016 Patching scripts oldmd5=0b260321715ec35ed7bab1d6b03bedfc newmd5=6a20ff74eb235f16e848f66235f0732a
  6. Wed Dec 21 06:21:14 UTC 2016 Patching cloud service
  7. Wed Dec 21 06:21:15 UTC 2016 Rebooting system since we patched init scripts
  8. Wed Dec 21 06:21:17 UTC 2016 Updating log4j-cloud.xml
  9. Wed Dec 21 06:21:18 UTC 2016 Setting up dhcp server system vm
  10. Wed Dec 21 06:21:18 UTC 2016 checking that eth0 has IP
  11. Wed Dec 21 06:21:18 UTC 2016 checking that eth1 has IP
  12. Wed Dec 21 06:21:21 UTC 2016 Setting up dnsmasq
  13. Wed Dec 21 06:21:21 UTC 2016 Setting up apache web server
  14. Wed Dec 21 06:21:21 UTC 2016 Enable service dnsmasq = 1
  15. Wed Dec 21 06:21:21 UTC 2016 Enable service haproxy = 0
  16. Wed Dec 21 06:21:21 UTC 2016 Processors = 1 Enable service = 0
  17. Wed Dec 21 06:21:21 UTC 2016 Enable service cloud-passwd-srvr = 1
  18. Wed Dec 21 06:21:21 UTC 2016 Enable service cloud = 0
  19. Wed Dec 21 06:21:21 UTC 2016 cloud: enable_fwding = 0
  20. Wed Dec 21 06:21:21 UTC 2016 enable_fwding = 0
  21. 2016-12-21 06:21:22,336 merge.py load:57 Creating data bag type cmdline
  22. 2016-12-21 06:21:22,337 merge.py process:100 Command of type cmdline received
  23. 2016-12-21 06:21:22,337 merge.py load:57 Creating data bag type ips
  24. 2016-12-21 06:21:22,337 merge.py process:100 Command of type ips received
  25. 2016-12-21 06:21:22,337 merge.py save:71 Writing data bag type ips
  26. 2016-12-21 06:21:22,338 merge.py save:72 {'id': 'ips', 'eth0': [{'broadcast': '10.3.28.255', 'one_to_one_nat': False, 'nic_dev_id': '0', 'network': '10.3.28.0/24', 'add': True, 'gateway': 'None', 'public_ip': u'10.3.28.10', 'netmask': u'255.255.255.0', 'nw_type': 'guest', 'device': 'eth0', 'cidr': '10.3.28.10/24', 'source_nat': False, 'size': '24'}]}
  27. 2016-12-21 06:21:22,338 merge.py load:60 Loading data bag type ips
  28. 2016-12-21 06:21:22,338 merge.py process:100 Command of type ips received
  29. 2016-12-21 06:21:22,339 merge.py save:71 Writing data bag type ips
  30. 2016-12-21 06:21:22,339 merge.py save:72 {u'id': u'ips', 'eth1': [{'broadcast': '169.254.255.255', 'one_to_one_nat': False, 'nic_dev_id': '1', 'network': '169.254.0.0/16', 'add': True, 'gateway': 'None', 'public_ip': u'169.254.1.124', 'netmask': u'255.255.0.0', 'nw_type': 'control', 'device': 'eth1', 'cidr': '169.254.1.124/16', 'source_nat': False, 'size': '16'}], u'eth0': [{u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}]}
  31. 2016-12-21 06:21:22,339 merge.py save:71 Writing data bag type cmdline
  32. 2016-12-21 06:21:22,339 merge.py save:72 {'config': {u'domain': u'nocser.net', u'eth1ip': u'169.254.1.124', u'name': u'r-690-VM', u'eth0mask': u'255.255.255.0', u'cidrsize': u'24', u'dns1': u'8.8.8.8', u'port': u'8080', u'dhcprange': u'10.3.28.1', u'ip6dns1': u'', u'host': u'10.2.30.11', u'baremetalnotificationsecuritykey': u'uavJByNGGjNLrELG-qbdN99__1I3tnp8qa0KbcsKokKJcPB43K9s6oQu2nMLqo3YP8p6jqDy5XT3WWOWBA2yNw', u'eth1mask': u'255.255.0.0', 'redundant_router': 'false', u'template': u'domP', u'dns2': u'8.8.4.4', u'disable_rp_filter': u'true', u'ip6dns2': u'', u'baremetalnotificationapikey': u'8JH4mdkxsEMhgIBgMonkNXAEKjVOeZnG1m5UVekvvo4v_iXQ4ZS7rh6NNS0qphhc7ZrCauiz23tp2-Wa3AASlg', u'type': u'dhcpsrvr', u'gateway': u'10.3.28.1', u'eth0ip': u'10.3.28.10'}, 'id': u'cmdline'}
  33. 2016-12-21 06:21:22,340 merge.py load:283 Could not open /var/cache/cloud/cmd_line.json
  34. 2016-12-21 06:21:22,340 merge.py load:60 Loading data bag type ips
  35. 2016-12-21 06:21:22,340 merge.py load:60 Loading data bag type cmdline
  36. 2016-12-21 06:21:22,341 configure.py main:924 Configuring ip addresses
  37. 2016-12-21 06:21:22,341 CsHelper.py execute:184 Executing: ip addr show dev eth1
  38. 2016-12-21 06:21:22,345 CsHelper.py execute:184 Executing: ip addr show dev eth0
  39. 2016-12-21 06:21:22,349 CsHelper.py execute:184 Executing: ip addr show dev eth1
  40. 2016-12-21 06:21:22,352 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  41. 2016-12-21 06:21:22,352 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  42. 2016-12-21 06:21:22,352 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  43. 2016-12-21 06:21:22,352 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  44. 2016-12-21 06:21:22,355 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  45. 2016-12-21 06:21:22,356 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  46. 2016-12-21 06:21:22,359 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  47. 2016-12-21 06:21:22,359 CsHelper.py execute:184 Executing: ip addr show dev eth0
  48. 2016-12-21 06:21:22,362 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  49. 2016-12-21 06:21:22,362 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  50. 2016-12-21 06:21:22,362 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  51. 2016-12-21 06:21:22,362 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  52. 2016-12-21 06:21:22,365 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  53. 2016-12-21 06:21:22,367 CsHelper.py addifmissing:172 Added 0 Table_eth0 to file /etc/iproute2/rt_tables
  54. 2016-12-21 06:21:22,367 CsHelper.py execute:184 Executing: ip rule show
  55. 2016-12-21 06:21:22,370 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  56. 2016-12-21 06:21:22,373 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  57. 2016-12-21 06:21:22,373 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  58. 2016-12-21 06:21:22,377 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  59. 2016-12-21 06:21:42,425 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  60. 2016-12-21 06:21:42,426 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  61. 2016-12-21 06:21:42,427 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  62. 2016-12-21 06:21:42,427 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  63. 2016-12-21 06:21:42,434 CsHelper.py copy:251 Copied /etc/apache2/vhost.template to /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  64. 2016-12-21 06:21:42,434 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  65. 2016-12-21 06:21:42,435 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  66. 2016-12-21 06:21:42,435 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  67. 2016-12-21 06:21:42,436 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  68. 2016-12-21 06:21:42,437 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  69. 2016-12-21 06:21:42,438 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  70. 2016-12-21 06:21:42,439 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  71. 2016-12-21 06:21:42,440 CsFile.py commit:66 Wrote edited file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  72. 2016-12-21 06:21:42,441 CsFile.py commit:68 Updated file in-cache configuration
  73. 2016-12-21 06:21:42,441 CsHelper.py execute:184 Executing: service apache2 restart
  74. 2016-12-21 06:21:42,599 CsHelper.py service:213 Service apache2 restart
  75. 2016-12-21 06:21:42,600 CsHelper.py execute:184 Executing: ps aux
  76. 2016-12-21 06:21:42,607 CsProcess.py start:33 Started dummy
  77. 2016-12-21 06:21:42,608 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  78. 2016-12-21 06:21:42,608 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  79. 2016-12-21 06:21:42,613 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  80. 2016-12-21 06:21:42,613 configure.py main:929 Configuring Guest Network
  81. 2016-12-21 06:21:42,613 configure.py main:933 Configuring vmpassword
  82. 2016-12-21 06:21:42,613 merge.py load:57 Creating data bag type vmpassword
  83. 2016-12-21 06:21:42,613 configure.py main:938 Configuring vmdata
  84. 2016-12-21 06:21:42,613 merge.py load:57 Creating data bag type vmdata
  85. 2016-12-21 06:21:42,614 configure.py main:943 Configuring networkacl
  86. 2016-12-21 06:21:42,614 configure.py main:947 Configuring firewall rules
  87. 2016-12-21 06:21:42,614 configure.py main:951 Configuring PF rules
  88. 2016-12-21 06:21:42,614 configure.py main:955 Configuring s2s vpn
  89. 2016-12-21 06:21:42,614 configure.py main:959 Configuring remote access vpn
  90. 2016-12-21 06:21:42,614 configure.py main:963 Configuring vpn users list
  91. 2016-12-21 06:21:42,614 merge.py load:57 Creating data bag type vpnuserlist
  92. 2016-12-21 06:21:42,614 configure.py main:968 Configuring dhcp entry
  93. 2016-12-21 06:21:42,614 merge.py load:57 Creating data bag type dhcpentry
  94. 2016-12-21 06:21:42,614 CsHelper.py execute:184 Executing: ip addr show
  95. 2016-12-21 06:21:42,624 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
  96. 2016-12-21 06:21:42,624 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
  97. 2016-12-21 06:21:42,625 CsFile.py load:39 Reading file /etc/hosts
  98. 2016-12-21 06:21:42,625 CsFile.py commit:66 Wrote edited file /etc/hosts
  99. 2016-12-21 06:21:42,625 CsFile.py commit:68 Updated file in-cache configuration
  100. 2016-12-21 06:21:42,625 CsDhcp.py write_hosts:125 Updated hosts file
  101. 2016-12-21 06:21:42,625 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
  102. 2016-12-21 06:21:42,625 CsFile.py commit:60 Nothing to commit. The /etc/dhcphosts.txt file did not change
  103. 2016-12-21 06:21:42,625 CsHelper.py execute:184 Executing: service dnsmasq restart
  104. 2016-12-21 06:21:44,685 CsHelper.py service:213 Service dnsmasq restart
  105. 2016-12-21 06:21:44,686 configure.py main:973 Configuring load balancer
  106. 2016-12-21 06:21:44,686 configure.py main:977 Configuring monitor service
  107. 2016-12-21 06:21:44,686 merge.py load:57 Creating data bag type monitorservice
  108. 2016-12-21 06:21:44,687 merge.py load:57 Creating data bag type networkacl
  109. 2016-12-21 06:21:44,687 merge.py load:57 Creating data bag type firewallrules
  110. 2016-12-21 06:21:44,687 configure.py flushAllowAllEgressRules:267 Flush allow 'all' egress firewall rule
  111. 2016-12-21 06:21:44,687 CsHelper.py execute:184 Executing: iptables-save | grep '^:FW_EGRESS_RULES' || iptables -t filter -N FW_EGRESS_RULES
  112. 2016-12-21 06:21:44,744 CsHelper.py execute:184 Executing: iptables-save | grep '^-A FW_EGRESS_RULES -j ACCEPT$' | sed 's/^-A/iptables -t filter -D/g' | bash
  113. 2016-12-21 06:21:44,752 merge.py load:57 Creating data bag type forwardingrules
  114. 2016-12-21 06:21:44,753 merge.py load:57 Creating data bag type site2sitevpn
  115. 2016-12-21 06:21:44,754 merge.py load:57 Creating data bag type remoteaccessvpn
  116. 2016-12-21 06:21:44,754 configure.py process:618 {'id': 'remoteaccessvpn'}
  117. 2016-12-21 06:21:44,754 merge.py load:57 Creating data bag type loadbalancer
  118. 2016-12-21 06:21:44,754 configure.py main:1002 Configuring iptables rules
  119. 2016-12-21 06:21:44,754 CsHelper.py execute:184 Executing: iptables-save
  120. 2016-12-21 06:21:44,758 CsHelper.py execute:184 Executing: iptables -t filter -N FW_OUTBOUND
  121. 2016-12-21 06:21:44,762 CsHelper.py execute:184 Executing: iptables -t filter -N
  122. 2016-12-21 06:21:44,766 CsHelper.py execute:184 Executing: iptables -t mangle -N PREROUTING
  123. 2016-12-21 06:21:44,780 CsHelper.py execute:184 Executing: iptables -t filter -N NETWORK_STATS
  124. 2016-12-21 06:21:44,785 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-j': u'ACCEPT', u'-A': u'FW_OUTBOUND', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FW_OUTBOUND
  125. 2016-12-21 06:21:44,785 CsNetfilter.py compare:164 Add: rule=-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  126. 2016-12-21 06:21:44,785 CsHelper.py execute:184 Executing: iptables -t filter -A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT
  127. 2016-12-21 06:21:44,802 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth1', u'-m2': u'state', u'--dport': u'3922', u'-p': u'tcp', u'--state': u'NEW,ESTABLISHED', u'-j': u'ACCEPT'} table=filter chain=INPUT
  128. 2016-12-21 06:21:44,803 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT table=filter
  129. 2016-12-21 06:21:44,803 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT
  130. 2016-12-21 06:21:44,820 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-P': u'INPUT'} table=filter chain=
  131. 2016-12-21 06:21:44,820 CsNetfilter.py compare:164 Add: rule=-P INPUT DROP table=filter
  132. 2016-12-21 06:21:44,821 CsHelper.py execute:184 Executing: iptables -t filter -P INPUT DROP
  133. 2016-12-21 06:21:44,824 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-P': u'FORWARD'} table=filter chain=
  134. 2016-12-21 06:21:44,824 CsNetfilter.py compare:164 Add: rule=-P FORWARD DROP table=filter
  135. 2016-12-21 06:21:44,825 CsHelper.py execute:184 Executing: iptables -t filter -P FORWARD DROP
  136. 2016-12-21 06:21:44,828 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'PREROUTING', u'-i': u'eth0', u'-j': u'CONNMARK', u'--set-xmark': u'0x0/0xffffffff', u'--state': u'NEW', u'-m2': u'state'} table=mangle chain=PREROUTING
  137. 2016-12-21 06:21:44,828 CsNetfilter.py compare:164 Add: rule=-A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff table=mangle
  138. 2016-12-21 06:21:44,829 CsHelper.py execute:184 Executing: iptables -t mangle -A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff
  139. 2016-12-21 06:21:44,849 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'PREROUTING', u'--restore-mark': u'--nfmask', u'-j': u'CONNMARK', u'0xffffffff': u'--ctmask', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=mangle chain=PREROUTING
  140. 2016-12-21 06:21:44,850 CsNetfilter.py compare:164 Add: rule=-A PREROUTING -m state --state RELATED,ESTABLISHED -j CONNMARK --restore-mark --nfmask 0xffffffff --ctmask 0xffffffff table=mangle
  141. 2016-12-21 06:21:44,850 CsHelper.py execute:184 Executing: iptables -t mangle -I PREROUTING -m state --state RELATED,ESTABLISHED -j CONNMARK --restore-mark --nfmask 0xffffffff --ctmask 0xffffffff
  142. 2016-12-21 06:21:44,854 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'224.0.0.18/32', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  143. 2016-12-21 06:21:44,854 CsNetfilter.py compare:164 Add: rule=-A INPUT -d 224.0.0.18/32 -j ACCEPT table=filter
  144. 2016-12-21 06:21:44,854 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -d 224.0.0.18/32 -j ACCEPT
  145. 2016-12-21 06:21:44,858 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'225.0.0.50/32', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  146. 2016-12-21 06:21:44,858 CsNetfilter.py compare:164 Add: rule=-A INPUT -d 225.0.0.50/32 -j ACCEPT table=filter
  147. 2016-12-21 06:21:44,859 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -d 225.0.0.50/32 -j ACCEPT
  148. 2016-12-21 06:21:44,862 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-j': u'ACCEPT', u'-A': u'INPUT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=INPUT
  149. 2016-12-21 06:21:44,863 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  150. 2016-12-21 06:21:44,863 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  151. 2016-12-21 06:21:44,867 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-p': u'icmp', u'-j': u'ACCEPT'} table=filter chain=INPUT
  152. 2016-12-21 06:21:44,867 CsNetfilter.py compare:164 Add: rule=-A INPUT -p icmp -j ACCEPT table=filter
  153. 2016-12-21 06:21:44,867 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -p icmp -j ACCEPT
  154. 2016-12-21 06:21:44,871 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'lo', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  155. 2016-12-21 06:21:44,871 CsNetfilter.py compare:164 Add: rule=-A INPUT -i lo -j ACCEPT table=filter
  156. 2016-12-21 06:21:44,871 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i lo -j ACCEPT
  157. 2016-12-21 06:21:44,874 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'67', u'-p': u'udp'} table=filter chain=INPUT
  158. 2016-12-21 06:21:44,874 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT table=filter
  159. 2016-12-21 06:21:44,874 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
  160. 2016-12-21 06:21:44,880 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'udp'} table=filter chain=INPUT
  161. 2016-12-21 06:21:44,880 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT table=filter
  162. 2016-12-21 06:21:44,880 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT
  163. 2016-12-21 06:21:44,884 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'tcp'} table=filter chain=INPUT
  164. 2016-12-21 06:21:44,884 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT table=filter
  165. 2016-12-21 06:21:44,884 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
  166. 2016-12-21 06:21:44,888 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'80', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  167. 2016-12-21 06:21:44,888 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT table=filter
  168. 2016-12-21 06:21:44,888 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT
  169. 2016-12-21 06:21:44,892 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'8080', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  170. 2016-12-21 06:21:44,892 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT table=filter
  171. 2016-12-21 06:21:44,892 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT
  172. 2016-12-21 06:21:44,896 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth1', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  173. 2016-12-21 06:21:44,896 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  174. 2016-12-21 06:21:44,896 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
  175. 2016-12-21 06:21:44,900 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'NEW', u'-m2': u'state'} table=filter chain=FORWARD
  176. 2016-12-21 06:21:44,900 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth0 -m state --state NEW -j ACCEPT table=filter
  177. 2016-12-21 06:21:44,900 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth0 -m state --state NEW -j ACCEPT
  178. 2016-12-21 06:21:44,903 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth2', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  179. 2016-12-21 06:21:44,904 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth2 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  180. 2016-12-21 06:21:44,904 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth2 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  181. 2016-12-21 06:21:44,907 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  182. 2016-12-21 06:21:44,907 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  183. 2016-12-21 06:21:44,908 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  184. 2016-12-21 06:21:44,910 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-o': u'eth2', u'-A': u'FORWARD', u'-j': u'FW_OUTBOUND'} table=filter chain=FORWARD
  185. 2016-12-21 06:21:44,911 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND table=filter
  186. 2016-12-21 06:21:44,911 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND
  187. 2016-12-21 06:21:44,913 CsNetfilter.py compare:148 Already processed : ('mangle', '', u'-A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff')
  188. 2016-12-21 06:21:44,914 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-j': u'NETWORK_STATS'} table=filter chain=FORWARD
  189. 2016-12-21 06:21:44,914 CsNetfilter.py compare:164 Add: rule=-A FORWARD -j NETWORK_STATS table=filter
  190. 2016-12-21 06:21:44,914 CsHelper.py execute:184 Executing: iptables -t filter -I FORWARD -j NETWORK_STATS
  191. 2016-12-21 06:21:44,917 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-j': u'NETWORK_STATS'} table=filter chain=INPUT
  192. 2016-12-21 06:21:44,917 CsNetfilter.py compare:164 Add: rule=-A INPUT -j NETWORK_STATS table=filter
  193. 2016-12-21 06:21:44,917 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -j NETWORK_STATS
  194. 2016-12-21 06:21:44,920 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'OUTPUT', u'-j': u'NETWORK_STATS'} table=filter chain=OUTPUT
  195. 2016-12-21 06:21:44,920 CsNetfilter.py compare:164 Add: rule=-A OUTPUT -j NETWORK_STATS table=filter
  196. 2016-12-21 06:21:44,920 CsHelper.py execute:184 Executing: iptables -t filter -I OUTPUT -j NETWORK_STATS
  197. 2016-12-21 06:21:44,923 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-o': u'eth2', u'-A': u'NETWORK_STATS'} table=filter chain=NETWORK_STATS
  198. 2016-12-21 06:21:44,923 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth0 -o eth2 table=filter
  199. 2016-12-21 06:21:44,923 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth0 -o eth2
  200. 2016-12-21 06:21:44,927 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth2', u'-o': u'eth0', u'-A': u'NETWORK_STATS'} table=filter chain=NETWORK_STATS
  201. 2016-12-21 06:21:44,927 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 -o eth0 table=filter
  202. 2016-12-21 06:21:44,927 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 -o eth0
  203. 2016-12-21 06:21:44,930 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-o': u'eth2', u'-A': u'NETWORK_STATS', u'-p': u'tcp', u'!_-i': u'eth0'} table=filter chain=NETWORK_STATS
  204. 2016-12-21 06:21:44,930 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -o eth2 ! -i eth0 -p tcp table=filter
  205. 2016-12-21 06:21:44,930 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -o eth2 ! -i eth0 -p tcp
  206. 2016-12-21 06:21:44,933 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'!_-o': u'eth0', u'-i': u'eth2', u'-A': u'NETWORK_STATS', u'-p': u'tcp'} table=filter chain=NETWORK_STATS
  207. 2016-12-21 06:21:44,933 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 ! -o eth0 -p tcp table=filter
  208. 2016-12-21 06:21:44,933 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 ! -o eth0 -p tcp
  209. 2016-12-21 06:21:44,936 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'67', u'-p': u'udp'} table=filter chain=INPUT
  210. 2016-12-21 06:21:44,936 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT table=filter
  211. 2016-12-21 06:21:44,937 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
  212. 2016-12-21 06:21:44,940 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'udp'} table=filter chain=INPUT
  213. 2016-12-21 06:21:44,940 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p udp -m udp --dport 53 -j ACCEPT table=filter
  214. 2016-12-21 06:21:44,940 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p udp -m udp --dport 53 -j ACCEPT
  215. 2016-12-21 06:21:44,943 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'tcp'} table=filter chain=INPUT
  216. 2016-12-21 06:21:44,943 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp --dport 53 -j ACCEPT table=filter
  217. 2016-12-21 06:21:44,944 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp --dport 53 -j ACCEPT
  218. 2016-12-21 06:21:44,947 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'80', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  219. 2016-12-21 06:21:44,947 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 80 -j ACCEPT table=filter
  220. 2016-12-21 06:21:44,947 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 80 -j ACCEPT
  221. 2016-12-21 06:21:44,950 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'443', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  222. 2016-12-21 06:21:44,951 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 443 -j ACCEPT table=filter
  223. 2016-12-21 06:21:44,951 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 443 -j ACCEPT
  224. 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT')
  225. 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT')
  226. 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P INPUT DROP')
  227. 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P FORWARD DROP')
  228. 2016-12-21 06:21:44,954 merge.py load:60 Loading data bag type cmdline
  229. 2016-12-21 06:21:44,955 configure.py main:1006 Configuring iptables rules done ...saving rules
  230. 2016-12-21 06:21:44,956 CsHelper.py save_iptables:192 Saving iptables for iptables-save
  231. 2016-12-21 06:21:44,956 CsHelper.py execute:184 Executing: iptables-save
  232. 2016-12-21 06:21:44,959 CsHelper.py save_iptables:192 Saving iptables for ip6tables-save
  233. 2016-12-21 06:21:44,959 CsHelper.py execute:184 Executing: ip6tables-save
  234. 2016-12-21 06:21:44,962 CsRedundant.py set:68 Router redundancy status is False
  235. 2016-12-21 06:21:44,962 CsHelper.py execute:184 Executing: service conntrackd stop
  236. 2016-12-21 06:21:44,989 CsHelper.py service:213 Service conntrackd stop
  237. 2016-12-21 06:21:44,990 CsHelper.py execute:184 Executing: service keepalived stop
  238. 2016-12-21 06:21:44,995 CsHelper.py service:213 Service keepalived stop
  239. 2016-12-21 06:21:44,996 CsHelper.py execute:184 Executing: mount
  240. 2016-12-21 06:21:44,998 configure.py main:1016 Configuring static routes
  241. 2016-12-21 06:21:44,999 merge.py load:57 Creating data bag type staticroutes
  242. 2016-12-21 06:21:44,999 CsStaticRoutes.py process:27 Processing CsStaticRoutes file ==> {'id': 'staticroutes'}
  243. Wed Dec 21 06:23:30 UTC 2016 Executing cloud-early-config
  244. Wed Dec 21 06:23:30 UTC 2016 Detected that we are running inside kvm guest
  245. Wed Dec 21 06:23:30 UTC 2016 Found a non empty cmdline file. Will now exit the loop and proceed with configuration.
  246. Wed Dec 21 06:23:30 UTC 2016 Patching cloud service
  247. Wed Dec 21 06:23:31 UTC 2016 Updating log4j-cloud.xml
  248. Wed Dec 21 06:23:31 UTC 2016 Setting up dhcp server system vm
  249. Wed Dec 21 06:23:31 UTC 2016 checking that eth0 has IP
  250. Wed Dec 21 06:23:32 UTC 2016 waiting for eth0 interface setup with ip timer=0
  251. Wed Dec 21 06:23:32 UTC 2016 checking that eth1 has IP
  252. Wed Dec 21 06:23:35 UTC 2016 Setting up dnsmasq
  253. Wed Dec 21 06:23:35 UTC 2016 Setting up apache web server
  254. Wed Dec 21 06:23:35 UTC 2016 Enable service dnsmasq = 1
  255. Wed Dec 21 06:23:35 UTC 2016 Enable service haproxy = 0
  256. Wed Dec 21 06:23:35 UTC 2016 Processors = 1 Enable service = 0
  257. Wed Dec 21 06:23:35 UTC 2016 Enable service cloud-passwd-srvr = 1
  258. Wed Dec 21 06:23:35 UTC 2016 Enable service cloud = 0
  259. Wed Dec 21 06:23:35 UTC 2016 cloud: enable_fwding = 0
  260. Wed Dec 21 06:23:35 UTC 2016 enable_fwding = 0
  261. 2016-12-21 06:23:36,587 merge.py load:60 Loading data bag type cmdline
  262. 2016-12-21 06:23:36,588 merge.py process:100 Command of type cmdline received
  263. 2016-12-21 06:23:36,588 merge.py load:60 Loading data bag type ips
  264. 2016-12-21 06:23:36,589 merge.py process:100 Command of type ips received
  265. 2016-12-21 06:23:36,590 merge.py save:71 Writing data bag type ips
  266. 2016-12-21 06:23:36,590 merge.py save:72 {u'id': u'ips', u'eth1': [{u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}], u'eth0': [{'broadcast': '10.3.28.255', 'one_to_one_nat': False, 'nic_dev_id': '0', 'network': '10.3.28.0/24', 'add': True, 'gateway': 'None', 'public_ip': u'10.3.28.10', 'netmask': u'255.255.255.0', 'nw_type': 'guest', 'device': 'eth0', 'cidr': '10.3.28.10/24', 'source_nat': False, 'size': '24'}]}
  267. 2016-12-21 06:23:36,591 merge.py load:60 Loading data bag type ips
  268. 2016-12-21 06:23:36,591 merge.py process:100 Command of type ips received
  269. 2016-12-21 06:23:36,599 merge.py save:71 Writing data bag type ips
  270. 2016-12-21 06:23:36,599 merge.py save:72 {u'id': u'ips', u'eth1': [{'broadcast': '169.254.255.255', 'one_to_one_nat': False, 'nic_dev_id': '1', 'network': '169.254.0.0/16', 'add': True, 'gateway': 'None', 'public_ip': u'169.254.1.124', 'netmask': u'255.255.0.0', 'nw_type': 'control', 'device': 'eth1', 'cidr': '169.254.1.124/16', 'source_nat': False, 'size': '16'}], u'eth0': [{u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}]}
  271. 2016-12-21 06:23:36,600 merge.py save:71 Writing data bag type cmdline
  272. 2016-12-21 06:23:36,600 merge.py save:72 {u'config': {u'domain': u'nocser.net', u'eth1ip': u'169.254.1.124', u'name': u'r-690-VM', u'eth0mask': u'255.255.255.0', u'cidrsize': u'24', u'dns1': u'8.8.8.8', u'port': u'8080', u'dhcprange': u'10.3.28.1', u'ip6dns1': u'', u'host': u'10.2.30.11', u'baremetalnotificationsecuritykey': u'uavJByNGGjNLrELG-qbdN99__1I3tnp8qa0KbcsKokKJcPB43K9s6oQu2nMLqo3YP8p6jqDy5XT3WWOWBA2yNw', u'eth1mask': u'255.255.0.0', 'redundant_router': 'false', u'template': u'domP', u'dns2': u'8.8.4.4', u'disable_rp_filter': u'true', u'ip6dns2': u'', u'baremetalnotificationapikey': u'8JH4mdkxsEMhgIBgMonkNXAEKjVOeZnG1m5UVekvvo4v_iXQ4ZS7rh6NNS0qphhc7ZrCauiz23tp2-Wa3AASlg', u'type': u'dhcpsrvr', u'gateway': u'10.3.28.1', u'eth0ip': u'10.3.28.10'}, u'id': u'cmdline'}
  273. 2016-12-21 06:23:36,604 merge.py load:283 Could not open /var/cache/cloud/cmd_line.json
  274. 2016-12-21 06:23:36,604 merge.py load:60 Loading data bag type ips
  275. 2016-12-21 06:23:36,604 merge.py load:60 Loading data bag type cmdline
  276. 2016-12-21 06:23:36,605 configure.py main:924 Configuring ip addresses
  277. 2016-12-21 06:23:36,605 CsHelper.py execute:184 Executing: ip addr show dev eth1
  278. 2016-12-21 06:23:36,609 CsHelper.py execute:184 Executing: ip addr show dev eth0
  279. 2016-12-21 06:23:36,614 CsHelper.py execute:184 Executing: ip addr show dev eth1
  280. 2016-12-21 06:23:36,619 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  281. 2016-12-21 06:23:36,619 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  282. 2016-12-21 06:23:36,619 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  283. 2016-12-21 06:23:36,619 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  284. 2016-12-21 06:23:36,623 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  285. 2016-12-21 06:23:36,623 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  286. 2016-12-21 06:23:36,626 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  287. 2016-12-21 06:23:36,627 CsHelper.py execute:184 Executing: ip addr show dev eth0
  288. 2016-12-21 06:23:36,630 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  289. 2016-12-21 06:23:36,630 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  290. 2016-12-21 06:23:36,631 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  291. 2016-12-21 06:23:36,631 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  292. 2016-12-21 06:23:36,635 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  293. 2016-12-21 06:23:36,637 CsHelper.py execute:184 Executing: ip rule show
  294. 2016-12-21 06:23:36,640 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  295. 2016-12-21 06:23:36,644 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  296. 2016-12-21 06:23:36,644 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  297. 2016-12-21 06:23:36,649 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  298. 2016-12-21 06:23:56,680 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  299. 2016-12-21 06:23:56,680 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  300. 2016-12-21 06:23:56,680 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  301. 2016-12-21 06:23:56,681 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  302. 2016-12-21 06:23:56,690 CsHelper.py copy:251 Copied /etc/apache2/vhost.template to /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  303. 2016-12-21 06:23:56,690 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  304. 2016-12-21 06:23:56,691 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  305. 2016-12-21 06:23:56,691 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  306. 2016-12-21 06:23:56,692 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  307. 2016-12-21 06:23:56,693 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  308. 2016-12-21 06:23:56,694 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  309. 2016-12-21 06:23:56,694 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  310. 2016-12-21 06:23:56,696 CsFile.py commit:66 Wrote edited file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  311. 2016-12-21 06:23:56,696 CsFile.py commit:68 Updated file in-cache configuration
  312. 2016-12-21 06:23:56,696 CsHelper.py execute:184 Executing: service apache2 restart
  313. 2016-12-21 06:23:57,147 CsHelper.py service:213 Service apache2 restart
  314. 2016-12-21 06:23:57,147 CsHelper.py execute:184 Executing: ps aux
  315. 2016-12-21 06:23:57,162 CsProcess.py start:33 Started dummy
  316. 2016-12-21 06:23:57,165 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  317. 2016-12-21 06:23:57,165 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  318. 2016-12-21 06:23:57,176 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  319. 2016-12-21 06:23:57,176 configure.py main:929 Configuring Guest Network
  320. 2016-12-21 06:23:57,176 configure.py main:933 Configuring vmpassword
  321. 2016-12-21 06:23:57,176 merge.py load:57 Creating data bag type vmpassword
  322. 2016-12-21 06:23:57,176 configure.py main:938 Configuring vmdata
  323. 2016-12-21 06:23:57,176 merge.py load:57 Creating data bag type vmdata
  324. 2016-12-21 06:23:57,177 configure.py main:943 Configuring networkacl
  325. 2016-12-21 06:23:57,177 configure.py main:947 Configuring firewall rules
  326. 2016-12-21 06:23:57,177 configure.py main:951 Configuring PF rules
  327. 2016-12-21 06:23:57,177 configure.py main:955 Configuring s2s vpn
  328. 2016-12-21 06:23:57,177 configure.py main:959 Configuring remote access vpn
  329. 2016-12-21 06:23:57,177 configure.py main:963 Configuring vpn users list
  330. 2016-12-21 06:23:57,177 merge.py load:57 Creating data bag type vpnuserlist
  331. 2016-12-21 06:23:57,177 configure.py main:968 Configuring dhcp entry
  332. 2016-12-21 06:23:57,177 merge.py load:57 Creating data bag type dhcpentry
  333. 2016-12-21 06:23:57,178 CsHelper.py execute:184 Executing: ip addr show
  334. 2016-12-21 06:23:57,188 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
  335. 2016-12-21 06:23:57,188 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
  336. 2016-12-21 06:23:57,188 CsFile.py load:39 Reading file /etc/hosts
  337. 2016-12-21 06:23:57,188 CsFile.py commit:66 Wrote edited file /etc/hosts
  338. 2016-12-21 06:23:57,189 CsFile.py commit:68 Updated file in-cache configuration
  339. 2016-12-21 06:23:57,189 CsDhcp.py write_hosts:125 Updated hosts file
  340. 2016-12-21 06:23:57,189 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
  341. 2016-12-21 06:23:57,189 CsFile.py commit:60 Nothing to commit. The /etc/dhcphosts.txt file did not change
  342. 2016-12-21 06:23:57,189 CsHelper.py execute:184 Executing: service dnsmasq restart
  343. 2016-12-21 06:23:59,244 CsHelper.py service:213 Service dnsmasq restart
  344. 2016-12-21 06:23:59,244 configure.py main:973 Configuring load balancer
  345. 2016-12-21 06:23:59,244 configure.py main:977 Configuring monitor service
  346. 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type monitorservice
  347. 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type networkacl
  348. 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type firewallrules
  349. 2016-12-21 06:23:59,245 configure.py flushAllowAllEgressRules:267 Flush allow 'all' egress firewall rule
  350. 2016-12-21 06:23:59,246 CsHelper.py execute:184 Executing: iptables-save | grep '^:FW_EGRESS_RULES' || iptables -t filter -N FW_EGRESS_RULES
  351. 2016-12-21 06:23:59,307 CsHelper.py execute:184 Executing: iptables-save | grep '^-A FW_EGRESS_RULES -j ACCEPT$' | sed 's/^-A/iptables -t filter -D/g' | bash
  352. 2016-12-21 06:23:59,317 merge.py load:57 Creating data bag type forwardingrules
  353. 2016-12-21 06:23:59,317 merge.py load:57 Creating data bag type site2sitevpn
  354. 2016-12-21 06:23:59,318 merge.py load:57 Creating data bag type remoteaccessvpn
  355. 2016-12-21 06:23:59,319 configure.py process:618 {'id': 'remoteaccessvpn'}
  356. 2016-12-21 06:23:59,319 merge.py load:57 Creating data bag type loadbalancer
  357. 2016-12-21 06:23:59,319 configure.py main:1002 Configuring iptables rules
  358. 2016-12-21 06:23:59,319 CsHelper.py execute:184 Executing: iptables-save
  359. 2016-12-21 06:23:59,324 CsHelper.py execute:184 Executing: iptables -t filter -N FW_OUTBOUND
  360. 2016-12-21 06:23:59,329 CsHelper.py execute:184 Executing: iptables -t filter -N
  361. 2016-12-21 06:23:59,333 CsHelper.py execute:184 Executing: iptables -t mangle -N PREROUTING
  362. 2016-12-21 06:23:59,348 CsHelper.py execute:184 Executing: iptables -t filter -N NETWORK_STATS
  363. 2016-12-21 06:23:59,353 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-j': u'ACCEPT', u'-A': u'FW_OUTBOUND', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FW_OUTBOUND
  364. 2016-12-21 06:23:59,354 CsNetfilter.py compare:164 Add: rule=-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  365. 2016-12-21 06:23:59,354 CsHelper.py execute:184 Executing: iptables -t filter -A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT
  366. 2016-12-21 06:23:59,373 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth1', u'-m2': u'state', u'--dport': u'3922', u'-p': u'tcp', u'--state': u'NEW,ESTABLISHED', u'-j': u'ACCEPT'} table=filter chain=INPUT
  367. 2016-12-21 06:23:59,374 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT table=filter
  368. 2016-12-21 06:23:59,374 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT
  369. 2016-12-21 06:23:59,391 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-P': u'INPUT'} table=filter chain=
  370. 2016-12-21 06:23:59,392 CsNetfilter.py compare:164 Add: rule=-P INPUT DROP table=filter
  371. 2016-12-21 06:23:59,392 CsHelper.py execute:184 Executing: iptables -t filter -P INPUT DROP
  372. 2016-12-21 06:23:59,395 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-P': u'FORWARD'} table=filter chain=
  373. 2016-12-21 06:23:59,396 CsNetfilter.py compare:164 Add: rule=-P FORWARD DROP table=filter
  374. 2016-12-21 06:23:59,396 CsHelper.py execute:184 Executing: iptables -t filter -P FORWARD DROP
  375. 2016-12-21 06:23:59,399 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'PREROUTING', u'-i': u'eth0', u'-j': u'CONNMARK', u'--set-xmark': u'0x0/0xffffffff', u'--state': u'NEW', u'-m2': u'state'} table=mangle chain=PREROUTING
  376. 2016-12-21 06:23:59,400 CsNetfilter.py compare:164 Add: rule=-A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff table=mangle
  377. 2016-12-21 06:23:59,400 CsHelper.py execute:184 Executing: iptables -t mangle -A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff
  378. 2016-12-21 06:23:59,415 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'PREROUTING', u'--restore-mark': u'--nfmask', u'-j': u'CONNMARK', u'0xffffffff': u'--ctmask', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=mangle chain=PREROUTING
  379. 2016-12-21 06:23:59,415 CsNetfilter.py compare:164 Add: rule=-A PREROUTING -m state --state RELATED,ESTABLISHED -j CONNMARK --restore-mark --nfmask 0xffffffff --ctmask 0xffffffff table=mangle
  380. 2016-12-21 06:23:59,415 CsHelper.py execute:184 Executing: iptables -t mangle -I PREROUTING -m state --state RELATED,ESTABLISHED -j CONNMARK --restore-mark --nfmask 0xffffffff --ctmask 0xffffffff
  381. 2016-12-21 06:23:59,419 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'224.0.0.18/32', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  382. 2016-12-21 06:23:59,419 CsNetfilter.py compare:164 Add: rule=-A INPUT -d 224.0.0.18/32 -j ACCEPT table=filter
  383. 2016-12-21 06:23:59,419 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -d 224.0.0.18/32 -j ACCEPT
  384. 2016-12-21 06:23:59,423 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'225.0.0.50/32', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  385. 2016-12-21 06:23:59,423 CsNetfilter.py compare:164 Add: rule=-A INPUT -d 225.0.0.50/32 -j ACCEPT table=filter
  386. 2016-12-21 06:23:59,424 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -d 225.0.0.50/32 -j ACCEPT
  387. 2016-12-21 06:23:59,427 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-j': u'ACCEPT', u'-A': u'INPUT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=INPUT
  388. 2016-12-21 06:23:59,428 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  389. 2016-12-21 06:23:59,428 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  390. 2016-12-21 06:23:59,432 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-p': u'icmp', u'-j': u'ACCEPT'} table=filter chain=INPUT
  391. 2016-12-21 06:23:59,432 CsNetfilter.py compare:164 Add: rule=-A INPUT -p icmp -j ACCEPT table=filter
  392. 2016-12-21 06:23:59,432 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -p icmp -j ACCEPT
  393. 2016-12-21 06:23:59,436 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'lo', u'-A': u'INPUT', u'-j': u'ACCEPT'} table=filter chain=INPUT
  394. 2016-12-21 06:23:59,436 CsNetfilter.py compare:164 Add: rule=-A INPUT -i lo -j ACCEPT table=filter
  395. 2016-12-21 06:23:59,437 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i lo -j ACCEPT
  396. 2016-12-21 06:23:59,440 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'67', u'-p': u'udp'} table=filter chain=INPUT
  397. 2016-12-21 06:23:59,441 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT table=filter
  398. 2016-12-21 06:23:59,441 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
  399. 2016-12-21 06:23:59,447 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'udp'} table=filter chain=INPUT
  400. 2016-12-21 06:23:59,447 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT table=filter
  401. 2016-12-21 06:23:59,447 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT
  402. 2016-12-21 06:23:59,451 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'tcp'} table=filter chain=INPUT
  403. 2016-12-21 06:23:59,452 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT table=filter
  404. 2016-12-21 06:23:59,452 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
  405. 2016-12-21 06:23:59,456 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'80', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  406. 2016-12-21 06:23:59,456 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT table=filter
  407. 2016-12-21 06:23:59,456 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT
  408. 2016-12-21 06:23:59,460 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'8080', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  409. 2016-12-21 06:23:59,460 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT table=filter
  410. 2016-12-21 06:23:59,460 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i eth0 -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT
  411. 2016-12-21 06:23:59,464 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth1', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  412. 2016-12-21 06:23:59,464 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  413. 2016-12-21 06:23:59,464 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
  414. 2016-12-21 06:23:59,468 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'NEW', u'-m2': u'state'} table=filter chain=FORWARD
  415. 2016-12-21 06:23:59,468 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth0 -m state --state NEW -j ACCEPT table=filter
  416. 2016-12-21 06:23:59,468 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth0 -m state --state NEW -j ACCEPT
  417. 2016-12-21 06:23:59,471 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth2', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  418. 2016-12-21 06:23:59,472 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth2 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  419. 2016-12-21 06:23:59,472 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth2 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  420. 2016-12-21 06:23:59,475 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-o': u'eth0', u'-i': u'eth0', u'-j': u'ACCEPT', u'--state': u'RELATED,ESTABLISHED', u'-m2': u'state'} table=filter chain=FORWARD
  421. 2016-12-21 06:23:59,475 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT table=filter
  422. 2016-12-21 06:23:59,476 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
  423. 2016-12-21 06:23:59,479 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-o': u'eth2', u'-A': u'FORWARD', u'-j': u'FW_OUTBOUND'} table=filter chain=FORWARD
  424. 2016-12-21 06:23:59,479 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND table=filter
  425. 2016-12-21 06:23:59,479 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND
  426. 2016-12-21 06:23:59,482 CsNetfilter.py compare:148 Already processed : ('mangle', '', u'-A PREROUTING -i eth0 -m state --state NEW -j CONNMARK --set-xmark 0x0/0xffffffff')
  427. 2016-12-21 06:23:59,483 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'FORWARD', u'-j': u'NETWORK_STATS'} table=filter chain=FORWARD
  428. 2016-12-21 06:23:59,483 CsNetfilter.py compare:164 Add: rule=-A FORWARD -j NETWORK_STATS table=filter
  429. 2016-12-21 06:23:59,483 CsHelper.py execute:184 Executing: iptables -t filter -I FORWARD -j NETWORK_STATS
  430. 2016-12-21 06:23:59,486 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-j': u'NETWORK_STATS'} table=filter chain=INPUT
  431. 2016-12-21 06:23:59,486 CsNetfilter.py compare:164 Add: rule=-A INPUT -j NETWORK_STATS table=filter
  432. 2016-12-21 06:23:59,486 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -j NETWORK_STATS
  433. 2016-12-21 06:23:59,490 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'OUTPUT', u'-j': u'NETWORK_STATS'} table=filter chain=OUTPUT
  434. 2016-12-21 06:23:59,490 CsNetfilter.py compare:164 Add: rule=-A OUTPUT -j NETWORK_STATS table=filter
  435. 2016-12-21 06:23:59,490 CsHelper.py execute:184 Executing: iptables -t filter -I OUTPUT -j NETWORK_STATS
  436. 2016-12-21 06:23:59,493 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth0', u'-o': u'eth2', u'-A': u'NETWORK_STATS'} table=filter chain=NETWORK_STATS
  437. 2016-12-21 06:23:59,493 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth0 -o eth2 table=filter
  438. 2016-12-21 06:23:59,493 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth0 -o eth2
  439. 2016-12-21 06:23:59,497 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-i': u'eth2', u'-o': u'eth0', u'-A': u'NETWORK_STATS'} table=filter chain=NETWORK_STATS
  440. 2016-12-21 06:23:59,497 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 -o eth0 table=filter
  441. 2016-12-21 06:23:59,497 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 -o eth0
  442. 2016-12-21 06:23:59,500 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-o': u'eth2', u'-A': u'NETWORK_STATS', u'-p': u'tcp', u'!_-i': u'eth0'} table=filter chain=NETWORK_STATS
  443. 2016-12-21 06:23:59,500 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -o eth2 ! -i eth0 -p tcp table=filter
  444. 2016-12-21 06:23:59,500 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -o eth2 ! -i eth0 -p tcp
  445. 2016-12-21 06:23:59,503 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'!_-o': u'eth0', u'-i': u'eth2', u'-A': u'NETWORK_STATS', u'-p': u'tcp'} table=filter chain=NETWORK_STATS
  446. 2016-12-21 06:23:59,503 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 ! -o eth0 -p tcp table=filter
  447. 2016-12-21 06:23:59,504 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 ! -o eth0 -p tcp
  448. 2016-12-21 06:23:59,506 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'67', u'-p': u'udp'} table=filter chain=INPUT
  449. 2016-12-21 06:23:59,507 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT table=filter
  450. 2016-12-21 06:23:59,507 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
  451. 2016-12-21 06:23:59,510 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'udp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'udp'} table=filter chain=INPUT
  452. 2016-12-21 06:23:59,510 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p udp -m udp --dport 53 -j ACCEPT table=filter
  453. 2016-12-21 06:23:59,510 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p udp -m udp --dport 53 -j ACCEPT
  454. 2016-12-21 06:23:59,513 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-j': u'ACCEPT', u'--dport': u'53', u'-p': u'tcp'} table=filter chain=INPUT
  455. 2016-12-21 06:23:59,514 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp --dport 53 -j ACCEPT table=filter
  456. 2016-12-21 06:23:59,514 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp --dport 53 -j ACCEPT
  457. 2016-12-21 06:23:59,517 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'80', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  458. 2016-12-21 06:23:59,517 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 80 -j ACCEPT table=filter
  459. 2016-12-21 06:23:59,517 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 80 -j ACCEPT
  460. 2016-12-21 06:23:59,521 CsNetfilter.py compare:159 Checking if the rule already exists: rule={u'-d': u'10.3.28.10/32', u'-A': u'INPUT', u'-m': u'tcp', u'-i': u'eth0', u'-m2': u'state', u'--dport': u'443', u'-p': u'tcp', u'--state': u'NEW', u'-j': u'ACCEPT'} table=filter chain=INPUT
  461. 2016-12-21 06:23:59,521 CsNetfilter.py compare:164 Add: rule=-A INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 443 -j ACCEPT table=filter
  462. 2016-12-21 06:23:59,521 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -i eth0 -d 10.3.28.10/32 -p tcp -m tcp -m state --state NEW --dport 443 -j ACCEPT
  463. 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT')
  464. 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A INPUT -i eth1 -p tcp -m tcp --dport 3922 -m state --state NEW,ESTABLISHED -j ACCEPT')
  465. 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P INPUT DROP')
  466. 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P FORWARD DROP')
  467. 2016-12-21 06:23:59,524 merge.py load:60 Loading data bag type cmdline
  468. 2016-12-21 06:23:59,526 configure.py main:1006 Configuring iptables rules done ...saving rules
  469. 2016-12-21 06:23:59,526 CsHelper.py save_iptables:192 Saving iptables for iptables-save
  470. 2016-12-21 06:23:59,526 CsHelper.py execute:184 Executing: iptables-save
  471. 2016-12-21 06:23:59,530 CsHelper.py save_iptables:192 Saving iptables for ip6tables-save
  472. 2016-12-21 06:23:59,530 CsHelper.py execute:184 Executing: ip6tables-save
  473. 2016-12-21 06:23:59,532 CsRedundant.py set:68 Router redundancy status is False
  474. 2016-12-21 06:23:59,533 CsHelper.py execute:184 Executing: service conntrackd stop
  475. 2016-12-21 06:23:59,546 CsHelper.py service:213 Service conntrackd stop
  476. 2016-12-21 06:23:59,546 CsHelper.py execute:184 Executing: service keepalived stop
  477. 2016-12-21 06:23:59,554 CsHelper.py service:213 Service keepalived stop
  478. 2016-12-21 06:23:59,554 CsHelper.py execute:184 Executing: mount
  479. 2016-12-21 06:23:59,557 configure.py main:1016 Configuring static routes
  480. 2016-12-21 06:23:59,557 merge.py load:57 Creating data bag type staticroutes
  481. 2016-12-21 06:23:59,557 CsStaticRoutes.py process:27 Processing CsStaticRoutes file ==> {'id': 'staticroutes'}
  482. Wed Dec 21 06:25:02 UTC 2016 : VR config: configuation format version 1.0
  483. Wed Dec 21 06:25:02 UTC 2016 : VR config: creating file: /var/cache/cloud/monitor_service.json
  484. Wed Dec 21 06:25:02 UTC 2016 : VR config: create file success
  485. Wed Dec 21 06:25:02 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py monitor_service.json
  486. 2016-12-21 06:25:02,882 merge.py load:57 Creating data bag type monitorservice
  487. 2016-12-21 06:25:02,886 merge.py process:100 Command of type monitorservice received
  488. 2016-12-21 06:25:02,886 merge.py save:71 Writing data bag type monitorservice
  489. 2016-12-21 06:25:02,887 merge.py save:72 {'config': u'[dhcp]:processname=dnsmasq:servicename=dnsmasq:pidfile=/var/run/dnsmasq/dnsmasq.pid:,[ssh]:processname=sshd:servicename=ssh:pidfile=/var/run/sshd.pid:,[webserver]:processname=apache2:servicename=apache2:pidfile=/var/run/apache2.pid:,', 'id': u'monitorservice'}
  490. 2016-12-21 06:25:02,887 merge.py load:60 Loading data bag type ips
  491. 2016-12-21 06:25:02,887 merge.py load:60 Loading data bag type cmdline
  492. 2016-12-21 06:25:02,887 configure.py main:924 Configuring ip addresses
  493. 2016-12-21 06:25:02,888 CsHelper.py execute:184 Executing: ip addr show dev eth1
  494. 2016-12-21 06:25:02,899 CsHelper.py execute:184 Executing: ip addr show dev eth0
  495. 2016-12-21 06:25:02,905 CsHelper.py execute:184 Executing: ip addr show dev eth1
  496. 2016-12-21 06:25:02,910 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  497. 2016-12-21 06:25:02,910 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  498. 2016-12-21 06:25:02,910 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  499. 2016-12-21 06:25:02,910 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  500. 2016-12-21 06:25:02,919 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  501. 2016-12-21 06:25:02,919 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  502. 2016-12-21 06:25:02,925 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  503. 2016-12-21 06:25:02,925 CsHelper.py execute:184 Executing: ip addr show dev eth0
  504. 2016-12-21 06:25:02,935 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  505. 2016-12-21 06:25:02,935 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  506. 2016-12-21 06:25:02,935 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  507. 2016-12-21 06:25:02,935 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  508. 2016-12-21 06:25:02,940 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  509. 2016-12-21 06:25:02,941 CsHelper.py execute:184 Executing: ip rule show
  510. 2016-12-21 06:25:02,950 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  511. 2016-12-21 06:25:02,955 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  512. 2016-12-21 06:25:02,955 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  513. 2016-12-21 06:25:02,962 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  514. 2016-12-21 06:25:22,990 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  515. 2016-12-21 06:25:22,990 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  516. 2016-12-21 06:25:22,991 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  517. 2016-12-21 06:25:22,991 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  518. 2016-12-21 06:25:22,997 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  519. 2016-12-21 06:25:22,997 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  520. 2016-12-21 06:25:22,999 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  521. 2016-12-21 06:25:23,000 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  522. 2016-12-21 06:25:23,001 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  523. 2016-12-21 06:25:23,003 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  524. 2016-12-21 06:25:23,004 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  525. 2016-12-21 06:25:23,006 CsHelper.py execute:184 Executing: ps aux
  526. 2016-12-21 06:25:23,021 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  527. 2016-12-21 06:25:23,021 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  528. 2016-12-21 06:25:23,025 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  529. 2016-12-21 06:25:23,025 configure.py main:977 Configuring monitor service
  530. 2016-12-21 06:25:23,025 merge.py load:60 Loading data bag type monitorservice
  531. 2016-12-21 06:25:23,025 CsFile.py load:37 File /etc/monitor.conf does not exist
  532. 2016-12-21 06:25:23,026 CsFile.py commit:66 Wrote edited file /etc/monitor.conf
  533. 2016-12-21 06:25:23,026 CsFile.py commit:68 Updated file in-cache configuration
  534. 2016-12-21 06:25:23,026 CsFile.py load:37 File /etc/cron.d/process does not exist
  535. 2016-12-21 06:25:23,026 CsFile.py commit:66 Wrote edited file /etc/cron.d/process
  536. 2016-12-21 06:25:23,027 CsFile.py commit:68 Updated file in-cache configuration
  537. 2016-12-21 06:25:23,027 CsRedundant.py set:68 Router redundancy status is False
  538. 2016-12-21 06:25:23,027 CsHelper.py execute:184 Executing: service conntrackd stop
  539. 2016-12-21 06:25:23,042 CsHelper.py service:213 Service conntrackd stop
  540. 2016-12-21 06:25:23,043 CsHelper.py execute:184 Executing: service keepalived stop
  541. 2016-12-21 06:25:23,051 CsHelper.py service:213 Service keepalived stop
  542. 2016-12-21 06:25:23,052 CsHelper.py execute:184 Executing: mount
  543. [INFO] update_config.py :: Processing incoming file => monitor_service.json
  544. [INFO] Processing JSON file monitor_service.json
  545. Wed Dec 21 06:25:23 UTC 2016 : VR config: execution success
  546. Wed Dec 21 06:25:23 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
  547. Wed Dec 21 06:25:23 UTC 2016 : VR config: create file success
  548. Wed Dec 21 06:25:23 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  549. 2016-12-21 06:25:23,132 merge.py load:57 Creating data bag type dhcpentry
  550. 2016-12-21 06:25:23,133 merge.py process:100 Command of type dhcpentry received
  551. 2016-12-21 06:25:23,133 merge.py save:71 Writing data bag type dhcpentry
  552. 2016-12-21 06:25:23,133 merge.py save:72 {u'10.3.28.168': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:1f:1e:00:04:4b', u'default_entry': False, u'ipv4_adress': u'10.3.28.168', u'host_name': u'server-923', u'mac_address': u'06:1f:1e:00:04:4b', u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, 'id': u'dhcpentry'}
  553. 2016-12-21 06:25:23,134 merge.py load:60 Loading data bag type ips
  554. 2016-12-21 06:25:23,134 merge.py load:60 Loading data bag type cmdline
  555. 2016-12-21 06:25:23,134 configure.py main:924 Configuring ip addresses
  556. 2016-12-21 06:25:23,135 CsHelper.py execute:184 Executing: ip addr show dev eth1
  557. 2016-12-21 06:25:23,138 CsHelper.py execute:184 Executing: ip addr show dev eth0
  558. 2016-12-21 06:25:23,140 CsHelper.py execute:184 Executing: ip addr show dev eth1
  559. 2016-12-21 06:25:23,143 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  560. 2016-12-21 06:25:23,143 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  561. 2016-12-21 06:25:23,143 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  562. 2016-12-21 06:25:23,144 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  563. 2016-12-21 06:25:23,146 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  564. 2016-12-21 06:25:23,146 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  565. 2016-12-21 06:25:23,149 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  566. 2016-12-21 06:25:23,149 CsHelper.py execute:184 Executing: ip addr show dev eth0
  567. 2016-12-21 06:25:23,152 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  568. 2016-12-21 06:25:23,152 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  569. 2016-12-21 06:25:23,152 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  570. 2016-12-21 06:25:23,152 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  571. 2016-12-21 06:25:23,155 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  572. 2016-12-21 06:25:23,156 CsHelper.py execute:184 Executing: ip rule show
  573. 2016-12-21 06:25:23,158 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  574. 2016-12-21 06:25:23,160 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  575. 2016-12-21 06:25:23,160 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  576. 2016-12-21 06:25:23,163 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  577. 2016-12-21 06:25:43,188 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  578. 2016-12-21 06:25:43,188 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  579. 2016-12-21 06:25:43,189 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  580. 2016-12-21 06:25:43,189 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  581. 2016-12-21 06:25:43,195 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  582. 2016-12-21 06:25:43,196 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  583. 2016-12-21 06:25:43,197 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  584. 2016-12-21 06:25:43,198 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  585. 2016-12-21 06:25:43,200 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  586. 2016-12-21 06:25:43,201 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  587. 2016-12-21 06:25:43,202 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  588. 2016-12-21 06:25:43,204 CsHelper.py execute:184 Executing: ps aux
  589. 2016-12-21 06:25:43,219 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  590. 2016-12-21 06:25:43,219 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  591. 2016-12-21 06:25:43,223 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  592. 2016-12-21 06:25:43,223 configure.py main:968 Configuring dhcp entry
  593. 2016-12-21 06:25:43,224 merge.py load:60 Loading data bag type dhcpentry
  594. 2016-12-21 06:25:43,224 CsHelper.py execute:184 Executing: ip addr show
  595. 2016-12-21 06:25:43,228 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
  596. 2016-12-21 06:25:43,228 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
  597. 2016-12-21 06:25:43,229 CsFile.py load:39 Reading file /etc/hosts
  598. 2016-12-21 06:25:43,229 CsFile.py commit:66 Wrote edited file /etc/hosts
  599. 2016-12-21 06:25:43,229 CsFile.py commit:68 Updated file in-cache configuration
  600. 2016-12-21 06:25:43,229 CsDhcp.py write_hosts:125 Updated hosts file
  601. 2016-12-21 06:25:43,229 CsFile.py search:124 Searching for dhcp-range=interface:eth0,set:interface-eth0-0 and replacing with dhcp-range=interface:eth0,set:interface-eth0-0,10.3.28.10,static
  602. 2016-12-21 06:25:43,230 merge.py load:57 Creating data bag type guestnetwork
  603. 2016-12-21 06:25:43,230 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,15 and replacing with dhcp-option=tag:interface-eth0-0,15,nocser.net
  604. 2016-12-21 06:25:43,231 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  605. 2016-12-21 06:25:43,232 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  606. 2016-12-21 06:25:43,232 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,6 and replacing with dhcp-option=tag:interface-eth0-0,6,10.3.28.10,8.8.8.8,8.8.4.4
  607. 2016-12-21 06:25:43,233 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,3, and replacing with dhcp-option=tag:interface-eth0-0,3,0.0.0.0
  608. 2016-12-21 06:25:43,233 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  609. 2016-12-21 06:25:43,234 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,1, and replacing with dhcp-option=tag:interface-eth0-0,1,255.255.255.0
  610. 2016-12-21 06:25:43,234 CsFile.py commit:66 Wrote edited file /etc/dnsmasq.d/cloud.conf
  611. 2016-12-21 06:25:43,235 CsFile.py commit:68 Updated file in-cache configuration
  612. 2016-12-21 06:25:43,235 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
  613. 2016-12-21 06:25:43,235 CsFile.py commit:68 Updated file in-cache configuration
  614. 2016-12-21 06:25:43,235 CsHelper.py execute:184 Executing: service dnsmasq restart
  615. 2016-12-21 06:25:45,258 CsHelper.py service:213 Service dnsmasq restart
  616. 2016-12-21 06:25:45,258 CsRedundant.py set:68 Router redundancy status is False
  617. 2016-12-21 06:25:45,259 CsHelper.py execute:184 Executing: service conntrackd stop
  618. 2016-12-21 06:25:45,278 CsHelper.py service:213 Service conntrackd stop
  619. 2016-12-21 06:25:45,278 CsHelper.py execute:184 Executing: service keepalived stop
  620. 2016-12-21 06:25:45,287 CsHelper.py service:213 Service keepalived stop
  621. 2016-12-21 06:25:45,287 CsHelper.py execute:184 Executing: mount
  622. [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
  623. [INFO] Processing JSON file vm_dhcp_entry.json
  624. Wed Dec 21 06:25:45 UTC 2016 : VR config: execution success
  625. Wed Dec 21 06:25:45 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
  626. Wed Dec 21 06:25:45 UTC 2016 : VR config: create file success
  627. Wed Dec 21 06:25:45 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  628. 2016-12-21 06:25:45,374 merge.py load:60 Loading data bag type dhcpentry
  629. 2016-12-21 06:25:45,375 merge.py process:100 Command of type dhcpentry received
  630. 2016-12-21 06:25:45,375 merge.py save:71 Writing data bag type dhcpentry
  631. 2016-12-21 06:25:45,375 merge.py save:72 {u'10.3.28.62': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:81:c2:00:03:e1', u'default_entry': False, u'ipv4_adress': u'10.3.28.62', u'host_name': u'monitor', u'mac_address': u'06:81:c2:00:03:e1', u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.168': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:1f:1e:00:04:4b', u'mac_address': u'06:1f:1e:00:04:4b', u'ipv4_adress': u'10.3.28.168', u'host_name': u'server-923', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'id': u'dhcpentry'}
  632. 2016-12-21 06:25:45,376 merge.py load:60 Loading data bag type ips
  633. 2016-12-21 06:25:45,376 merge.py load:60 Loading data bag type cmdline
  634. 2016-12-21 06:25:45,377 configure.py main:924 Configuring ip addresses
  635. 2016-12-21 06:25:45,377 CsHelper.py execute:184 Executing: ip addr show dev eth1
  636. 2016-12-21 06:25:45,380 CsHelper.py execute:184 Executing: ip addr show dev eth0
  637. 2016-12-21 06:25:45,383 CsHelper.py execute:184 Executing: ip addr show dev eth1
  638. 2016-12-21 06:25:45,385 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  639. 2016-12-21 06:25:45,386 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  640. 2016-12-21 06:25:45,386 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  641. 2016-12-21 06:25:45,386 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  642. 2016-12-21 06:25:45,389 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  643. 2016-12-21 06:25:45,389 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  644. 2016-12-21 06:25:45,391 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  645. 2016-12-21 06:25:45,391 CsHelper.py execute:184 Executing: ip addr show dev eth0
  646. 2016-12-21 06:25:45,394 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  647. 2016-12-21 06:25:45,394 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  648. 2016-12-21 06:25:45,395 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  649. 2016-12-21 06:25:45,395 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  650. 2016-12-21 06:25:45,398 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  651. 2016-12-21 06:25:45,398 CsHelper.py execute:184 Executing: ip rule show
  652. 2016-12-21 06:25:45,401 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  653. 2016-12-21 06:25:45,403 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  654. 2016-12-21 06:25:45,404 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  655. 2016-12-21 06:25:45,407 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  656. 2016-12-21 06:26:05,432 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  657. 2016-12-21 06:26:05,432 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  658. 2016-12-21 06:26:05,433 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  659. 2016-12-21 06:26:05,433 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  660. 2016-12-21 06:26:05,439 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  661. 2016-12-21 06:26:05,440 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  662. 2016-12-21 06:26:05,441 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  663. 2016-12-21 06:26:05,443 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  664. 2016-12-21 06:26:05,444 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  665. 2016-12-21 06:26:05,445 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  666. 2016-12-21 06:26:05,447 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  667. 2016-12-21 06:26:05,448 CsHelper.py execute:184 Executing: ps aux
  668. 2016-12-21 06:26:05,463 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  669. 2016-12-21 06:26:05,464 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  670. 2016-12-21 06:26:05,467 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  671. 2016-12-21 06:26:05,467 configure.py main:968 Configuring dhcp entry
  672. 2016-12-21 06:26:05,468 merge.py load:60 Loading data bag type dhcpentry
  673. 2016-12-21 06:26:05,468 CsHelper.py execute:184 Executing: ip addr show
  674. 2016-12-21 06:26:05,472 CsFile.py load:39 Reading file /etc/dhcphosts.txt
  675. 2016-12-21 06:26:05,472 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
  676. 2016-12-21 06:26:05,473 CsFile.py load:39 Reading file /etc/hosts
  677. 2016-12-21 06:26:05,473 CsFile.py commit:66 Wrote edited file /etc/hosts
  678. 2016-12-21 06:26:05,473 CsFile.py commit:68 Updated file in-cache configuration
  679. 2016-12-21 06:26:05,474 CsDhcp.py write_hosts:125 Updated hosts file
  680. 2016-12-21 06:26:05,474 CsFile.py search:124 Searching for dhcp-range=interface:eth0,set:interface-eth0-0 and replacing with dhcp-range=interface:eth0,set:interface-eth0-0,10.3.28.10,static
  681. 2016-12-21 06:26:05,475 merge.py load:57 Creating data bag type guestnetwork
  682. 2016-12-21 06:26:05,475 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,15 and replacing with dhcp-option=tag:interface-eth0-0,15,nocser.net
  683. 2016-12-21 06:26:05,476 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  684. 2016-12-21 06:26:05,477 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  685. 2016-12-21 06:26:05,477 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,6 and replacing with dhcp-option=tag:interface-eth0-0,6,10.3.28.10,8.8.8.8,8.8.4.4
  686. 2016-12-21 06:26:05,478 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,3, and replacing with dhcp-option=tag:interface-eth0-0,3,0.0.0.0
  687. 2016-12-21 06:26:05,478 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  688. 2016-12-21 06:26:05,479 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,1, and replacing with dhcp-option=tag:interface-eth0-0,1,255.255.255.0
  689. 2016-12-21 06:26:05,479 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
  690. 2016-12-21 06:26:05,480 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
  691. 2016-12-21 06:26:05,480 CsFile.py commit:68 Updated file in-cache configuration
  692. 2016-12-21 06:26:05,480 CsHelper.py execute:184 Executing: service dnsmasq restart
  693. 2016-12-21 06:26:07,502 CsHelper.py service:213 Service dnsmasq restart
  694. 2016-12-21 06:26:07,503 CsRedundant.py set:68 Router redundancy status is False
  695. 2016-12-21 06:26:07,503 CsHelper.py execute:184 Executing: service conntrackd stop
  696. 2016-12-21 06:26:07,522 CsHelper.py service:213 Service conntrackd stop
  697. 2016-12-21 06:26:07,522 CsHelper.py execute:184 Executing: service keepalived stop
  698. 2016-12-21 06:26:07,531 CsHelper.py service:213 Service keepalived stop
  699. 2016-12-21 06:26:07,531 CsHelper.py execute:184 Executing: mount
  700. [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
  701. [INFO] Processing JSON file vm_dhcp_entry.json
  702. server-923 monitor
  703. Wed Dec 21 06:26:07 UTC 2016 : VR config: execution success
  704. Wed Dec 21 06:26:07 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
  705. Wed Dec 21 06:26:07 UTC 2016 : VR config: create file success
  706. Wed Dec 21 06:26:07 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  707. 2016-12-21 06:26:07,618 merge.py load:60 Loading data bag type dhcpentry
  708. 2016-12-21 06:26:07,619 merge.py process:100 Command of type dhcpentry received
  709. 2016-12-21 06:26:07,619 merge.py save:71 Writing data bag type dhcpentry
  710. 2016-12-21 06:26:07,619 merge.py save:72 {u'10.3.28.115': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:4f:64:00:04:16', u'default_entry': False, u'ipv4_adress': u'10.3.28.115', u'host_name': u'sv1', u'mac_address': u'06:4f:64:00:04:16', u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.62': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:81:c2:00:03:e1', u'mac_address': u'06:81:c2:00:03:e1', u'ipv4_adress': u'10.3.28.62', u'host_name': u'monitor', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.168': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:1f:1e:00:04:4b', u'mac_address': u'06:1f:1e:00:04:4b', u'ipv4_adress': u'10.3.28.168', u'host_name': u'server-923', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'id': u'dhcpentry'}
  711. 2016-12-21 06:26:07,620 merge.py load:60 Loading data bag type ips
  712. 2016-12-21 06:26:07,620 merge.py load:60 Loading data bag type cmdline
  713. 2016-12-21 06:26:07,621 configure.py main:924 Configuring ip addresses
  714. 2016-12-21 06:26:07,621 CsHelper.py execute:184 Executing: ip addr show dev eth1
  715. 2016-12-21 06:26:07,624 CsHelper.py execute:184 Executing: ip addr show dev eth0
  716. 2016-12-21 06:26:07,626 CsHelper.py execute:184 Executing: ip addr show dev eth1
  717. 2016-12-21 06:26:07,629 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  718. 2016-12-21 06:26:07,629 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  719. 2016-12-21 06:26:07,630 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  720. 2016-12-21 06:26:07,630 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  721. 2016-12-21 06:26:07,632 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  722. 2016-12-21 06:26:07,633 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  723. 2016-12-21 06:26:07,635 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  724. 2016-12-21 06:26:07,635 CsHelper.py execute:184 Executing: ip addr show dev eth0
  725. 2016-12-21 06:26:07,638 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  726. 2016-12-21 06:26:07,638 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  727. 2016-12-21 06:26:07,639 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  728. 2016-12-21 06:26:07,639 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  729. 2016-12-21 06:26:07,641 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  730. 2016-12-21 06:26:07,642 CsHelper.py execute:184 Executing: ip rule show
  731. 2016-12-21 06:26:07,645 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  732. 2016-12-21 06:26:07,647 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  733. 2016-12-21 06:26:07,647 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  734. 2016-12-21 06:26:07,651 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  735. 2016-12-21 06:26:27,676 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  736. 2016-12-21 06:26:27,676 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  737. 2016-12-21 06:26:27,677 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  738. 2016-12-21 06:26:27,677 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  739. 2016-12-21 06:26:27,682 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  740. 2016-12-21 06:26:27,683 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  741. 2016-12-21 06:26:27,683 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  742. 2016-12-21 06:26:27,684 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  743. 2016-12-21 06:26:27,685 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  744. 2016-12-21 06:26:27,686 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  745. 2016-12-21 06:26:27,687 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  746. 2016-12-21 06:26:27,689 CsHelper.py execute:184 Executing: ps aux
  747. 2016-12-21 06:26:27,702 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  748. 2016-12-21 06:26:27,702 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  749. 2016-12-21 06:26:27,705 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  750. 2016-12-21 06:26:27,706 configure.py main:968 Configuring dhcp entry
  751. 2016-12-21 06:26:27,706 merge.py load:60 Loading data bag type dhcpentry
  752. 2016-12-21 06:26:27,706 CsHelper.py execute:184 Executing: ip addr show
  753. 2016-12-21 06:26:27,710 CsFile.py load:39 Reading file /etc/dhcphosts.txt
  754. 2016-12-21 06:26:27,711 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
  755. 2016-12-21 06:26:27,711 CsFile.py load:39 Reading file /etc/hosts
  756. 2016-12-21 06:26:27,712 CsFile.py commit:66 Wrote edited file /etc/hosts
  757. 2016-12-21 06:26:27,712 CsFile.py commit:68 Updated file in-cache configuration
  758. 2016-12-21 06:26:27,712 CsDhcp.py write_hosts:125 Updated hosts file
  759. 2016-12-21 06:26:27,712 CsFile.py search:124 Searching for dhcp-range=interface:eth0,set:interface-eth0-0 and replacing with dhcp-range=interface:eth0,set:interface-eth0-0,10.3.28.10,static
  760. 2016-12-21 06:26:27,713 merge.py load:57 Creating data bag type guestnetwork
  761. 2016-12-21 06:26:27,714 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,15 and replacing with dhcp-option=tag:interface-eth0-0,15,nocser.net
  762. 2016-12-21 06:26:27,714 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  763. 2016-12-21 06:26:27,715 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  764. 2016-12-21 06:26:27,715 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,6 and replacing with dhcp-option=tag:interface-eth0-0,6,10.3.28.10,8.8.8.8,8.8.4.4
  765. 2016-12-21 06:26:27,716 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,3, and replacing with dhcp-option=tag:interface-eth0-0,3,0.0.0.0
  766. 2016-12-21 06:26:27,717 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  767. 2016-12-21 06:26:27,717 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,1, and replacing with dhcp-option=tag:interface-eth0-0,1,255.255.255.0
  768. 2016-12-21 06:26:27,718 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
  769. 2016-12-21 06:26:27,718 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
  770. 2016-12-21 06:26:27,718 CsFile.py commit:68 Updated file in-cache configuration
  771. 2016-12-21 06:26:27,718 CsHelper.py execute:184 Executing: service dnsmasq restart
  772. 2016-12-21 06:26:29,738 CsHelper.py service:213 Service dnsmasq restart
  773. 2016-12-21 06:26:29,739 CsRedundant.py set:68 Router redundancy status is False
  774. 2016-12-21 06:26:29,739 CsHelper.py execute:184 Executing: service conntrackd stop
  775. 2016-12-21 06:26:29,755 CsHelper.py service:213 Service conntrackd stop
  776. 2016-12-21 06:26:29,755 CsHelper.py execute:184 Executing: service keepalived stop
  777. 2016-12-21 06:26:29,764 CsHelper.py service:213 Service keepalived stop
  778. 2016-12-21 06:26:29,764 CsHelper.py execute:184 Executing: mount
  779. [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
  780. [INFO] Processing JSON file vm_dhcp_entry.json
  781. monitor sv1
  782. server-923 sv1
  783. Wed Dec 21 06:26:29 UTC 2016 : VR config: execution success
  784. Wed Dec 21 06:26:29 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
  785. Wed Dec 21 06:26:29 UTC 2016 : VR config: create file success
  786. Wed Dec 21 06:26:29 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  787. 2016-12-21 06:26:29,847 merge.py load:60 Loading data bag type dhcpentry
  788. 2016-12-21 06:26:29,848 merge.py process:100 Command of type dhcpentry received
  789. 2016-12-21 06:26:29,848 merge.py save:71 Writing data bag type dhcpentry
  790. 2016-12-21 06:26:29,848 merge.py save:72 {u'10.3.28.115': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:4f:64:00:04:16', u'mac_address': u'06:4f:64:00:04:16', u'ipv4_adress': u'10.3.28.115', u'host_name': u'sv1', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.201': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:7f:20:00:04:6c', u'default_entry': False, u'ipv4_adress': u'10.3.28.201', u'host_name': u'server-1200', u'mac_address': u'06:7f:20:00:04:6c', u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.62': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:81:c2:00:03:e1', u'mac_address': u'06:81:c2:00:03:e1', u'ipv4_adress': u'10.3.28.62', u'host_name': u'monitor', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.168': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:1f:1e:00:04:4b', u'mac_address': u'06:1f:1e:00:04:4b', u'ipv4_adress': u'10.3.28.168', u'host_name': u'server-923', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'id': u'dhcpentry'}
  791. 2016-12-21 06:26:29,849 merge.py load:60 Loading data bag type ips
  792. 2016-12-21 06:26:29,849 merge.py load:60 Loading data bag type cmdline
  793. 2016-12-21 06:26:29,850 configure.py main:924 Configuring ip addresses
  794. 2016-12-21 06:26:29,850 CsHelper.py execute:184 Executing: ip addr show dev eth1
  795. 2016-12-21 06:26:29,853 CsHelper.py execute:184 Executing: ip addr show dev eth0
  796. 2016-12-21 06:26:29,855 CsHelper.py execute:184 Executing: ip addr show dev eth1
  797. 2016-12-21 06:26:29,858 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  798. 2016-12-21 06:26:29,859 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  799. 2016-12-21 06:26:29,859 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  800. 2016-12-21 06:26:29,859 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  801. 2016-12-21 06:26:29,862 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  802. 2016-12-21 06:26:29,862 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  803. 2016-12-21 06:26:29,864 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  804. 2016-12-21 06:26:29,865 CsHelper.py execute:184 Executing: ip addr show dev eth0
  805. 2016-12-21 06:26:29,867 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  806. 2016-12-21 06:26:29,867 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  807. 2016-12-21 06:26:29,868 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  808. 2016-12-21 06:26:29,868 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  809. 2016-12-21 06:26:29,871 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  810. 2016-12-21 06:26:29,871 CsHelper.py execute:184 Executing: ip rule show
  811. 2016-12-21 06:26:29,874 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  812. 2016-12-21 06:26:29,877 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  813. 2016-12-21 06:26:29,877 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  814. 2016-12-21 06:26:29,880 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  815. 2016-12-21 06:26:49,904 CsAddress.py inKernel:686 rpsfr is not present in the kernel
  816. 2016-12-21 06:26:49,905 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  817. 2016-12-21 06:26:49,905 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.3.28.0/24 if not present
  818. 2016-12-21 06:26:49,905 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.3.28.0/24
  819. 2016-12-21 06:26:49,911 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
  820. 2016-12-21 06:26:49,912 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
  821. 2016-12-21 06:26:49,913 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
  822. 2016-12-21 06:26:49,915 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
  823. 2016-12-21 06:26:49,916 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
  824. 2016-12-21 06:26:49,917 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
  825. 2016-12-21 06:26:49,918 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
  826. 2016-12-21 06:26:49,920 CsHelper.py execute:184 Executing: ps aux
  827. 2016-12-21 06:26:49,933 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  828. 2016-12-21 06:26:49,933 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  829. 2016-12-21 06:26:49,937 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  830. 2016-12-21 06:26:49,937 configure.py main:968 Configuring dhcp entry
  831. 2016-12-21 06:26:49,937 merge.py load:60 Loading data bag type dhcpentry
  832. 2016-12-21 06:26:49,938 CsHelper.py execute:184 Executing: ip addr show
  833. 2016-12-21 06:26:49,942 CsFile.py load:39 Reading file /etc/dhcphosts.txt
  834. 2016-12-21 06:26:49,942 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
  835. 2016-12-21 06:26:49,943 CsFile.py load:39 Reading file /etc/hosts
  836. 2016-12-21 06:26:49,943 CsFile.py commit:66 Wrote edited file /etc/hosts
  837. 2016-12-21 06:26:49,943 CsFile.py commit:68 Updated file in-cache configuration
  838. 2016-12-21 06:26:49,944 CsDhcp.py write_hosts:125 Updated hosts file
  839. 2016-12-21 06:26:49,944 CsFile.py search:124 Searching for dhcp-range=interface:eth0,set:interface-eth0-0 and replacing with dhcp-range=interface:eth0,set:interface-eth0-0,10.3.28.10,static
  840. 2016-12-21 06:26:49,945 merge.py load:57 Creating data bag type guestnetwork
  841. 2016-12-21 06:26:49,945 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,15 and replacing with dhcp-option=tag:interface-eth0-0,15,nocser.net
  842. 2016-12-21 06:26:49,946 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  843. 2016-12-21 06:26:49,946 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  844. 2016-12-21 06:26:49,947 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,6 and replacing with dhcp-option=tag:interface-eth0-0,6,10.3.28.10,8.8.8.8,8.8.4.4
  845. 2016-12-21 06:26:49,947 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,3, and replacing with dhcp-option=tag:interface-eth0-0,3,0.0.0.0
  846. 2016-12-21 06:26:49,948 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.3.28.10'
  847. 2016-12-21 06:26:49,948 CsFile.py search:124 Searching for dhcp-option=tag:interface-eth0-0,1, and replacing with dhcp-option=tag:interface-eth0-0,1,255.255.255.0
  848. 2016-12-21 06:26:49,949 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
  849. 2016-12-21 06:26:49,949 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
  850. 2016-12-21 06:26:49,950 CsFile.py commit:68 Updated file in-cache configuration
  851. 2016-12-21 06:26:49,950 CsHelper.py execute:184 Executing: service dnsmasq restart
  852. 2016-12-21 06:26:51,971 CsHelper.py service:213 Service dnsmasq restart
  853. 2016-12-21 06:26:51,972 CsRedundant.py set:68 Router redundancy status is False
  854. 2016-12-21 06:26:51,972 CsHelper.py execute:184 Executing: service conntrackd stop
  855. 2016-12-21 06:26:51,992 CsHelper.py service:213 Service conntrackd stop
  856. 2016-12-21 06:26:51,992 CsHelper.py execute:184 Executing: service keepalived stop
  857. 2016-12-21 06:26:52,002 CsHelper.py service:213 Service keepalived stop
  858. 2016-12-21 06:26:52,002 CsHelper.py execute:184 Executing: mount
  859. [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
  860. [INFO] Processing JSON file vm_dhcp_entry.json
  861. sv1 server-1200
  862. monitor server-1200
  863. server-923 server-1200
  864. Wed Dec 21 06:26:52 UTC 2016 : VR config: execution success
  865. Wed Dec 21 06:26:52 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
  866. Wed Dec 21 06:26:52 UTC 2016 : VR config: create file success
  867. Wed Dec 21 06:26:52 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  868. 2016-12-21 06:26:52,091 merge.py load:60 Loading data bag type dhcpentry
  869. 2016-12-21 06:26:52,091 merge.py process:100 Command of type dhcpentry received
  870. 2016-12-21 06:26:52,092 merge.py save:71 Writing data bag type dhcpentry
  871. 2016-12-21 06:26:52,092 merge.py save:72 {u'10.3.28.223': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:84:42:00:04:82', u'default_entry': False, u'ipv4_adress': u'10.3.28.223', u'host_name': u'server-1093', u'mac_address': u'06:84:42:00:04:82', u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.115': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:4f:64:00:04:16', u'mac_address': u'06:4f:64:00:04:16', u'ipv4_adress': u'10.3.28.115', u'host_name': u'sv1', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.62': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:81:c2:00:03:e1', u'mac_address': u'06:81:c2:00:03:e1', u'ipv4_adress': u'10.3.28.62', u'host_name': u'monitor', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.168': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:1f:1e:00:04:4b', u'mac_address': u'06:1f:1e:00:04:4b', u'ipv4_adress': u'10.3.28.168', u'host_name': u'server-923', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'10.3.28.201': {u'default_gateway': u'0.0.0.0', u'ipv6_duid': u'00:03:00:01:06:7f:20:00:04:6c', u'mac_address': u'06:7f:20:00:04:6c', u'ipv4_adress': u'10.3.28.201', u'host_name': u'server-1200', u'default_entry': False, u'type': u'dhcpentry', u'dns_adresses': u'42.0.28.11'}, u'id': u'dhcpentry'}
  872. 2016-12-21 06:26:52,093 merge.py load:60 Loading data bag type ips
  873. 2016-12-21 06:26:52,093 merge.py load:60 Loading data bag type cmdline
  874. 2016-12-21 06:26:52,094 configure.py main:924 Configuring ip addresses
  875. 2016-12-21 06:26:52,094 CsHelper.py execute:184 Executing: ip addr show dev eth1
  876. 2016-12-21 06:26:52,097 CsHelper.py execute:184 Executing: ip addr show dev eth0
  877. 2016-12-21 06:26:52,100 CsHelper.py execute:184 Executing: ip addr show dev eth1
  878. 2016-12-21 06:26:52,102 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.1.124', u'one_to_one_nat': False, u'nic_dev_id': u'1', u'network': u'169.254.0.0/16', u'netmask': u'255.255.0.0', u'source_nat': False, u'broadcast': u'169.254.255.255', u'add': True, u'nw_type': u'control', u'device': u'eth1', u'cidr': u'169.254.1.124/16', u'gateway': u'None', u'size': u'16'}
  879. 2016-12-21 06:26:52,103 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
  880. 2016-12-21 06:26:52,103 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
  881. 2016-12-21 06:26:52,103 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
  882. 2016-12-21 06:26:52,106 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
  883. 2016-12-21 06:26:52,106 CsHelper.py execute:184 Executing: ip -4 route list 0/0
  884. 2016-12-21 06:26:52,108 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
  885. 2016-12-21 06:26:52,109 CsHelper.py execute:184 Executing: ip addr show dev eth0
  886. 2016-12-21 06:26:52,111 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.3.28.10', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.3.28.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.3.28.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.3.28.10/24', u'gateway': u'None', u'size': u'24'}
  887. 2016-12-21 06:26:52,111 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
  888. 2016-12-21 06:26:52,112 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
  889. 2016-12-21 06:26:52,112 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
  890. 2016-12-21 06:26:52,114 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present
  891. 2016-12-21 06:26:52,115 CsHelper.py execute:184 Executing: ip rule show
  892. 2016-12-21 06:26:52,118 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
  893. 2016-12-21 06:26:52,121 CsRule.py addMark:37 Added fwmark rule for Table_eth0
  894. 2016-12-21 06:26:52,121 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
  895. 2016-12-21 06:26:52,124 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.3.28.10 None
  896.  
  897. Broadcast message from root@r-690-VM (Wed Dec 21 06:27:02 2016):
  898.  
  899. The system is going down for system halt NOW!
  900.  
  901. Broadcast message from root@r-690-VM (Wed Dec 21 06:27:03 2016):
  902.  
  903. Power button pressed
  904. The system is going down for system halt NOW!
  905. /opt/cloud/bin/vr_cfg.sh: line 60: 4085 Killed /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  906. Wed Dec 21 06:27:03 UTC 2016 : VR config: executing failed: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
  907. debug1: channel 0: free: client-session, nchannels 1
  908. Connection to 169.254.1.124 closed by remote host.
  909. Connection to 169.254.1.124 closed.
  910. Transferred: sent 4384, received 121776 bytes, in 182.1 seconds
  911. Bytes per second: sent 24.1, received 668.8
  912. debug1: Exit status -1
Advertisement
Add Comment
Please, Sign In to add comment