Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Wed Dec 21 06:21:14 UTC 2016 Executing cloud-early-config
- Wed Dec 21 06:21:14 UTC 2016 Detected that we are running inside kvm guest
- Wed Dec 21 06:21:14 UTC 2016 Found a non empty cmdline file. Will now exit the loop and proceed with configuration.
- Wed Dec 21 06:21:14 UTC 2016 Patching scripts oldmd5=0b260321715ec35ed7bab1d6b03bedfc newmd5=6a20ff74eb235f16e848f66235f0732a
- Wed Dec 21 06:21:14 UTC 2016 Patching cloud service
- Wed Dec 21 06:21:15 UTC 2016 Rebooting system since we patched init scripts
- Wed Dec 21 06:21:17 UTC 2016 Updating log4j-cloud.xml
- Wed Dec 21 06:21:18 UTC 2016 Setting up dhcp server system vm
- Wed Dec 21 06:21:18 UTC 2016 checking that eth0 has IP
- Wed Dec 21 06:21:18 UTC 2016 checking that eth1 has IP
- Wed Dec 21 06:21:21 UTC 2016 Setting up dnsmasq
- Wed Dec 21 06:21:21 UTC 2016 Setting up apache web server
- Wed Dec 21 06:21:21 UTC 2016 Enable service dnsmasq = 1
- Wed Dec 21 06:21:21 UTC 2016 Enable service haproxy = 0
- Wed Dec 21 06:21:21 UTC 2016 Processors = 1 Enable service = 0
- Wed Dec 21 06:21:21 UTC 2016 Enable service cloud-passwd-srvr = 1
- Wed Dec 21 06:21:21 UTC 2016 Enable service cloud = 0
- Wed Dec 21 06:21:21 UTC 2016 cloud: enable_fwding = 0
- Wed Dec 21 06:21:21 UTC 2016 enable_fwding = 0
- 2016-12-21 06:21:22,336 merge.py load:57 Creating data bag type cmdline
- 2016-12-21 06:21:22,337 merge.py process:100 Command of type cmdline received
- 2016-12-21 06:21:22,337 merge.py load:57 Creating data bag type ips
- 2016-12-21 06:21:22,337 merge.py process:100 Command of type ips received
- 2016-12-21 06:21:22,337 merge.py save:71 Writing data bag type ips
- 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'}]}
- 2016-12-21 06:21:22,338 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:21:22,338 merge.py process:100 Command of type ips received
- 2016-12-21 06:21:22,339 merge.py save:71 Writing data bag type ips
- 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'}]}
- 2016-12-21 06:21:22,339 merge.py save:71 Writing data bag type cmdline
- 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'}
- 2016-12-21 06:21:22,340 merge.py load:283 Could not open /var/cache/cloud/cmd_line.json
- 2016-12-21 06:21:22,340 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:21:22,340 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:21:22,341 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:21:22,341 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:21:22,345 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:21:22,349 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:21:22,352 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:21:22,352 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:21:22,352 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:21:22,355 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:21:22,356 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:21:22,359 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:21:22,359 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:21:22,362 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:21:22,362 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:21:22,362 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:21:22,367 CsHelper.py addifmissing:172 Added 0 Table_eth0 to file /etc/iproute2/rt_tables
- 2016-12-21 06:21:22,367 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:21:22,370 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:21:22,373 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:21:22,373 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:21:42,425 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 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
- 2016-12-21 06:21:42,434 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:21:42,435 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:21:42,435 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:21:42,436 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:21:42,437 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:21:42,438 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:21:42,439 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:21:42,440 CsFile.py commit:66 Wrote edited file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:21:42,441 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:21:42,441 CsHelper.py execute:184 Executing: service apache2 restart
- 2016-12-21 06:21:42,599 CsHelper.py service:213 Service apache2 restart
- 2016-12-21 06:21:42,600 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:21:42,607 CsProcess.py start:33 Started dummy
- 2016-12-21 06:21:42,608 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:21:42,608 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:21:42,613 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:21:42,613 configure.py main:929 Configuring Guest Network
- 2016-12-21 06:21:42,613 configure.py main:933 Configuring vmpassword
- 2016-12-21 06:21:42,613 merge.py load:57 Creating data bag type vmpassword
- 2016-12-21 06:21:42,613 configure.py main:938 Configuring vmdata
- 2016-12-21 06:21:42,613 merge.py load:57 Creating data bag type vmdata
- 2016-12-21 06:21:42,614 configure.py main:943 Configuring networkacl
- 2016-12-21 06:21:42,614 configure.py main:947 Configuring firewall rules
- 2016-12-21 06:21:42,614 configure.py main:951 Configuring PF rules
- 2016-12-21 06:21:42,614 configure.py main:955 Configuring s2s vpn
- 2016-12-21 06:21:42,614 configure.py main:959 Configuring remote access vpn
- 2016-12-21 06:21:42,614 configure.py main:963 Configuring vpn users list
- 2016-12-21 06:21:42,614 merge.py load:57 Creating data bag type vpnuserlist
- 2016-12-21 06:21:42,614 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:21:42,614 merge.py load:57 Creating data bag type dhcpentry
- 2016-12-21 06:21:42,614 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:21:42,624 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
- 2016-12-21 06:21:42,624 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
- 2016-12-21 06:21:42,625 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:21:42,625 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:21:42,625 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:21:42,625 CsDhcp.py write_hosts:125 Updated hosts file
- 2016-12-21 06:21:42,625 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
- 2016-12-21 06:21:42,625 CsFile.py commit:60 Nothing to commit. The /etc/dhcphosts.txt file did not change
- 2016-12-21 06:21:42,625 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:21:44,685 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:21:44,686 configure.py main:973 Configuring load balancer
- 2016-12-21 06:21:44,686 configure.py main:977 Configuring monitor service
- 2016-12-21 06:21:44,686 merge.py load:57 Creating data bag type monitorservice
- 2016-12-21 06:21:44,687 merge.py load:57 Creating data bag type networkacl
- 2016-12-21 06:21:44,687 merge.py load:57 Creating data bag type firewallrules
- 2016-12-21 06:21:44,687 configure.py flushAllowAllEgressRules:267 Flush allow 'all' egress firewall rule
- 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
- 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
- 2016-12-21 06:21:44,752 merge.py load:57 Creating data bag type forwardingrules
- 2016-12-21 06:21:44,753 merge.py load:57 Creating data bag type site2sitevpn
- 2016-12-21 06:21:44,754 merge.py load:57 Creating data bag type remoteaccessvpn
- 2016-12-21 06:21:44,754 configure.py process:618 {'id': 'remoteaccessvpn'}
- 2016-12-21 06:21:44,754 merge.py load:57 Creating data bag type loadbalancer
- 2016-12-21 06:21:44,754 configure.py main:1002 Configuring iptables rules
- 2016-12-21 06:21:44,754 CsHelper.py execute:184 Executing: iptables-save
- 2016-12-21 06:21:44,758 CsHelper.py execute:184 Executing: iptables -t filter -N FW_OUTBOUND
- 2016-12-21 06:21:44,762 CsHelper.py execute:184 Executing: iptables -t filter -N
- 2016-12-21 06:21:44,766 CsHelper.py execute:184 Executing: iptables -t mangle -N PREROUTING
- 2016-12-21 06:21:44,780 CsHelper.py execute:184 Executing: iptables -t filter -N NETWORK_STATS
- 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
- 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
- 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
- 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
- 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
- 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
- 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=
- 2016-12-21 06:21:44,820 CsNetfilter.py compare:164 Add: rule=-P INPUT DROP table=filter
- 2016-12-21 06:21:44,821 CsHelper.py execute:184 Executing: iptables -t filter -P INPUT DROP
- 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=
- 2016-12-21 06:21:44,824 CsNetfilter.py compare:164 Add: rule=-P FORWARD DROP table=filter
- 2016-12-21 06:21:44,825 CsHelper.py execute:184 Executing: iptables -t filter -P FORWARD DROP
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:21:44,867 CsNetfilter.py compare:164 Add: rule=-A INPUT -p icmp -j ACCEPT table=filter
- 2016-12-21 06:21:44,867 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -p icmp -j ACCEPT
- 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
- 2016-12-21 06:21:44,871 CsNetfilter.py compare:164 Add: rule=-A INPUT -i lo -j ACCEPT table=filter
- 2016-12-21 06:21:44,871 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i lo -j ACCEPT
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:21:44,911 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND table=filter
- 2016-12-21 06:21:44,911 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND
- 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')
- 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
- 2016-12-21 06:21:44,914 CsNetfilter.py compare:164 Add: rule=-A FORWARD -j NETWORK_STATS table=filter
- 2016-12-21 06:21:44,914 CsHelper.py execute:184 Executing: iptables -t filter -I FORWARD -j NETWORK_STATS
- 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
- 2016-12-21 06:21:44,917 CsNetfilter.py compare:164 Add: rule=-A INPUT -j NETWORK_STATS table=filter
- 2016-12-21 06:21:44,917 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -j NETWORK_STATS
- 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
- 2016-12-21 06:21:44,920 CsNetfilter.py compare:164 Add: rule=-A OUTPUT -j NETWORK_STATS table=filter
- 2016-12-21 06:21:44,920 CsHelper.py execute:184 Executing: iptables -t filter -I OUTPUT -j NETWORK_STATS
- 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
- 2016-12-21 06:21:44,923 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth0 -o eth2 table=filter
- 2016-12-21 06:21:44,923 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth0 -o eth2
- 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
- 2016-12-21 06:21:44,927 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 -o eth0 table=filter
- 2016-12-21 06:21:44,927 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 -o eth0
- 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
- 2016-12-21 06:21:44,930 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -o eth2 ! -i eth0 -p tcp table=filter
- 2016-12-21 06:21:44,930 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -o eth2 ! -i eth0 -p tcp
- 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
- 2016-12-21 06:21:44,933 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 ! -o eth0 -p tcp table=filter
- 2016-12-21 06:21:44,933 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 ! -o eth0 -p tcp
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT')
- 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')
- 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P INPUT DROP')
- 2016-12-21 06:21:44,954 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P FORWARD DROP')
- 2016-12-21 06:21:44,954 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:21:44,955 configure.py main:1006 Configuring iptables rules done ...saving rules
- 2016-12-21 06:21:44,956 CsHelper.py save_iptables:192 Saving iptables for iptables-save
- 2016-12-21 06:21:44,956 CsHelper.py execute:184 Executing: iptables-save
- 2016-12-21 06:21:44,959 CsHelper.py save_iptables:192 Saving iptables for ip6tables-save
- 2016-12-21 06:21:44,959 CsHelper.py execute:184 Executing: ip6tables-save
- 2016-12-21 06:21:44,962 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:21:44,962 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:21:44,989 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:21:44,990 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:21:44,995 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:21:44,996 CsHelper.py execute:184 Executing: mount
- 2016-12-21 06:21:44,998 configure.py main:1016 Configuring static routes
- 2016-12-21 06:21:44,999 merge.py load:57 Creating data bag type staticroutes
- 2016-12-21 06:21:44,999 CsStaticRoutes.py process:27 Processing CsStaticRoutes file ==> {'id': 'staticroutes'}
- Wed Dec 21 06:23:30 UTC 2016 Executing cloud-early-config
- Wed Dec 21 06:23:30 UTC 2016 Detected that we are running inside kvm guest
- Wed Dec 21 06:23:30 UTC 2016 Found a non empty cmdline file. Will now exit the loop and proceed with configuration.
- Wed Dec 21 06:23:30 UTC 2016 Patching cloud service
- Wed Dec 21 06:23:31 UTC 2016 Updating log4j-cloud.xml
- Wed Dec 21 06:23:31 UTC 2016 Setting up dhcp server system vm
- Wed Dec 21 06:23:31 UTC 2016 checking that eth0 has IP
- Wed Dec 21 06:23:32 UTC 2016 waiting for eth0 interface setup with ip timer=0
- Wed Dec 21 06:23:32 UTC 2016 checking that eth1 has IP
- Wed Dec 21 06:23:35 UTC 2016 Setting up dnsmasq
- Wed Dec 21 06:23:35 UTC 2016 Setting up apache web server
- Wed Dec 21 06:23:35 UTC 2016 Enable service dnsmasq = 1
- Wed Dec 21 06:23:35 UTC 2016 Enable service haproxy = 0
- Wed Dec 21 06:23:35 UTC 2016 Processors = 1 Enable service = 0
- Wed Dec 21 06:23:35 UTC 2016 Enable service cloud-passwd-srvr = 1
- Wed Dec 21 06:23:35 UTC 2016 Enable service cloud = 0
- Wed Dec 21 06:23:35 UTC 2016 cloud: enable_fwding = 0
- Wed Dec 21 06:23:35 UTC 2016 enable_fwding = 0
- 2016-12-21 06:23:36,587 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:23:36,588 merge.py process:100 Command of type cmdline received
- 2016-12-21 06:23:36,588 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:23:36,589 merge.py process:100 Command of type ips received
- 2016-12-21 06:23:36,590 merge.py save:71 Writing data bag type ips
- 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'}]}
- 2016-12-21 06:23:36,591 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:23:36,591 merge.py process:100 Command of type ips received
- 2016-12-21 06:23:36,599 merge.py save:71 Writing data bag type ips
- 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'}]}
- 2016-12-21 06:23:36,600 merge.py save:71 Writing data bag type cmdline
- 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'}
- 2016-12-21 06:23:36,604 merge.py load:283 Could not open /var/cache/cloud/cmd_line.json
- 2016-12-21 06:23:36,604 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:23:36,604 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:23:36,605 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:23:36,605 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:23:36,609 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:23:36,614 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:23:36,619 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:23:36,619 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:23:36,619 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:23:36,623 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:23:36,623 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:23:36,626 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:23:36,627 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:23:36,630 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:23:36,631 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:23:36,631 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:23:36,637 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:23:36,640 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:23:36,644 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:23:36,644 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:23:56,680 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 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
- 2016-12-21 06:23:56,690 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:23:56,691 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:23:56,691 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:23:56,692 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:23:56,693 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:23:56,694 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:23:56,694 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:23:56,696 CsFile.py commit:66 Wrote edited file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:23:56,696 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:23:56,696 CsHelper.py execute:184 Executing: service apache2 restart
- 2016-12-21 06:23:57,147 CsHelper.py service:213 Service apache2 restart
- 2016-12-21 06:23:57,147 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:23:57,162 CsProcess.py start:33 Started dummy
- 2016-12-21 06:23:57,165 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:23:57,165 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:23:57,176 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:23:57,176 configure.py main:929 Configuring Guest Network
- 2016-12-21 06:23:57,176 configure.py main:933 Configuring vmpassword
- 2016-12-21 06:23:57,176 merge.py load:57 Creating data bag type vmpassword
- 2016-12-21 06:23:57,176 configure.py main:938 Configuring vmdata
- 2016-12-21 06:23:57,176 merge.py load:57 Creating data bag type vmdata
- 2016-12-21 06:23:57,177 configure.py main:943 Configuring networkacl
- 2016-12-21 06:23:57,177 configure.py main:947 Configuring firewall rules
- 2016-12-21 06:23:57,177 configure.py main:951 Configuring PF rules
- 2016-12-21 06:23:57,177 configure.py main:955 Configuring s2s vpn
- 2016-12-21 06:23:57,177 configure.py main:959 Configuring remote access vpn
- 2016-12-21 06:23:57,177 configure.py main:963 Configuring vpn users list
- 2016-12-21 06:23:57,177 merge.py load:57 Creating data bag type vpnuserlist
- 2016-12-21 06:23:57,177 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:23:57,177 merge.py load:57 Creating data bag type dhcpentry
- 2016-12-21 06:23:57,178 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:23:57,188 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
- 2016-12-21 06:23:57,188 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
- 2016-12-21 06:23:57,188 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:23:57,188 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:23:57,189 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:23:57,189 CsDhcp.py write_hosts:125 Updated hosts file
- 2016-12-21 06:23:57,189 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
- 2016-12-21 06:23:57,189 CsFile.py commit:60 Nothing to commit. The /etc/dhcphosts.txt file did not change
- 2016-12-21 06:23:57,189 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:23:59,244 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:23:59,244 configure.py main:973 Configuring load balancer
- 2016-12-21 06:23:59,244 configure.py main:977 Configuring monitor service
- 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type monitorservice
- 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type networkacl
- 2016-12-21 06:23:59,245 merge.py load:57 Creating data bag type firewallrules
- 2016-12-21 06:23:59,245 configure.py flushAllowAllEgressRules:267 Flush allow 'all' egress firewall rule
- 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
- 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
- 2016-12-21 06:23:59,317 merge.py load:57 Creating data bag type forwardingrules
- 2016-12-21 06:23:59,317 merge.py load:57 Creating data bag type site2sitevpn
- 2016-12-21 06:23:59,318 merge.py load:57 Creating data bag type remoteaccessvpn
- 2016-12-21 06:23:59,319 configure.py process:618 {'id': 'remoteaccessvpn'}
- 2016-12-21 06:23:59,319 merge.py load:57 Creating data bag type loadbalancer
- 2016-12-21 06:23:59,319 configure.py main:1002 Configuring iptables rules
- 2016-12-21 06:23:59,319 CsHelper.py execute:184 Executing: iptables-save
- 2016-12-21 06:23:59,324 CsHelper.py execute:184 Executing: iptables -t filter -N FW_OUTBOUND
- 2016-12-21 06:23:59,329 CsHelper.py execute:184 Executing: iptables -t filter -N
- 2016-12-21 06:23:59,333 CsHelper.py execute:184 Executing: iptables -t mangle -N PREROUTING
- 2016-12-21 06:23:59,348 CsHelper.py execute:184 Executing: iptables -t filter -N NETWORK_STATS
- 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
- 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
- 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
- 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
- 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
- 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
- 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=
- 2016-12-21 06:23:59,392 CsNetfilter.py compare:164 Add: rule=-P INPUT DROP table=filter
- 2016-12-21 06:23:59,392 CsHelper.py execute:184 Executing: iptables -t filter -P INPUT DROP
- 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=
- 2016-12-21 06:23:59,396 CsNetfilter.py compare:164 Add: rule=-P FORWARD DROP table=filter
- 2016-12-21 06:23:59,396 CsHelper.py execute:184 Executing: iptables -t filter -P FORWARD DROP
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:23:59,432 CsNetfilter.py compare:164 Add: rule=-A INPUT -p icmp -j ACCEPT table=filter
- 2016-12-21 06:23:59,432 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -p icmp -j ACCEPT
- 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
- 2016-12-21 06:23:59,436 CsNetfilter.py compare:164 Add: rule=-A INPUT -i lo -j ACCEPT table=filter
- 2016-12-21 06:23:59,437 CsHelper.py execute:184 Executing: iptables -t filter -A INPUT -i lo -j ACCEPT
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:23:59,479 CsNetfilter.py compare:164 Add: rule=-A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND table=filter
- 2016-12-21 06:23:59,479 CsHelper.py execute:184 Executing: iptables -t filter -A FORWARD -i eth0 -o eth2 -j FW_OUTBOUND
- 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')
- 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
- 2016-12-21 06:23:59,483 CsNetfilter.py compare:164 Add: rule=-A FORWARD -j NETWORK_STATS table=filter
- 2016-12-21 06:23:59,483 CsHelper.py execute:184 Executing: iptables -t filter -I FORWARD -j NETWORK_STATS
- 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
- 2016-12-21 06:23:59,486 CsNetfilter.py compare:164 Add: rule=-A INPUT -j NETWORK_STATS table=filter
- 2016-12-21 06:23:59,486 CsHelper.py execute:184 Executing: iptables -t filter -I INPUT -j NETWORK_STATS
- 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
- 2016-12-21 06:23:59,490 CsNetfilter.py compare:164 Add: rule=-A OUTPUT -j NETWORK_STATS table=filter
- 2016-12-21 06:23:59,490 CsHelper.py execute:184 Executing: iptables -t filter -I OUTPUT -j NETWORK_STATS
- 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
- 2016-12-21 06:23:59,493 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth0 -o eth2 table=filter
- 2016-12-21 06:23:59,493 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth0 -o eth2
- 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
- 2016-12-21 06:23:59,497 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 -o eth0 table=filter
- 2016-12-21 06:23:59,497 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 -o eth0
- 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
- 2016-12-21 06:23:59,500 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -o eth2 ! -i eth0 -p tcp table=filter
- 2016-12-21 06:23:59,500 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -o eth2 ! -i eth0 -p tcp
- 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
- 2016-12-21 06:23:59,503 CsNetfilter.py compare:164 Add: rule=-A NETWORK_STATS -i eth2 ! -o eth0 -p tcp table=filter
- 2016-12-21 06:23:59,504 CsHelper.py execute:184 Executing: iptables -t filter -A NETWORK_STATS -i eth2 ! -o eth0 -p tcp
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-A FW_OUTBOUND -m state --state RELATED,ESTABLISHED -j ACCEPT')
- 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')
- 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P INPUT DROP')
- 2016-12-21 06:23:59,524 CsNetfilter.py compare:148 Already processed : ('filter', '', '-P FORWARD DROP')
- 2016-12-21 06:23:59,524 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:23:59,526 configure.py main:1006 Configuring iptables rules done ...saving rules
- 2016-12-21 06:23:59,526 CsHelper.py save_iptables:192 Saving iptables for iptables-save
- 2016-12-21 06:23:59,526 CsHelper.py execute:184 Executing: iptables-save
- 2016-12-21 06:23:59,530 CsHelper.py save_iptables:192 Saving iptables for ip6tables-save
- 2016-12-21 06:23:59,530 CsHelper.py execute:184 Executing: ip6tables-save
- 2016-12-21 06:23:59,532 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:23:59,533 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:23:59,546 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:23:59,546 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:23:59,554 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:23:59,554 CsHelper.py execute:184 Executing: mount
- 2016-12-21 06:23:59,557 configure.py main:1016 Configuring static routes
- 2016-12-21 06:23:59,557 merge.py load:57 Creating data bag type staticroutes
- 2016-12-21 06:23:59,557 CsStaticRoutes.py process:27 Processing CsStaticRoutes file ==> {'id': 'staticroutes'}
- Wed Dec 21 06:25:02 UTC 2016 : VR config: configuation format version 1.0
- Wed Dec 21 06:25:02 UTC 2016 : VR config: creating file: /var/cache/cloud/monitor_service.json
- Wed Dec 21 06:25:02 UTC 2016 : VR config: create file success
- Wed Dec 21 06:25:02 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py monitor_service.json
- 2016-12-21 06:25:02,882 merge.py load:57 Creating data bag type monitorservice
- 2016-12-21 06:25:02,886 merge.py process:100 Command of type monitorservice received
- 2016-12-21 06:25:02,886 merge.py save:71 Writing data bag type monitorservice
- 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'}
- 2016-12-21 06:25:02,887 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:25:02,887 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:25:02,887 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:25:02,888 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:25:02,899 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:25:02,905 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:25:02,910 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:25:02,910 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:25:02,910 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:25:02,919 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:25:02,919 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:25:02,925 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:25:02,925 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:25:02,935 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:25:02,935 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:25:02,935 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:25:02,941 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:25:02,950 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:25:02,955 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:25:02,955 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:25:22,990 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 2016-12-21 06:25:22,997 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:25:22,997 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:25:22,999 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:25:23,000 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:25:23,001 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:25:23,003 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:25:23,004 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:25:23,006 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:25:23,021 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:25:23,021 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:25:23,025 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:25:23,025 configure.py main:977 Configuring monitor service
- 2016-12-21 06:25:23,025 merge.py load:60 Loading data bag type monitorservice
- 2016-12-21 06:25:23,025 CsFile.py load:37 File /etc/monitor.conf does not exist
- 2016-12-21 06:25:23,026 CsFile.py commit:66 Wrote edited file /etc/monitor.conf
- 2016-12-21 06:25:23,026 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:25:23,026 CsFile.py load:37 File /etc/cron.d/process does not exist
- 2016-12-21 06:25:23,026 CsFile.py commit:66 Wrote edited file /etc/cron.d/process
- 2016-12-21 06:25:23,027 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:25:23,027 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:25:23,027 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:25:23,042 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:25:23,043 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:25:23,051 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:25:23,052 CsHelper.py execute:184 Executing: mount
- [INFO] update_config.py :: Processing incoming file => monitor_service.json
- [INFO] Processing JSON file monitor_service.json
- Wed Dec 21 06:25:23 UTC 2016 : VR config: execution success
- Wed Dec 21 06:25:23 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
- Wed Dec 21 06:25:23 UTC 2016 : VR config: create file success
- Wed Dec 21 06:25:23 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- 2016-12-21 06:25:23,132 merge.py load:57 Creating data bag type dhcpentry
- 2016-12-21 06:25:23,133 merge.py process:100 Command of type dhcpentry received
- 2016-12-21 06:25:23,133 merge.py save:71 Writing data bag type dhcpentry
- 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'}
- 2016-12-21 06:25:23,134 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:25:23,134 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:25:23,134 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:25:23,135 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:25:23,138 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:25:23,140 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:25:23,143 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:25:23,143 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:25:23,144 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:25:23,146 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:25:23,146 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:25:23,149 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:25:23,149 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:25:23,152 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:25:23,152 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:25:23,152 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:25:23,156 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:25:23,158 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:25:23,160 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:25:23,160 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:25:43,188 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 2016-12-21 06:25:43,195 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:25:43,196 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:25:43,197 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:25:43,198 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:25:43,200 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:25:43,201 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:25:43,202 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:25:43,204 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:25:43,219 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:25:43,219 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:25:43,223 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:25:43,223 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:25:43,224 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:25:43,224 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:25:43,228 CsFile.py load:37 File /etc/dhcphosts.txt does not exist
- 2016-12-21 06:25:43,228 CsFile.py load:37 File /etc/dnsmasq.d/cloud.conf does not exist
- 2016-12-21 06:25:43,229 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:25:43,229 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:25:43,229 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:25:43,229 CsDhcp.py write_hosts:125 Updated hosts file
- 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
- 2016-12-21 06:25:43,230 merge.py load:57 Creating data bag type guestnetwork
- 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
- 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'
- 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'
- 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
- 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
- 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'
- 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
- 2016-12-21 06:25:43,234 CsFile.py commit:66 Wrote edited file /etc/dnsmasq.d/cloud.conf
- 2016-12-21 06:25:43,235 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:25:43,235 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
- 2016-12-21 06:25:43,235 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:25:43,235 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:25:45,258 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:25:45,258 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:25:45,259 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:25:45,278 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:25:45,278 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:25:45,287 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:25:45,287 CsHelper.py execute:184 Executing: mount
- [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
- [INFO] Processing JSON file vm_dhcp_entry.json
- Wed Dec 21 06:25:45 UTC 2016 : VR config: execution success
- Wed Dec 21 06:25:45 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
- Wed Dec 21 06:25:45 UTC 2016 : VR config: create file success
- Wed Dec 21 06:25:45 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- 2016-12-21 06:25:45,374 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:25:45,375 merge.py process:100 Command of type dhcpentry received
- 2016-12-21 06:25:45,375 merge.py save:71 Writing data bag type dhcpentry
- 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'}
- 2016-12-21 06:25:45,376 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:25:45,376 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:25:45,377 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:25:45,377 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:25:45,380 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:25:45,383 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:25:45,386 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:25:45,386 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:25:45,386 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:25:45,389 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:25:45,389 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:25:45,391 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:25:45,391 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:25:45,394 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:25:45,395 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:25:45,395 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:25:45,398 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:25:45,401 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:25:45,403 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:25:45,404 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:26:05,432 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 2016-12-21 06:26:05,439 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:26:05,440 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:26:05,441 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:26:05,443 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:26:05,444 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:26:05,445 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:26:05,447 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:26:05,448 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:26:05,463 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:05,464 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:05,467 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:05,467 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:26:05,468 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:05,468 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:26:05,472 CsFile.py load:39 Reading file /etc/dhcphosts.txt
- 2016-12-21 06:26:05,472 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
- 2016-12-21 06:26:05,473 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:26:05,473 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:26:05,473 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:05,474 CsDhcp.py write_hosts:125 Updated hosts file
- 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
- 2016-12-21 06:26:05,475 merge.py load:57 Creating data bag type guestnetwork
- 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
- 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'
- 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'
- 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
- 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
- 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'
- 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
- 2016-12-21 06:26:05,479 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
- 2016-12-21 06:26:05,480 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
- 2016-12-21 06:26:05,480 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:05,480 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:26:07,502 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:26:07,503 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:26:07,503 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:26:07,522 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:26:07,522 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:26:07,531 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:26:07,531 CsHelper.py execute:184 Executing: mount
- [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
- [INFO] Processing JSON file vm_dhcp_entry.json
- server-923 monitor
- Wed Dec 21 06:26:07 UTC 2016 : VR config: execution success
- Wed Dec 21 06:26:07 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
- Wed Dec 21 06:26:07 UTC 2016 : VR config: create file success
- Wed Dec 21 06:26:07 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- 2016-12-21 06:26:07,618 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:07,619 merge.py process:100 Command of type dhcpentry received
- 2016-12-21 06:26:07,619 merge.py save:71 Writing data bag type dhcpentry
- 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'}
- 2016-12-21 06:26:07,620 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:26:07,620 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:26:07,621 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:26:07,621 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:26:07,624 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:26:07,626 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:26:07,629 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:26:07,630 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:26:07,630 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:26:07,632 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:07,633 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:07,635 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:07,635 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:26:07,638 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:26:07,639 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:26:07,639 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:26:07,642 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:26:07,645 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:26:07,647 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:26:07,647 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:26:27,676 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 2016-12-21 06:26:27,682 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:26:27,683 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:26:27,683 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:26:27,684 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:26:27,685 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:26:27,686 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:26:27,687 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:26:27,689 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:26:27,702 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:27,702 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:27,705 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:27,706 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:26:27,706 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:27,706 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:26:27,710 CsFile.py load:39 Reading file /etc/dhcphosts.txt
- 2016-12-21 06:26:27,711 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
- 2016-12-21 06:26:27,711 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:26:27,712 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:26:27,712 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:27,712 CsDhcp.py write_hosts:125 Updated hosts file
- 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
- 2016-12-21 06:26:27,713 merge.py load:57 Creating data bag type guestnetwork
- 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
- 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'
- 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'
- 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
- 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
- 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'
- 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
- 2016-12-21 06:26:27,718 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
- 2016-12-21 06:26:27,718 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
- 2016-12-21 06:26:27,718 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:27,718 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:26:29,738 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:26:29,739 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:26:29,739 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:26:29,755 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:26:29,755 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:26:29,764 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:26:29,764 CsHelper.py execute:184 Executing: mount
- [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
- [INFO] Processing JSON file vm_dhcp_entry.json
- monitor sv1
- server-923 sv1
- Wed Dec 21 06:26:29 UTC 2016 : VR config: execution success
- Wed Dec 21 06:26:29 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
- Wed Dec 21 06:26:29 UTC 2016 : VR config: create file success
- Wed Dec 21 06:26:29 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- 2016-12-21 06:26:29,847 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:29,848 merge.py process:100 Command of type dhcpentry received
- 2016-12-21 06:26:29,848 merge.py save:71 Writing data bag type dhcpentry
- 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'}
- 2016-12-21 06:26:29,849 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:26:29,849 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:26:29,850 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:26:29,850 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:26:29,853 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:26:29,855 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:26:29,859 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:26:29,859 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:26:29,859 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:26:29,862 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:29,862 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:29,864 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:29,865 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:26:29,867 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:26:29,868 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:26:29,868 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:26:29,871 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:26:29,874 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:26:29,877 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:26:29,877 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- 2016-12-21 06:26:49,904 CsAddress.py inKernel:686 rpsfr is not present in the kernel
- 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
- 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
- 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
- 2016-12-21 06:26:49,911 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.3.28.10.conf
- 2016-12-21 06:26:49,912 CsFile.py search:124 Searching for <VirtualHost.*:80> and replacing with <VirtualHost 10.3.28.10:80>
- 2016-12-21 06:26:49,913 CsFile.py search:124 Searching for <VirtualHost.*:443> and replacing with <VirtualHost 10.3.28.10:443>
- 2016-12-21 06:26:49,915 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.3.28.10:80
- 2016-12-21 06:26:49,916 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.3.28.10:443
- 2016-12-21 06:26:49,917 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.3.28.10:80
- 2016-12-21 06:26:49,918 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName dhcpsrvr.nocser.net
- 2016-12-21 06:26:49,920 CsHelper.py execute:184 Executing: ps aux
- 2016-12-21 06:26:49,933 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:49,933 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:49,937 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:49,937 configure.py main:968 Configuring dhcp entry
- 2016-12-21 06:26:49,937 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:49,938 CsHelper.py execute:184 Executing: ip addr show
- 2016-12-21 06:26:49,942 CsFile.py load:39 Reading file /etc/dhcphosts.txt
- 2016-12-21 06:26:49,942 CsFile.py load:39 Reading file /etc/dnsmasq.d/cloud.conf
- 2016-12-21 06:26:49,943 CsFile.py load:39 Reading file /etc/hosts
- 2016-12-21 06:26:49,943 CsFile.py commit:66 Wrote edited file /etc/hosts
- 2016-12-21 06:26:49,943 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:49,944 CsDhcp.py write_hosts:125 Updated hosts file
- 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
- 2016-12-21 06:26:49,945 merge.py load:57 Creating data bag type guestnetwork
- 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
- 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'
- 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'
- 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
- 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
- 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'
- 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
- 2016-12-21 06:26:49,949 CsFile.py commit:60 Nothing to commit. The /etc/dnsmasq.d/cloud.conf file did not change
- 2016-12-21 06:26:49,949 CsFile.py commit:66 Wrote edited file /etc/dhcphosts.txt
- 2016-12-21 06:26:49,950 CsFile.py commit:68 Updated file in-cache configuration
- 2016-12-21 06:26:49,950 CsHelper.py execute:184 Executing: service dnsmasq restart
- 2016-12-21 06:26:51,971 CsHelper.py service:213 Service dnsmasq restart
- 2016-12-21 06:26:51,972 CsRedundant.py set:68 Router redundancy status is False
- 2016-12-21 06:26:51,972 CsHelper.py execute:184 Executing: service conntrackd stop
- 2016-12-21 06:26:51,992 CsHelper.py service:213 Service conntrackd stop
- 2016-12-21 06:26:51,992 CsHelper.py execute:184 Executing: service keepalived stop
- 2016-12-21 06:26:52,002 CsHelper.py service:213 Service keepalived stop
- 2016-12-21 06:26:52,002 CsHelper.py execute:184 Executing: mount
- [INFO] update_config.py :: Processing incoming file => vm_dhcp_entry.json
- [INFO] Processing JSON file vm_dhcp_entry.json
- sv1 server-1200
- monitor server-1200
- server-923 server-1200
- Wed Dec 21 06:26:52 UTC 2016 : VR config: execution success
- Wed Dec 21 06:26:52 UTC 2016 : VR config: creating file: /var/cache/cloud/vm_dhcp_entry.json
- Wed Dec 21 06:26:52 UTC 2016 : VR config: create file success
- Wed Dec 21 06:26:52 UTC 2016 : VR config: executing: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- 2016-12-21 06:26:52,091 merge.py load:60 Loading data bag type dhcpentry
- 2016-12-21 06:26:52,091 merge.py process:100 Command of type dhcpentry received
- 2016-12-21 06:26:52,092 merge.py save:71 Writing data bag type dhcpentry
- 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'}
- 2016-12-21 06:26:52,093 merge.py load:60 Loading data bag type ips
- 2016-12-21 06:26:52,093 merge.py load:60 Loading data bag type cmdline
- 2016-12-21 06:26:52,094 configure.py main:924 Configuring ip addresses
- 2016-12-21 06:26:52,094 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 2016-12-21 06:26:52,097 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 2016-12-21 06:26:52,100 CsHelper.py execute:184 Executing: ip addr show dev eth1
- 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'}
- 2016-12-21 06:26:52,103 CsAddress.py process:116 Address 169.254.1.124/16 on device eth1 not configured
- 2016-12-21 06:26:52,103 CsAddress.py configure:274 Configuring address 169.254.1.124/16 on device eth1
- 2016-12-21 06:26:52,103 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.1.124/16 brd +
- 2016-12-21 06:26:52,106 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present
- 2016-12-21 06:26:52,106 CsHelper.py execute:184 Executing: ip -4 route list 0/0
- 2016-12-21 06:26:52,108 CsRoute.py defaultroute_exists:93 Default route found: default via 10.3.28.1 dev eth0
- 2016-12-21 06:26:52,109 CsHelper.py execute:184 Executing: ip addr show dev eth0
- 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'}
- 2016-12-21 06:26:52,111 CsAddress.py process:116 Address 10.3.28.10/24 on device eth0 not configured
- 2016-12-21 06:26:52,112 CsAddress.py configure:274 Configuring address 10.3.28.10/24 on device eth0
- 2016-12-21 06:26:52,112 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.3.28.10/24 brd +
- 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
- 2016-12-21 06:26:52,115 CsHelper.py execute:184 Executing: ip rule show
- 2016-12-21 06:26:52,118 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0
- 2016-12-21 06:26:52,121 CsRule.py addMark:37 Added fwmark rule for Table_eth0
- 2016-12-21 06:26:52,121 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN'
- 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
- Broadcast message from root@r-690-VM (Wed Dec 21 06:27:02 2016):
- The system is going down for system halt NOW!
- Broadcast message from root@r-690-VM (Wed Dec 21 06:27:03 2016):
- Power button pressed
- The system is going down for system halt NOW!
- /opt/cloud/bin/vr_cfg.sh: line 60: 4085 Killed /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- Wed Dec 21 06:27:03 UTC 2016 : VR config: executing failed: /opt/cloud/bin/update_config.py vm_dhcp_entry.json
- debug1: channel 0: free: client-session, nchannels 1
- Connection to 169.254.1.124 closed by remote host.
- Connection to 169.254.1.124 closed.
- Transferred: sent 4384, received 121776 bytes, in 182.1 seconds
- Bytes per second: sent 24.1, received 668.8
- debug1: Exit status -1
Advertisement
Add Comment
Please, Sign In to add comment