Foreman & openvswich

Hi all,

I have a hypervisor with some bridges created using openvswich.

When I try to deploy a new host on it, foreman only can see bonds and
ordinary bridges.

It's my fault or is not possible use openvswitch bridges?

Thanks.

Solved. My fault.

My hypervisor is a libvirt compute resource. Openvswitch bridges haven't a
file in /etc/sysconfig/network-scripts. I create this files and when
foreman question Libvirtd, bridges appear.

··· On Wednesday, December 11, 2013 1:34:30 PM UTC+1, Israel Calvete wrote: > > Hi all, > > I have a hypervisor with some bridges created using openvswich. > > When I try to deploy a new host on it, foreman only can see bonds and > ordinary bridges. > > It's my fault or is not possible use openvswitch bridges? > > Thanks. >

No works!!

Ussing tcpdump I can see the xml foreman sends.

<domain type='kvm'>

  • <name>test</name>*
  • <uuid>47690131-56cb-1f20-af27-c7ce970c5c0c</uuid>*
  • <memory unit='KiB'>786432</memory>*
  • <currentMemory unit='KiB'>786432</currentMemory>*
  • <vcpu placement='static'>1</vcpu>*
  • <os>*
  • <type arch='x86_64' machine='rhel6.5.0'>hvm</type>*
  • <boot dev='network'/>*
  • <boot dev='hd'/>*
  • </os>*
  • <features>*
  • <acpi/>*
  • <apic/>*
  • <pae/>*
  • </features>*
  • <clock offset='utc'/>*
  • <on_poweroff>destroy</on_poweroff>*
  • <on_reboot>restart</on_reboot>*
  • <on_crash>destroy</on_crash>*
  • <devices>*
  • <emulator>/usr/libexec/qemu-kvm</emulator>*
  • <disk type='file' device='disk'>*
  •  &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39;/&gt;*
    
  •  &lt;source file=&#39;/dev/vm-disks/we.tems.eld.es.eu.ericsson.se-disk1&#39;/&gt;*
    
  •  &lt;target dev=&#39;vda&#39; bus=&#39;virtio&#39;/&gt;*
    
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39; 
    

function='0x0'/>*

  • </disk>*
  • <controller type='usb' index='0'>*
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39; 
    

function='0x2'/>*

  • </controller>*
  • <interface type='bridge'>*
  •  &lt;mac address=&#39;52:54:00:d2:df:4a&#39;/&gt;*
    
  •  &lt;source bridge=&#39;br-tems&#39;/&gt;*
    
  •  &lt;model type=&#39;virtio&#39;/&gt;*
    
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; 
    

function='0x0'/>*

  • </interface>*
  • <interface type='bridge'>*
  •  &lt;mac address=&#39;52:54:00:a0:fe:7c&#39;/&gt;*
    
  •  &lt;source bridge=&#39;br-tems&#39;/&gt;*
    
  •  &lt;model type=&#39;virtio&#39;/&gt;*
    
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x04&#39; 
    

function='0x0'/>*

  • </interface>*
  • <serial type='pty'>*
  •  &lt;target port=&#39;0&#39;/&gt;*
    
  • </serial>*
  • <console type='pty'>*
  •  &lt;target type=&#39;serial&#39; port=&#39;0&#39;/&gt;*
    
  • </console>*
  • <input type='mouse' bus='ps2'/>*
  • <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'>*
  •  &lt;listen type=&#39;address&#39; address=&#39;0.0.0.0&#39;/&gt;*
    
  • </graphics>*
  • <video>*
  •  &lt;model type=&#39;cirrus&#39; vram=&#39;9216&#39; heads=&#39;1&#39;/&gt;*
    
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x02&#39; 
    

function='0x0'/>*

  • </video>*
  • <memballoon model='virtio'>*
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x06&#39; 
    

function='0x0'/>*

  • </memballoon>*
  • </devices>*
    </domain>

To use openvswitch bridges, foreman should send this.

  • <interface type='bridge'>*
  •  &lt;mac address=&#39;52:54:00:d2:df:4a&#39;/&gt;*
    
  •  &lt;source bridge=&#39;br-tems&#39;/&gt;*
    
  •  &lt;model type=&#39;virtio&#39;/&gt;*
    
  •  &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; 
    

function='0x0'/>*

  •  &lt;virtualport type=&#39;openvswitch&#39;/&gt;*
    
  • </interface>*

··· On Wednesday, December 11, 2013 3:25:54 PM UTC+1, Israel Calvete wrote: > > Solved. My fault. > > My hypervisor is a libvirt compute resource. Openvswitch bridges haven't a > file in /etc/sysconfig/network-scripts. I create this files and when > foreman question Libvirtd, bridges appear. > > > On Wednesday, December 11, 2013 1:34:30 PM UTC+1, Israel Calvete wrote: >> >> Hi all, >> >> I have a hypervisor with some bridges created using openvswich. >> >> When I try to deploy a new host on it, foreman only can see bonds and >> ordinary bridges. >> >> It's my fault or is not possible use openvswitch bridges? >> >> Thanks. >> >

Hi,

have you been able to solve this somehow?

BR
Jens

··· Am Dienstag, 17. Dezember 2013 11:19:24 UTC+1 schrieb Israel Calvete: > > > > No works!! > > Ussing tcpdump I can see the xml foreman sends. > > ** > * test* > * 47690131-56cb-1f20-af27-c7ce970c5c0c* > * 786432* > * 786432* > * 1* > * * > * hvm* > * * > * * > * * > * * > * * > * * > * * > * * > * * > * destroy* > * restart* > * destroy* > * * > * /usr/libexec/qemu-kvm* > * * > * * > * * > * * > * function='0x0'/>* > * * > * * > * function='0x2'/>* > * * > * * > * * > * * > * * > * function='0x0'/>* > * * > * * > * * > * * > * * > * function='0x0'/>* > * * > * * > * * > * * > * * > * * > * * > * * > * * > * * > * * > * * > * * > * function='0x0'/>* > * * > * * > * function='0x0'/>* > * * > * * > ** > > To use openvswitch bridges, foreman should send this. > > * * > * * > * * > * * > * function='0x0'/>* > > * * > > * * > > > > > > > > On Wednesday, December 11, 2013 3:25:54 PM UTC+1, Israel Calvete wrote: >> >> Solved. My fault. >> >> My hypervisor is a libvirt compute resource. Openvswitch bridges haven't >> a file in /etc/sysconfig/network-scripts. I create this files and when >> foreman question Libvirtd, bridges appear. >> >> >> On Wednesday, December 11, 2013 1:34:30 PM UTC+1, Israel Calvete wrote: >>> >>> Hi all, >>> >>> I have a hypervisor with some bridges created using openvswich. >>> >>> When I try to deploy a new host on it, foreman only can see bonds and >>> ordinary bridges. >>> >>> It's my fault or is not possible use openvswitch bridges? >>> >>> Thanks. >>> >>