RE: KVM and openvswitch

2013-10-24 Thread Teipel, Bjoern
Does cloudstack work with that release?
The Br compatibility is gone after 1.0.9 and you can't use the standard bridge 
utils any more.
I don't rely on the old bridge utils but cloudstack supposedly does, at least 
what I can see from the com.cloud.hypervisor.kvm.resource.OvsVifDriver

OVS works fine for me just not the bridge compatibility
I probably patch the Java class com.cloud.hypervisor.kvm.resource.OvsVifDriver 
before messing around with a feature which goes away anyways...

Bjoern

From: Nguyen Anh Tu [ng.t...@gmail.com]
Sent: Wednesday, October 23, 2013 6:53 PM
To: users@cloudstack.apache.org
Subject: Re: KVM and openvswitch

Okie. So you might be interesting with openvswitch 1.0.10. I deployed
success with that version. Instruction here:
http://n40lab.wordpress.com/2012/09/19/installing-openvswitch-in-centos-6-3/


2013/10/24 Bjoern Teipel 

>
> Yup all done, did it multiple time now even with a clean host.
> As I said while I was looking into the code, the issue might just that my
> brif directory is empty at
> /sys/class/net//brif  I'm not sure if the open vswitch 1.0.9
> version has a bug...
>
>
> LibvirtComputingResource.java 1036:
>
>(f is an file object from this directory above)
>
>
> File[] interfaces = f.listFiles(); >>>  my array is basically
> empty.. <<<
>
> for (int i = 0; i < interfaces.length; i++) {
> String fname = interfaces[i].getName();
> s_logger.debug("**matchPifFileInDirectory: file name
> '"+fname+"'");
> if (fname.startsWith("eth") || fname.startsWith("bond")
> || fname.startsWith("vlan") || fname.startsWith("em")
> || fname.matches("^p\\d+p\\d+.*")**) {
> return fname;
> }
> }
>
>
> My  brif  directory is empty so I'm not sure if I have a configuration
> issue in openvswitch.
> Going to check this now.
>
> On 10/23/2013 10:36 AM, Francois Gaudreault wrote:
>
>> So brctl is likely to return a mess.
>>
>> How did you configure the agent? Did you put :
>> libvirt.vif.driver=com.cloud.**hypervisor.kvm.resource.**OvsVifDriver
>> and
>> network.bridge.type=**openvswitch
>>
>> in agent.properties?
>>
>> Francois
>>
>> On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:
>>
>>> Yes I did.
>>>
>>> On 10/23/2013 09:27 AM, Francois Gaudreault wrote:
>>>
>>>> Did you blacklist the linux bridge module? You have to blacklist it.
>>>>
>>>> FG
>>>>
>>>> On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:
>>>>
>>>>> Yes that's what I followed exactly.
>>>>>
>>>>> My OS is centos 6.4 and brctl
>>>>>
>>>>> bridge namebridge idSTP enabledinterfaces
>>>>> cloud0/sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> /sys/class/net/cloud0/bridge: No such file or directory
>>>>> .ba2d3a409d48no
>>>>> cloudbr0/sys/class/net/cloudbr0/**bridge: No such file or
>>>>> directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or directory
>>>>> /sys/class/net/cloudbr0/**bridge: No such file or dire

Re: KVM and openvswitch

2013-10-23 Thread Nguyen Anh Tu
Okie. So you might be interesting with openvswitch 1.0.10. I deployed
success with that version. Instruction here:
http://n40lab.wordpress.com/2012/09/19/installing-openvswitch-in-centos-6-3/


2013/10/24 Bjoern Teipel 

>
> Yup all done, did it multiple time now even with a clean host.
> As I said while I was looking into the code, the issue might just that my
> brif directory is empty at
> /sys/class/net//brif  I'm not sure if the open vswitch 1.0.9
> version has a bug...
>
>
> LibvirtComputingResource.java 1036:
>
>(f is an file object from this directory above)
>
>
> File[] interfaces = f.listFiles(); >>>  my array is basically
> empty.. <<<
>
> for (int i = 0; i < interfaces.length; i++) {
> String fname = interfaces[i].getName();
> s_logger.debug("**matchPifFileInDirectory: file name
> '"+fname+"'");
> if (fname.startsWith("eth") || fname.startsWith("bond")
> || fname.startsWith("vlan") || fname.startsWith("em")
> || fname.matches("^p\\d+p\\d+.*")**) {
> return fname;
> }
> }
>
>
> My  brif  directory is empty so I'm not sure if I have a configuration
> issue in openvswitch.
> Going to check this now.
>
> On 10/23/2013 10:36 AM, Francois Gaudreault wrote:
>
>> So brctl is likely to return a mess.
>>
>> How did you configure the agent? Did you put :
>> libvirt.vif.driver=com.cloud.**hypervisor.kvm.resource.**OvsVifDriver
>> and
>> network.bridge.type=**openvswitch
>>
>> in agent.properties?
>>
>> Francois
>>
>> On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:
>>
>>> Yes I did.
>>>
>>> On 10/23/2013 09:27 AM, Francois Gaudreault wrote:
>>>
 Did you blacklist the linux bridge module? You have to blacklist it.

 FG

 On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

> Yes that's what I followed exactly.
>
> My OS is centos 6.4 and brctl
>
> bridge namebridge idSTP enabledinterfaces
> cloud0/sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> .ba2d3a409d48no
> cloudbr0/sys/class/net/cloudbr0/**bridge: No such file or
> directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> .00219ba07885no
> cloudbr1/sys/class/net/cloudbr1/**bridge: No such file or
> directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> .00219ba07885no
>
> But the directories are there so it doesn't make a whole lot of sense
>
> /sys/class/net/cloud0/bridge
> [bteipel@hq-kvmhv-002 bridge]$ ll
> total 0
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
> -r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
> -r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
> -rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
>

Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel


Yup all done, did it multiple time now even with a clean host.
As I said while I was looking into the code, the issue might just that 
my brif directory is empty at
/sys/class/net//brif  I'm not sure if the open vswitch 1.0.9 
version has a bug...



LibvirtComputingResource.java 1036:

   (f is an file object from this directory above)

File[] interfaces = f.listFiles(); >>>  my array is basically 
empty.. <<<


for (int i = 0; i < interfaces.length; i++) {
String fname = interfaces[i].getName();
s_logger.debug("matchPifFileInDirectory: file name 
'"+fname+"'");

if (fname.startsWith("eth") || fname.startsWith("bond")
|| fname.startsWith("vlan") || fname.startsWith("em")
|| fname.matches("^p\\d+p\\d+.*")) {
return fname;
}
}


My  brif  directory is empty so I'm not sure if I have a configuration 
issue in openvswitch.

Going to check this now.

On 10/23/2013 10:36 AM, Francois Gaudreault wrote:

So brctl is likely to return a mess.

How did you configure the agent? Did you put :
libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
and
network.bridge.type=openvswitch

in agent.properties?

Francois

On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look 

Re: KVM and openvswitch

2013-10-23 Thread Francois Gaudreault

So brctl is likely to return a mess.

How did you configure the agent? Did you put :
libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
and
network.bridge.type=openvswitch

in agent.properties?

Francois

On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 


















--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 















--

Bjoern Teipel
System Operation Manager UNIX
Internet Brands
909 N. Sepulveda Blvd., 11th Floor
El Segundo, CA 90245
P: (310) 280- 5287

bjoern.tei...@internetbrands.com



Re: KVM and openvswitch

2013-10-23 Thread Francois Gaudreault

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 












--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch







Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Guess I can narrow it down in the code at

LibvirtComputingResource.java 1036:

File[] interfaces = f.listFiles(); >>>  my array is basically 
empty.. <<<


for (int i = 0; i < interfaces.length; i++) {
String fname = interfaces[i].getName();
s_logger.debug("matchPifFileInDirectory: file name 
'"+fname+"'");

if (fname.startsWith("eth") || fname.startsWith("bond")
|| fname.startsWith("vlan") || fname.startsWith("em")
|| fname.matches("^p\\d+p\\d+.*")) {
return fname;
}
}


My  brif  directory is empty so I'm not sure if I have a configuration 
issue in openvswitch.

Going to check this now.

Bjoern

On 10/22/2013 11:36 PM, Bjoern Teipel wrote:

Is somebody using cloustack >= 4.1 and openvswitch ?

I configured everything according the cloudstack wiki and openswitch 
seems to work fine but the management server refuses to add the host with:


2013-10-22 23:30:52,742 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-1320:null) Failed to handle host connection: 
com.cloud.exception.ConnectionException: Incorrect Network setup on 
agent, Reinitialize agent after network names are setup, details :*Can 
not find network: cloudbr0*


But it appears to work fine in ovs:

sudo ovs-vsctl show
15e04687-6948-4866-922a-031e5d86672e
Bridge "cloud0"
Port "cloud0"
Interface "cloud0"
type: internal
Bridge "cloudbr1"
Port "bond0.501"
Interface "bond0.501"
Port "cloudbr1"
Interface "cloudbr1"
type: internal
Bridge "cloudbr0"
Port "bond0"
Interface "bond0"
Port "cloudbr0"
Interface "cloudbr0"
type: internal
ovs_version: "1.9.0"

Any ideas ? I'm using a 4.2.1 snapshot build btw.

Thanks,
Bjoern





Re: KVM and openvswitch

2013-10-22 Thread Nguyen Anh Tu
2013/10/23 Bjoern Teipel 

> Is somebody using cloustack >= 4.1 and openvswitch ?
>

Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch


-- 

N.g.U.y.e.N.A.n.H.t.U


Re: KVM and openvswitch

2013-10-22 Thread Marty Sweet
What base OS are you using? Can you run # brctl show?

Marty


On Wed, Oct 23, 2013 at 7:36 AM, Bjoern Teipel <
bjoern.tei...@internetbrands.com> wrote:

> Is somebody using cloustack >= 4.1 and openvswitch ?
>
> I configured everything according the cloudstack wiki and openswitch seems
> to work fine but the management server refuses to add the host with:
>
> 2013-10-22 23:30:52,742 DEBUG [agent.manager.**AgentManagerImpl]
> (AgentConnectTaskPool-1320:**null) Failed to handle host connection:
> com.cloud.exception.**ConnectionException: Incorrect Network setup on
> agent, Reinitialize agent after network names are setup, details :*Can not
> find network: cloudbr0*
>
> But it appears to work fine in ovs:
>
> sudo ovs-vsctl show
> 15e04687-6948-4866-922a-**031e5d86672e
> Bridge "cloud0"
> Port "cloud0"
> Interface "cloud0"
> type: internal
> Bridge "cloudbr1"
> Port "bond0.501"
> Interface "bond0.501"
> Port "cloudbr1"
> Interface "cloudbr1"
> type: internal
> Bridge "cloudbr0"
> Port "bond0"
> Interface "bond0"
> Port "cloudbr0"
> Interface "cloudbr0"
> type: internal
> ovs_version: "1.9.0"
>
> Any ideas ? I'm using a 4.2.1 snapshot build btw.
>
> Thanks,
> Bjoern
>
>


KVM and openvswitch

2013-10-22 Thread Bjoern Teipel

Is somebody using cloustack >= 4.1 and openvswitch ?

I configured everything according the cloudstack wiki and openswitch 
seems to work fine but the management server refuses to add the host with:


2013-10-22 23:30:52,742 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-1320:null) Failed to handle host connection: 
com.cloud.exception.ConnectionException: Incorrect Network setup on 
agent, Reinitialize agent after network names are setup, details :*Can 
not find network: cloudbr0*


But it appears to work fine in ovs:

sudo ovs-vsctl show
15e04687-6948-4866-922a-031e5d86672e
Bridge "cloud0"
Port "cloud0"
Interface "cloud0"
type: internal
Bridge "cloudbr1"
Port "bond0.501"
Interface "bond0.501"
Port "cloudbr1"
Interface "cloudbr1"
type: internal
Bridge "cloudbr0"
Port "bond0"
Interface "bond0"
Port "cloudbr0"
Interface "cloudbr0"
type: internal
ovs_version: "1.9.0"

Any ideas ? I'm using a 4.2.1 snapshot build btw.

Thanks,
Bjoern