Skip to content

Instantly share code, notes, and snippets.

@michaeltchapman
Created November 23, 2016 05:25
Show Gist options
  • Save michaeltchapman/3ad3210e63eac1dc0de8202ee4aceefc to your computer and use it in GitHub Desktop.
Save michaeltchapman/3ad3210e63eac1dc0de8202ee4aceefc to your computer and use it in GitHub Desktop.
[stack@localhost ~]$ sudo ovs-vsctl show
3b3e06cc-fef9-4648-82f3-bdbcbc0a980a
Bridge brovc
Port brovc
Interface brovc
type: internal
Bridge br-api
Port br-api
Interface br-api
type: internal
Bridge brbm
Port brbm
Interface brbm
type: internal
ovs_version: "2.5.0"
[stack@localhost ~]$ sudo ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: em3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
link/ether ec:f4:bb:c0:bc:7c brd ff:ff:ff:ff:ff:ff
3: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
link/ether ec:f4:bb:c0:bc:78 brd ff:ff:ff:ff:ff:ff
4: em4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
link/ether ec:f4:bb:c0:bc:7d brd ff:ff:ff:ff:ff:ff
5: em2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
link/ether ec:f4:bb:c0:bc:7a brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
link/ether f2:b4:05:58:ce:89 brd ff:ff:ff:ff:ff:ff
7: br-api: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
link/ether b2:7b:91:ba:e5:46 brd ff:ff:ff:ff:ff:ff
8: brbm: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT
link/ether 46:34:5a:f1:a0:45 brd ff:ff:ff:ff:ff:ff
32: brovc: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT
link/ether d6:8f:3a:93:57:45 brd ff:ff:ff:ff:ff:ff
33: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
link/ether 52:54:00:aa:b5:10 brd ff:ff:ff:ff:ff:ff
34: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT qlen 500
link/ether 52:54:00:aa:b5:10 brd ff:ff:ff:ff:ff:ff
71: brext: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
link/ether 52:54:00:e2:26:a2 brd ff:ff:ff:ff:ff:ff
72: brext-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master brext state DOWN mode DEFAULT qlen 500
link/ether 52:54:00:e2:26:a2 brd ff:ff:ff:ff:ff:ff
[stack@localhost ~]$ virsh start undercloud
error: Failed to start domain undercloud
error: failed to retrieve file descriptor for interface: Transport endpoint is not connected
[stack@localhost ~]$ sudo virsh net-dumpxml overcloud
<network>
<name>overcloud</name>
<uuid>27380d9a-3c5c-4464-b314-e40c9bc15063</uuid>
<forward mode='bridge'/>
<bridge name='brovc'/>
<virtualport type='openvswitch'/>
</network>
[stack@localhost ~]$ virsh dumpxml undercloud
<domain type='kvm'>
<name>undercloud</name>
<uuid>4facb287-6f3c-4a6b-8a5d-3cbd3527dfed</uuid>
<memory unit='KiB'>12582912</memory>
<currentMemory unit='KiB'>12582912</currentMemory>
<vcpu placement='static'>8</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='no'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='volume' device='disk'>
<driver name='qemu' type='qcow2'/>
<source pool='oooq_pool' volume='undercloud.qcow2'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<controller type='usb' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<interface type='bridge'>
<mac address='00:a3:da:a2:ee:8b'/>
<source bridge='brovc'/>
<virtualport type='openvswitch'>
<parameters interfaceid='a237739a-8256-4e69-bbb0-f16f8efdaeb2'/>
</virtualport>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
</domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment