Bug 886190
| Summary: | 3.2 - bootstrap fails if PREFIX is used for network configuration | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Petr Spacek <pspacek> | |
| Component: | vdsm | Assignee: | Dan Kenigsberg <danken> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Meni Yakove <myakove> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 3.2.0 | CC: | abaron, alonbl, bazulay, cpelland, danken, hateya, iheim, lpeer, mburman, pspacek, ykaul | |
| Target Milestone: | --- | |||
| Target Release: | 3.2.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | network | |||
| Fixed In Version: | vdsm-4.10.2-3 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 889423 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 889423, 915537 | |||
Log /tmp/vdsm-bootstrap-phase1-20121211182139.log showed following error:
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 940 makeBridge found the following bridge paramaters: ['ONBOOT=yes', 'BOOTPROTO=static', 'IPADDR=1.2.3.4', 'PREFIX=24', 'G
ATEWAY=1.2.3.111', 'IPV6_AUTOCONF=no', 'ONBOOT=yes']
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 136 ['/usr/share/vdsm/addNetwork', 'rhevm', '', '', 'eth0', 'ONBOOT=yes', 'BOOTPROTO=static', 'IPADDR=1.2.3.4', 'PREFIX=24
', 'GATEWAY=1.2.3.111', 'IPV6_AUTOCONF=no', 'ONBOOT=yes', 'blockingdhcp=true']
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 144 Must specify netmask to configure ip for network
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 145 WARNING:root:options IPADDR is deprecated. Use ipaddr instead
WARNING:root:options GATEWAY is deprecated. Use gateway instead
WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
Traceback (most recent call last):
File "/usr/share/vdsm/configNetwork.py", line 1450, in <module>
main()
File "/usr/share/vdsm/configNetwork.py", line 1419, in main
addNetwork(bridge, **kwargs)
File "/usr/share/vdsm/configNetwork.py", line 886, in addNetwork
bridged=bridged, **options)
File "/usr/share/vdsm/configNetwork.py", line 816, in _addNetworkValidation
"Must specify netmask to configure ip for network")
ConfigNetworkError: (22, 'Must specify netmask to configure ip for network')
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 980 makeBridge Failed to add rhevm bridge out=Must specify netmask to configure ip for network
err=WARNING:root:options IPADDR is deprecated. Use ipaddr instead
WARNING:root:options GATEWAY is deprecated. Use gateway instead
WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
Traceback (most recent call last):
File "/usr/share/vdsm/configNetwork.py", line 1450, in <module>
main()
File "/usr/share/vdsm/configNetwork.py", line 1419, in main
addNetwork(bridge, **kwargs)
File "/usr/share/vdsm/configNetwork.py", line 886, in addNetwork
bridged=bridged, **options)
File "/usr/share/vdsm/configNetwork.py", line 816, in _addNetworkValidation
"Must specify netmask to configure ip for network")
ConfigNetworkError: (22, 'Must specify netmask to configure ip for network')
ret=22
Tue, 11 Dec 2012 18:20:03 ERROR deployUtil 995 makeBridge errored: out=Must specify netmask to configure ip for network
err=WARNING:root:options IPADDR is deprecated. Use ipaddr instead
WARNING:root:options GATEWAY is deprecated. Use gateway instead
WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
Traceback (most recent call last):
File "/usr/share/vdsm/configNetwork.py", line 1450, in <module>
main()
File "/usr/share/vdsm/configNetwork.py", line 1419, in main
addNetwork(bridge, **kwargs)
File "/usr/share/vdsm/configNetwork.py", line 886, in addNetwork
bridged=bridged, **options)
File "/usr/share/vdsm/configNetwork.py", line 816, in _addNetworkValidation
"Must specify netmask to configure ip for network")
ConfigNetworkError: (22, 'Must specify netmask to configure ip for network')
ret=22
Tue, 11 Dec 2012 18:20:03 DEBUG deployUtil 998 makeBridge return.
Tue, 11 Dec 2012 18:20:03 ERROR vds_bootstrap 656 addNetwork error trying to add management bridge
Tue, 11 Dec 2012 18:20:03 DEBUG vds_bootstrap 213 <BSTRAP component='SetNetworking' status='FAIL' message='addNetwork error trying to add management bridge'/>
Tue, 11 Dec 2012 18:20:03 ERROR vds_bootstrap 922 setNetworking test failed
Tue, 11 Dec 2012 18:20:03 DEBUG vds_bootstrap 1019 <BSTRAP component='RHEV_INSTALL' status='FAIL'/>
Tue, 11 Dec 2012 18:20:03 DEBUG vds_bootstrap 1021 **** End VDS Validation ****
dup of bug#866540? (In reply to comment #5) > dup of bug#866540? Yes, but on a different product. Suggesting to fix in rhev=3.2. As a workaround, please replace PREFIX=24 with NETMASK=255.255.255.0 (24 leading 1 bits). https://gerrit.eng.lab.tlv.redhat.com/3720 https://gerrit.eng.lab.tlv.redhat.com/3721 *** Bug 886882 has been marked as a duplicate of this bug. *** Verified on vdsm-4.10.2-3.0.el6ev.x86_64. ifcfg-eth0 was with PREFIX=24 ifcfg-rhevm was created with NETMASK=255.255.255.0 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released 3.2 has been released |
Description of problem: Attempt to add the host to RHEV-M 3.1 with RHEL 6.3 vdsm fails if network interface is configured with PREFIX option instead of NETMASK option. Version-Release number of selected component (if applicable): vdsm-4.9.6-44.0.el6_3.x86_64 RHEV-M 3.1 How reproducible: 100 % Steps to Reproduce: 1. configure network interface with PREFIX instead of NETMASK in /etc/sysconfig/network-scripts/ifcfg-eth0 2. try to add host to RHEV 3.1 Actual results: RHEV-M 3.1 shows: Failed to install 3.1 Host: Step: SetNetworking; Details: addNetwork error trying to add management bridge. Expected results: Host installs fine. Additional info: According to /usr/share/doc/initscripts-9.03.31/sysconfig.txt PREFIX without NETMASK is legal. PREFIXn= Network prefix. It is used for all configurations except aliases and ippp devices. It takes precedence over NETMASK when both PREFIX and NETMASK are set. NETMASKn= Subnet mask; just useful for aliases and ippp devices. For all other configurations, use PREFIX instead. The "n" is expected to be consecutive positive integers starting from 0. It can be omitted if there is only one address being configured. Also, PREFIX is "the right way" according to RHCE (RH300) for RHEL 6.3. Workaround: Replace PREFIX with NETMASK in ifcfg-* files.