Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0BDB18AE4 for ; Wed, 29 Jul 2015 05:59:05 +0000 (UTC) Received: (qmail 59660 invoked by uid 500); 29 Jul 2015 05:59:05 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 59627 invoked by uid 500); 29 Jul 2015 05:59:05 -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 59617 invoked by uid 500); 29 Jul 2015 05:59:05 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 59614 invoked by uid 99); 29 Jul 2015 05:59:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2015 05:59:05 +0000 Date: Wed, 29 Jul 2015 05:59:05 +0000 (UTC) From: "Sanjeev N (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-8685) [VPC_VR] Default route is not configured on VPC VR MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sanjeev N updated CLOUDSTACK-8685: ---------------------------------- Attachment: management-server.zip > [VPC_VR] Default route is not configured on VPC VR > -------------------------------------------------- > > Key: CLOUDSTACK-8685 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8685 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Network Controller > Affects Versions: 4.6.0 > Environment: Advanced zone with VPC. Latest build from ACS master. > Reporter: Sanjeev N > Priority: Critical > Attachments: management-server.zip > > > [VPC_VR] Default route is not configured on VPC VR > Steps to reproduce: > ================ > 1.Bring up CS in advanced zone > 2.Create VPC and wait for the VR to come into running state > 3.Connect to VR and verify route table information > Result: > ====== > Default route is not configured on VPC VR. > root@r-9-VM:/var/cache/cloud# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 > 10.1.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 > 10.220.128.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1 > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 > root@r-9-VM:/var/cache/cloud# > Observations: > =========== > When vr boots up, we run cloud-early-config. This will clean if there is any default route exists on VR. Then we execute vpc_ipassoc.sh to configure public nic and default route via public nic. However, in the latest ACS master we are not executing vpc_ipassoc.sh. > For any configuration on VR , we are creating configuration file and applying it with update_config.py. > Looks like adding default route is missing in the confguration file. > Following is the configuration file genearted on VR : > 015-07-29 05:20:39,132 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-83549002) VR Config file VR-d3b73941-7b3d-489a-bcc6-47c6a777c950.cfg got created in VR, ip 169.254.0.54 with content > #Apache CloudStack Virtual Router Config File > > 1.0 > > > /var/cache/cloud/ip_associations.json > {"ip_address":[{"public_ip":"10.220.135.97","source_nat":false,"add":true,"one_to_one_nat":false,"first_i_p":false,"gateway":"10.220.128.1","netmask":"255.255.224.0","vif_mac_address":"06:dd:e0:00:00:0e","nic_dev_id":1,"new_nic":false},{"public_ip":"10.220.135.99","source_nat":false,"add":true,"one_to_one_nat":true,"first_i_p":false,"gateway":"10.220.128.1","netmask":"255.255.224.0","vif_mac_address":"06:dd:e0:00:00:0e","nic_dev_id":1,"new_nic":false}],"type":"ips"} > > > > /var/cache/cloud/staticnat_rules.json > {"rules":[{"revoke":false,"source_ip_address":"10.220.135.99","source_port_range":"0:0","destination_ip_address":"10.1.1.36"}],"type":"staticnatrules"} > > > > /var/cache/cloud/forwarding_rules.json > {"rules":[{"revoke":false,"protocol":"tcp","source_ip_address":"10.220.135.97","source_port_range":"22:22","destination_ip_address":"10.1.1.194","destination_port_range":"22:22"}],"type":"forwardrules"} > > > > /var/cache/cloud/network_acl.json > {"device":"eth2","mac_address":"02:00:7c:a8:00:02","private_gateway_acl":false,"nic_ip":"10.1.1.1","nic_netmask":"24","ingress_rules":[{"type":"tcp","first_port":22,"last_port":22,"cidr":"0.0.0.0/0","allowed":true}],"egress_rules":[{"type":"icmp","icmp_type":-1,"icmp_code":-1,"cidr":"0.0.0.0/0","allowed":true}],"type":"networkacl"} > > > > /var/cache/cloud/vm_dhcp_entry.json > {"host_name":"VM-403a0536-ba54-404f-a664-1b14d039497c","mac_address":"02:00:10:ca:00:01","ipv4_adress":"10.1.1.194","ipv6_duid":"00:03:00:01:02:00:10:ca:00:01","default_gateway":"10.1.1.1","default_entry":true,"type":"dhcpentry"} > > > > /var/cache/cloud/vm_dhcp_entry.json > {"host_name":"VM-4c5e69ab-65dd-4315-b8fb-702f5599ede0","mac_address":"02:00:0f:22:00:03","ipv4_adress":"10.1.1.36","ipv6_duid":"00:03:00:01:02:00:0f:22:00:03","default_gateway":"10.1.1.1","default_entry":true,"type":"dhcpentry"} > > > > /var/cache/cloud/vm_metadata.json > {"vm_ip_address":"10.1.1.194","vm_metadata":[["userdata","user-data",null],["metadata","service-offering","Tiny Instance"],["metadata","availability-zone","XenRT-Zone-0"],["metadata","local-ipv4","10.1.1.194"],["metadata","local-hostname","VM-403a0536-ba54-404f-a664-1b14d039497c"],["metadata","public-ipv4","10.220.135.96"],["metadata","public-hostname","10.220.135.96"],["metadata","instance-id","403a0536-ba54-404f-a664-1b14d039497c"],["metadata","vm-id","403a0536-ba54-404f-a664-1b14d039497c"],["metadata","public-keys",null],["metadata","cloud-identifier","CloudStack-{5bcd0291-2ac9-4d68-9887-bda6ae6596c2}"]],"type":"vmdata"} > > > > /var/cache/cloud/vm_metadata.json > {"vm_ip_address":"10.1.1.36","vm_metadata":[["userdata","user-data",null],["metadata","service-offering","Tiny Instance"],["metadata","availability-zone","XenRT-Zone-0"],["metadata","local-ipv4","10.1.1.36"],["metadata","local-hostname","VM-4c5e69ab-65dd-4315-b8fb-702f5599ede0"],["metadata","public-ipv4","10.220.135.96"],["metadata","public-hostname","10.220.135.96"],["metadata","instance-id","4c5e69ab-65dd-4315-b8fb-702f5599ede0"],["metadata","vm-id","4c5e69ab-65dd-4315-b8fb-702f5599ede0"],["metadata","public-keys",null],["metadata","cloud-identifier","CloudStack-{5bcd0291-2ac9-4d68-9887-bda6ae6596c2}"]],"type":"vmdata"} > > > 2015-07-29 05:20:39,132 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-402:ctx-83549002) Executing command in VR: /opt/cloud/bin/router_proxy.sh vr_cfg.sh 169.254.0.54 -c /var/cache/cloud/VR-d3b73941-7b3d-489a-bcc6-47c6a777c950.cfg > Please look for job-115 in the attached MS log file for the sequence of events happened when we rebooted VPC VR -- This message was sent by Atlassian JIRA (v6.3.4#6332)