You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Uwe Kastens (JIRA)" <ji...@apache.org> on 2014/07/08 10:35:39 UTC

[jira] [Commented] (CLOUDSTACK-4690) KVM Router - to many ethernet devices created

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054646#comment-14054646 ] 

Uwe Kastens commented on CLOUDSTACK-4690:
-----------------------------------------

We have the same issue with a Centos 6.5 and cloudstack 4.3

I have debug agent.log and can see, that the agent is caling the ipassoc.sh on the VR. 


2014-07-08 07:51:15,612 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) Executing: /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh netusage.sh 169.254.2.165 -c 
2014-07-08 07:51:15,718 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) Execution is successful.
2014-07-08 07:51:15,718 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:null) Processing command: com.cloud.agent.api.routing.IpAssocCommand
2014-07-08 07:51:15,731 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) matchPifFileInDirectory: file name 'eth3.1138'
2014-07-08 07:51:15,731 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) getting broadcast uri for pif eth3.1138 and bridge breth3-1138
2014-07-08 07:51:15,731 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) matchPifFileInDirectory: file name 'eth3.3503'
2014-07-08 07:51:15,732 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) getting broadcast uri for pif eth3.3503 and bridge breth3-3503
2014-07-08 07:51:15,732 DEBUG [kvm.resource.BridgeVifDriver] (agentRequest-Handler-4:null) nic=[Nic:Public-null-vlan://3503]
2014-07-08 07:51:15,733 DEBUG [kvm.resource.BridgeVifDriver] (agentRequest-Handler-4:null) Executing: /usr/share/cloudstack-common/scripts/vm/network/vnet/modifyvlan.sh -v 3503 -p eth3 -b breth3-3503 -o add 
2014-07-08 07:51:15,764 DEBUG [kvm.resource.BridgeVifDriver] (agentRequest-Handler-4:null) Execution is successful.
2014-07-08 07:51:15,764 DEBUG [kvm.resource.BridgeVifDriver] (agentRequest-Handler-4:null) Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config

2014-07-08 07:51:15,858 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) Executing: /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh netusage.sh 169.254.2.165 -a eth3 
2014-07-08 07:51:15,998 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-4:null) Execution is successful.
2014-07-08 07:51:15,999 DEBUG [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-4:null) Executing: /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh ipassoc.sh 169.254.2.165 -A -s -f -l xx.yyy.116.108/24 -c eth3 -g xx.yyy.116.1 -n 
2014-07-08 07:51:16,401 DEBUG [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-4:null) Execution is successful.
2014-07-08 07:51:16,401 DEBUG [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-4:null) iptables: Bad rule (does a matching rule exist in that chain?).
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
ARPING xx.yyy.116.108 from xx.yyy.116.108 eth3
Sent 1 probes (1 broadcast(s))
Received 0 response(s)
ARPING xx.yyy.116.108 from xx.yyy.116.108 eth3
Sent 1 probes (1 broadcast(s))
Received 0 response(s)



> KVM Router - to many ethernet devices created
> ---------------------------------------------
>
>                 Key: CLOUDSTACK-4690
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4690
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: 4.1.1
>         Environment: Centos 6.4
>            Reporter: Paul Edwards
>            Priority: Critical
>         Attachments: management-server.log, router.log
>
>
> We have setup cloudstack with advanced networking. We have a network created 172.16.24.0/23, called news preprod. This has a number of vms created under it. When we initially set this up, we noticed that the router we created with 4 ethernet interfaces. This was unexpected, but didn't seem to be effecting the running of the router, so we didn't worry about it. The interfaces were: eth0 172.16.24.14, eth1 169.254.1.91, and both eth2 and eth2 were given the external ip (xxx.xxx.245.59). We investigated why we were getting 2 externals, but couldn't figure it out. We also configured the router to have a redundant, with keepalived. They were working fine.
> Now I needed to add another external ip to the network. Did that, and restarted the network. I now have 8 (eight) eth interfaces. The new external ip is NOT one of them. Heres the ifconfig output:
> root@r-235-VM:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 02:00:68:e1:00:1a  
>           inet addr:172.16.24.14  Bcast:172.16.25.255  Mask:255.255.254.0
>           inet6 addr: fe80::68ff:fee1:1a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:5485 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:21101 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:325618 (317.9 KiB)  TX bytes:1581746 (1.5 MiB)
> eth1      Link encap:Ethernet  HWaddr 0e:00:a9:fe:01:5b  
>           inet addr:169.254.1.91  Bcast:169.254.255.255  Mask:255.255.0.0
>           inet6 addr: fe80::c00:a9ff:fefe:15b/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:22118 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:21148 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:3942785 (3.7 MiB)  TX bytes:4287970 (4.0 MiB)
> eth2      Link encap:Ethernet  HWaddr 06:16:06:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::416:6ff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:17331 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3930 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:1063053 (1.0 MiB)  TX bytes:234546 (229.0 KiB)
> eth3      Link encap:Ethernet  HWaddr 06:d7:ec:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::4d7:ecff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13603 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:792907 (774.3 KiB)  TX bytes:704 (704.0 B)
> eth4      Link encap:Ethernet  HWaddr 06:8b:5a:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::48b:5aff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13319 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:779753 (761.4 KiB)  TX bytes:704 (704.0 B)
> eth5      Link encap:Ethernet  HWaddr 06:7e:68:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::47e:68ff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13080 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:762111 (744.2 KiB)  TX bytes:704 (704.0 B)
> eth6      Link encap:Ethernet  HWaddr 06:7e:68:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::47e:68ff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13086 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:762655 (744.7 KiB)  TX bytes:774 (774.0 B)
> eth7      Link encap:Ethernet  HWaddr 06:27:a8:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::427:a8ff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13064 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:761153 (743.3 KiB)  TX bytes:704 (704.0 B)
> eth8      Link encap:Ethernet  HWaddr 06:27:a8:00:01:03  
>           inet addr:xxx.xxx.245.59  Bcast:xxx.xxx.245.255  Mask:255.255.255.0
>           inet6 addr: fe80::427:a8ff:fe00:103/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13043 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:759287 (741.4 KiB)  TX bytes:704 (704.0 B)
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:6 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:414 (414.0 B)  TX bytes:414 (414.0 B)
> The cloudstack management browser still shows the router as only supposed to have 3 nics.
> The agent log on the physical host has nothing in it (I was tailing that log when I did this, as I would have thought that the agent has to create the devices for the vm to get them).
> I have attached the management log from just before to just after. (Time of change was 9:39am). I do not know why the router timestamp is not the same as the host. 
> I have also attached the log of the router restart.
> The physical server is Centos 6.4, and all the vms that we have created are Centos 6.4. KVM is the hypervisor.



--
This message was sent by Atlassian JIRA
(v6.2#6252)