Red Hat Bugzilla – Bug 834205
3.1 [vdsm][bridgeless] BOOTPROTO/IPADDR/NETMASK options are not set on interface
Last modified: 2012-12-04 14:00:41 EST
Description of problem:
On addNetwork command (also when done through setupNetworks command), when using bridged=false, the aforementioned parameters aren't set on the ifcfg file which represents the network being added.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Call addNetwork with bridged=fale and either bootproto=dhcp or ipaddr & netmask set
2. Look at the NIC's ifcfg file
The ifcfg file of the NIC doesn't contain the bootproto info.
The ifcfg file should contain the values that were passed.
Please see discussion which discovered the bug on users mailing list: http://lists.ovirt.org/pipermail/users/2012-June/002541.html
Attached are log snippets captured while attempting to create a non-VM network via the oVirt management interface.
1. Open "Setup Host Networks"
2. Drag logical network "stor0" to physical interface "eth2"
3. Edit "eth2" assigning the following
* Boot Protocol: Static
* IP : 10.20.1.240
* Subnet Mask: 255.0.0.0
4. Save changes by clicking "OK".
This is the resulting ifcfg-eth2
The only ovirt defined value assigned is the "MTU"
Created attachment 593832 [details]
Snapshot of logs when setting non-VM Network in oVirt
Created attachment 593833 [details]
Snapshot of engine.log during attempt to configure non-VM Network for host.
well this is a blocker indeed but not a test blocker.
I have tested it with bridged and looks like it is working:
note: sw1 is bridged and novm is bridgeless on eth2
# brctl show
bridge name bridge id STP enabled interfaces
rhevm 8000.001517a76a4c no eth0
sw1 8000.001517a76a4d no eth1
# virsh -r net-list
Name State Autostart
vdsm-novm active yes
vdsm-rhevm active yes
vdsm-sw1 active yes
# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:1D:09:68:71:4E
inet6 addr: fe80::21d:9ff:fe68:714e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:492 (492.0 b)
# ifconfig sw1
sw1 Link encap:Ethernet HWaddr 00:15:17:A7:6A:4D
inet addr:184.108.40.206 Bcast:220.127.116.11 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fea7:6a4d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98300 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:5263370 (5.0 MiB) TX bytes:720 (720.0 b)
The problem is that no error or exception is raised in vdsm in case bridged address was not configured there for backend doesn't report any issue.
only automation framework validator should report a problem when parsing the response body but this is blocked by BZ#809366
Verified on vdsm-4.9.6-26.0.el6_3.x86_64
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.