[ https://issues.apache.org/jira/browse/CLOUDSTACK-8725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14700826#comment-14700826 ]
ASF GitHub Bot commented on CLOUDSTACK-8725: -------------------------------------------- Github user bvbharatk commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/692#discussion_r37269538 --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py --- @@ -96,7 +96,7 @@ def _redundant_on(self): d = s.replace(".templ", "") CsHelper.copy_if_needed("%s/%s" % (self.CS_TEMPLATES_DIR, s), "%s/%s" % (self.CS_ROUTER_DIR, d)) CsHelper.copy_if_needed("%s/%s" % (self.CS_TEMPLATES_DIR, "keepalived.conf.templ"), self.KEEPALIVED_CONF) - CsHelper.copy_if_needed("%s/%s" % (self.CS_TEMPLATES_DIR, "conntrackd.conf.templ"), self.CONNTRACKD_CONF) + CsHelper.copy("%s/%s" % (self.CS_TEMPLATES_DIR, "conntrackd.conf.templ"), self.CONNTRACKD_CONF) --- End diff -- Hi Daan, The intent of copy_if_needed is to prevent overwriting the config file if it is preset already. In case of conntrackd, the config file is already present and so it dose not copy the default cloudstack conntrackd template and as a result conntrackd fails to start. For this(copy_if_needed) to work we should make sure that this file is not present when this code runs for the first time. There may be similar errors related to rvr. I was trying to see if i can address them as a part of larger fix. > RVR functionality is broken in case of isolated networks, conntrackd fails to > start. > ------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-8725 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8725 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Virtual Router > Affects Versions: 4.6.0 > Reporter: Bharat Kumar > Assignee: Bharat Kumar > Priority: Critical > Fix For: 4.6.0 > > > I tried setting up a rvr enabled isolated network. In the startup logs of the > router i can see that conntrackd is failing to start. Below are the startup > logs > [info] Setting console screen modes. > setterm: cannot (un)set powersave mode: Invalid argument > [info] Skipping font and keymap setup (handled by console-setup). > [....] Loading IPsec SA/SP database: > [ ok etc/ipsec-tools.conf. > INIT: Entering runlevel: 2 > [info] Using makefile-style concurrent boot in runlevel 2. > [info] ipvsadm is not configured to run. Please edit /etc/default/ipvsadm. > [ ok ] Loading iptables rules... IPv4... IPv6...done. > [ ok ] Starting rpcbind daemon...[....] Already running.. > sed: can't read /ramdisk/rrouter/enable_pubip.sh: No such file or directory > open-vm-tools: not starting as this is not a VMware VM > [ ok ] Starting enhanced syslogd: rsyslogd. > [....] Starting ACPI services...RTNETLINK1 answers: No such file or directory > acpid: error talking to the kernel via netlink > . ok > [....] Starting conntrackdERROR: parsing config file in line (102), symbol > 'Multicast': syntax error > failed! > [ ok ] Starting DNS forwarder and DHCP server: dnsmasq. > [....] Starting web server: apache2apache2: Could not reliably determine the > server's fully qualified domain name, using 10.1.1.247 for ServerName > . ok > [ ok ] Starting periodic command scheduler: cron. > [....] Starting haproxy: haproxy[WARNING] 223/051439 (3480) : config : > 'stats' statement ignored for proxy 'cloud-default' as it requires HTTP mode. > [WARNING] 223/051439 (3480) : config : 'option forwardfor' ignored for proxy > 'cloud-default' as it requires HTTP mode. > [WARNING] 223/051439 (3484) : config : 'stats' statement ignored for proxy > 'cloud-default' as it requires HTTP mode. > [WARNING] 223/051439 (3484) : config : 'option forwardfor' ignored for proxy > 'cloud-default' as it requires HTTP mode. > . ok > [FAIL] Starting keepalived: keepalived failed! > [ ok ] Starting NTP server: ntpd. > [ ok ] Starting OpenBSD Secure Shell server: sshd. > [ ok ] Starting the system activity data collector: sadc. > Detecting Linux distribution version: OK > Starting xe daemon: OK > [ ok ] Starting OpenBSD Secure Shell server: sshd. > [....] Starting haproxy: haproxy[WARNING] 223/051440 (3709) : config : > 'stats' statement ignored for proxy 'cloud-default' as it requires HTTP mode. > [WARNING] 223/051440 (3709) : config : 'option forwardfor' ignored for proxy > 'cloud-default' as it requires HTTP mode. > . ok > [....] Starting web server: apache2apache2: Could not reliably determine the > server's fully qualified domain name, using 10.1.1.247 for ServerName > httpd (pid 3351) already running > . ok > [FAIL] Starting keepalived: keepalived failed! > [....] Starting conntrackdERROR: parsing config file in line (102), symbol > 'Multicast': syntax error > failed! > sed: can't read /ramdisk/rrouter/enable_pubip.sh: No such file or directory > Failed > [ ok ] Stopping NFS common utilities: idmapd statd. > -----------------On router. > root@r-93-VM:~# service conntrackd restart > [....] Stopping conntrackdERROR: parsing config file in line (102), symbol > 'Multicast': syntax error > failed! > [....] Starting conntrackdERROR: parsing config file in line (102), symbol > 'Multicast': syntax error > failed! -- This message was sent by Atlassian JIRA (v6.3.4#6332)