Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6143C200C1E for ; Fri, 3 Feb 2017 02:04:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5FF66160B61; Fri, 3 Feb 2017 01:04:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6A87A160B65 for ; Fri, 3 Feb 2017 02:04:00 +0100 (CET) Received: (qmail 9780 invoked by uid 500); 3 Feb 2017 01:03:59 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 9771 invoked by uid 500); 3 Feb 2017 01:03:59 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 9768 invoked by uid 99); 3 Feb 2017 01:03:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 01:03:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 232E5C14BA for ; Fri, 3 Feb 2017 01:03:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hLcvMqrcYtgO for ; Fri, 3 Feb 2017 01:03:57 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0505060DC0 for ; Fri, 3 Feb 2017 01:03:55 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9B37CE0524 for ; Fri, 3 Feb 2017 01:03:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id EC82925290 for ; Fri, 3 Feb 2017 01:03:51 +0000 (UTC) Date: Fri, 3 Feb 2017 01:03:51 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9692) Reset password service is not running on Redundant virtual routers. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Feb 2017 01:04:01 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850845#comment-15850845 ] ASF subversion and git services commented on CLOUDSTACK-9692: ------------------------------------------------------------- Commit 066b374c35bdfc5e35578e800499919fadcd42c1 in cloudstack's branch refs/heads/master from Wei Zhou [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=066b374 ] CLOUDSTACK-9692: Fix password server issue in redundant VRs The password server in RVRs has wrong parameters as the gateway of guest nics is None. In this case, we should get the gateway from /var/cache/cloud/cmdline. > Reset password service is not running on Redundant virtual routers. > ------------------------------------------------------------------- > > Key: CLOUDSTACK-9692 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9692 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Virtual Router > Affects Versions: 4.9.0 > Reporter: DeepthiMachiraju > > - Create a password enabled template and deploy a RVR Network. > - once the vm is moved to Running state , new password is displayed on the pop-up window. > - Login to the VM fails with the new password. > Observations : > - No password service is running on the RVR. > - passwords file not generated on the router. > ========================on Redundant Router ============================= > root@r-10-VM:~# ps -aux | grep passwd > warning: bad ps syntax, perhaps a bogus '-'? > See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ > root 457 0.0 0.3 8072 880 pts/1 S+ 05:52 0:00 grep passwd > root 4697 0.0 0.6 17712 1568 ? S Dec20 0:27 /bin/bash /opt/cloud/bin/passwd_server_ip None dummy > ============================================================================= > =================================on Isolated Router=========================== > root@r-5-VM:~# ps -aux | grep passwd > warning: bad ps syntax, perhaps a bogus '-'? > See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ > root 2402 0.0 0.5 9236 1336 ? S Dec13 0:00 /bin/bash /opt/cloud/bin/passwd_server_ip 10.1.1.1 dummy > root 2405 0.0 3.3 53796 8284 ? S Dec13 1:01 python /opt/cloud/bin/passwd_server_ip.py 10.1.1.1 > root 24565 0.0 0.3 8072 880 pts/1 S+ 05:53 0:00 grep passwd > ============================================================================== > output on cloud.log > 2016-12-21 10:49:28,367 merge.py load:60 Loading data bag type vmpassword > 2016-12-21 10:49:28,367 merge.py process:100 Command of type vmpassword received > 2016-12-21 10:49:28,367 merge.py save:71 Writing data bag type vmpassword > 2016-12-21 10:49:28,368 merge.py save:72 {u'10.1.1.66': u'8ZYWdN', u'id': u'vmpassword'} > 2016-12-21 10:49:28,368 merge.py load:60 Loading data bag type ips > 2016-12-21 10:49:28,368 merge.py load:60 Loading data bag type cmdline > 2016-12-21 10:49:28,368 configure.py main:924 Configuring ip addresses > 2016-12-21 10:49:28,369 CsHelper.py execute:184 Executing: ip addr show dev eth2 > 2016-12-21 10:49:28,374 CsHelper.py execute:184 Executing: ip addr show dev eth1 > 2016-12-21 10:49:28,379 CsHelper.py execute:184 Executing: ip addr show dev eth0 > 2016-12-21 10:49:28,385 CsHelper.py execute:184 Executing: ip addr show dev eth2 > 2016-12-21 10:49:28,390 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.147.30.116', u'one_to_one_nat': False, u'nic_dev_id': 2, u'network': u'10.147.30.0/24', u'first_i_p': True, u'netmask': u'255.255.255.0', u'source_nat': True, u'broadcast': u'10.147.30.255', u'add': True, u'nw_type': u'public', u'device': u'eth2', u'vif_mac_address': u'06:57:a8:00:00:11', u'cidr': u'10.147.30.116/24', u'gateway': u'10.147.30.1', u'new_nic': False, u'size': u'24'} > 2016-12-21 10:49:28,390 CsAddress.py process:116 Address 10.147.30.116/24 on device eth2 not configured > 2016-12-21 10:49:28,390 CsAddress.py configure:274 Configuring address 10.147.30.116/24 on device eth2 > 2016-12-21 10:49:28,390 CsHelper.py execute:184 Executing: ip addr add dev eth2 10.147.30.116/24 brd + > 2016-12-21 10:49:28,395 CsRoute.py add_table:38 Adding route table: 2 Table_eth2 to /etc/iproute2/rt_tables if not present > 2016-12-21 10:49:28,396 CsHelper.py execute:184 Executing: ip rule show > 2016-12-21 10:49:28,401 CsHelper.py execute:184 Executing: ip link show eth2 | grep 'state DOWN' > 2016-12-21 10:49:28,408 CsHelper.py execute:184 Executing: arping -c 1 -I eth2 -A -U -s 10.147.30.116 10.147.30.1 > 2016-12-21 10:49:28,413 CsAddress.py inKernel:689 rpsfr is present in the kernel > 2016-12-21 10:49:28,413 CsAddress.py cpus:699 Single CPU machine > 2016-12-21 10:49:28,413 CsRoute.py add_table:38 Adding route table: 2 Table_eth2 to /etc/iproute2/rt_tables if not present > 2016-12-21 10:49:28,413 CsRoute.py add_route:50 Adding route: dev eth2 table: Table_eth2 network: 10.147.30.0/24 if not present > 2016-12-21 10:49:28,414 CsHelper.py execute:184 Executing: ip route show dev eth2 table Table_eth2 10.147.30.0/24 > 2016-12-21 10:49:28,419 CsRoute.py defaultroute_exists:89 Checking if default ipv4 route is present > 2016-12-21 10:49:28,419 CsHelper.py execute:184 Executing: ip -4 route list 0/0 > 2016-12-21 10:49:28,424 CsRoute.py defaultroute_exists:93 Default route found: default via 10.147.30.1 dev eth2 > 2016-12-21 10:49:28,424 CsHelper.py execute:184 Executing: ip addr show dev eth1 > 2016-12-21 10:49:28,429 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'169.254.0.132', 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.0.132/16', u'gateway': u'None', u'size': u'16'} > 2016-12-21 10:49:28,429 CsAddress.py process:116 Address 169.254.0.132/16 on device eth1 not configured > 2016-12-21 10:49:28,430 CsAddress.py configure:274 Configuring address 169.254.0.132/16 on device eth1 > 2016-12-21 10:49:28,430 CsHelper.py execute:184 Executing: ip addr add dev eth1 169.254.0.132/16 brd + > 2016-12-21 10:49:28,435 CsHelper.py execute:184 Executing: ip addr show dev eth0 > 2016-12-21 10:49:28,440 CsAddress.py process:107 Address found in DataBag ==> {u'public_ip': u'10.1.1.217', u'one_to_one_nat': False, u'nic_dev_id': u'0', u'network': u'10.1.1.0/24', u'netmask': u'255.255.255.0', u'source_nat': False, u'broadcast': u'10.1.1.255', u'add': True, u'nw_type': u'guest', u'device': u'eth0', u'cidr': u'10.1.1.217/24', u'gateway': u'None', u'size': u'24'} > 2016-12-21 10:49:28,440 CsAddress.py process:116 Address 10.1.1.217/24 on device eth0 not configured > 2016-12-21 10:49:28,440 CsAddress.py configure:274 Configuring address 10.1.1.217/24 on device eth0 > 2016-12-21 10:49:28,440 CsHelper.py execute:184 Executing: ip addr add dev eth0 10.1.1.217/24 brd + > 2016-12-21 10:49:28,445 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present > 2016-12-21 10:49:28,446 CsHelper.py execute:184 Executing: ip rule show > 2016-12-21 10:49:28,451 CsHelper.py execute:184 Executing: ip rule add fwmark 0 table Table_eth0 > 2016-12-21 10:49:28,456 CsRule.py addMark:37 Added fwmark rule for Table_eth0 > 2016-12-21 10:49:28,456 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state DOWN' > 2016-12-21 10:49:28,463 CsHelper.py execute:184 Executing: arping -c 1 -I eth0 -A -U -s 10.1.1.217 None > 2016-12-21 10:49:28,470 CsAddress.py inKernel:689 rpsfr is present in the kernel > 2016-12-21 10:49:28,470 CsAddress.py cpus:699 Single CPU machine > 2016-12-21 10:49:28,470 CsRoute.py add_table:38 Adding route table: 0 Table_eth0 to /etc/iproute2/rt_tables if not present > 2016-12-21 10:49:28,471 CsRoute.py add_route:50 Adding route: dev eth0 table: Table_eth0 network: 10.1.1.0/24 if not present > 2016-12-21 10:49:28,471 CsHelper.py execute:184 Executing: ip route show dev eth0 table Table_eth0 10.1.1.0/24 > 2016-12-21 10:49:28,476 CsAddress.py post_config_change:531 Not able to setup source-nat for a regular router yet > 2016-12-21 10:49:28,476 CsFile.py load:39 Reading file /etc/apache2/sites-enabled/vhost-10.1.1.217.conf > 2016-12-21 10:49:28,477 CsFile.py search:124 Searching for and replacing with > 2016-12-21 10:49:28,477 CsFile.py search:124 Searching for and replacing with > 2016-12-21 10:49:28,477 CsFile.py search:124 Searching for Listen .*:80 and replacing with Listen 10.1.1.217:80 > 2016-12-21 10:49:28,478 CsFile.py search:124 Searching for Listen .*:443 and replacing with Listen 10.1.1.217:443 > 2016-12-21 10:49:28,478 CsFile.py search:124 Searching for NameVirtualHost .*:80 and replacing with NameVirtualHost 10.1.1.217:80 > 2016-12-21 10:49:28,478 CsFile.py search:124 Searching for ServerName.* and replacing with ServerName router.cs2cloud.internal > 2016-12-21 10:49:28,479 configure.py main:933 Configuring vmpassword > 2016-12-21 10:49:28,479 merge.py load:60 Loading data bag type vmpassword > 2016-12-21 10:49:28,479 configure.py __update:64 File /tmp/passwdsrvrtoken does not exist > 2016-12-21 10:49:28,480 CsHelper.py execute:184 Executing: ip addr show | grep inet | awk '{print $2}' > 2016-12-21 10:49:28,488 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,500 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/opt/cloud/bin/passwd_server_ip.py', '127.0.0.1'] and found PIDs ==> [] > 2016-12-21 10:49:28,500 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,511 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/opt/cloud/bin/passwd_server_ip.py', '10.1.1.217'] and found PIDs ==> [] > 2016-12-21 10:49:28,511 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,522 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/opt/cloud/bin/passwd_server_ip.py', '10.1.1.1'] and found PIDs ==> [] > 2016-12-21 10:49:28,523 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,534 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/opt/cloud/bin/passwd_server_ip.py', '169.254.0.132'] and found PIDs ==> [] > 2016-12-21 10:49:28,534 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,545 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/opt/cloud/bin/passwd_server_ip.py', '10.147.30.116'] and found PIDs ==> [] > 2016-12-21 10:49:28,545 CsRedundant.py set:68 Router redundancy status is True > 2016-12-21 10:49:28,545 CsAddress.py get_guest_if:59 Guest interface will be set on device 'eth0' and IP '10.1.1.217' > 2016-12-21 10:49:28,546 CsRedundant.py _redundant_on:98 Wait for devices to be configured so we can start keepalived > 2016-12-21 10:49:28,546 CsHelper.py execute:184 Executing: ip link show eth0 | grep 'state UP' > 2016-12-21 10:49:28,553 CsRedundant.py _redundant_on:104 Device eth0 is present, let's start keepalive now. > 2016-12-21 10:49:28,553 CsHelper.py execute:184 Executing: mount > 2016-12-21 10:49:28,559 CsHelper.py execute:184 Executing: sed -i "s/--exec\ \$DAEMON;/--exec\ \$DAEMON\ --\ --vrrp;/g" /etc/init.d/keepalived > 2016-12-21 10:49:28,564 CsFile.py load:39 Reading file /opt/cloud/bin/checkrouter.sh > 2016-12-21 10:49:28,564 CsFile.py greplace:116 Searching for [RROUTER_LOG] and replacing with /var/log/cloud.log > 2016-12-21 10:49:28,565 CsFile.py commit:60 Nothing to commit. The /opt/cloud/bin/checkrouter.sh file did not change > 2016-12-21 10:49:28,565 CsFile.py load:39 Reading file /etc/keepalived/keepalived.conf > 2016-12-21 10:49:28,565 CsFile.py search:124 Searching for router_id and replacing with router_id r-10-VM > 2016-12-21 10:49:28,565 CsFile.py search:124 Searching for interface and replacing with interface eth0 > 2016-12-21 10:49:28,565 CsFile.py search:124 Searching for advert_int and replacing with advert_int 1 > 2016-12-21 10:49:28,565 CsFile.py greplace:116 Searching for [RROUTER_BIN_PATH] and replacing with /ramdisk/rrouter > 2016-12-21 10:49:28,566 CsHelper.py copy:251 Copied /opt/cloud/templates/conntrackd.conf.templ to /opt/cloud/templates/conntrackd.conf.templ.bkp > 2016-12-21 10:49:28,566 CsFile.py load:39 Reading file /opt/cloud/templates/conntrackd.conf.templ > 2016-12-21 10:49:28,566 CsFile.py commit:66 Wrote edited file /opt/cloud/templates/conntrackd.conf.templ > 2016-12-21 10:49:28,567 CsFile.py commit:68 Updated file in-cache configuration > 2016-12-21 10:49:28,567 CsFile.py load:39 Reading file /etc/conntrackd/conntrackd.conf > 2016-12-21 10:49:28,567 CsFile.py compare:168 Comparison of CsFiles content is ==> True > 2016-12-21 10:49:28,567 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,578 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/etc/conntrackd/conntrackd.conf'] and found PIDs ==> ['2690'] > 2016-12-21 10:49:28,599 CsHelper.py copy:251 Copied /opt/cloud/templates/conntrackd.conf.templ.bkp to /opt/cloud/templates/conntrackd.conf.templ > 2016-12-21 10:49:28,600 CsHelper.py execute:184 Executing: rm -rf /opt/cloud/templates/conntrackd.conf.templ.bkp > 2016-12-21 10:49:28,605 CsFile.py load:39 Reading file /etc/cron.d/heartbeat > 2016-12-21 10:49:28,605 CsFile.py commit:60 Nothing to commit. The /etc/cron.d/heartbeat file did not change > 2016-12-21 10:49:28,605 CsHelper.py execute:184 Executing: ps aux > 2016-12-21 10:49:28,617 CsProcess.py find_pid:50 CsProcess:: Searching for process ==> ['/usr/sbin/keepalived'] and found PIDs ==> ['2704', '2705', '2706'] -- This message was sent by Atlassian JIRA (v6.3.15#6346)