Bug 841559 - Webadmin sends "0.0.0.0" as gateway for non-management networks by default
Summary: Webadmin sends "0.0.0.0" as gateway for non-management networks by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.1.0
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ---
: ---
Assignee: Alona Kaplan
QA Contact: GenadiC
URL:
Whiteboard: network
Depends On: 842137
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-19 11:57 UTC by Moti Asayag
Modified: 2016-02-10 19:55 UTC (History)
9 users (show)

Fixed In Version: si12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:01:17 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Moti Asayag 2012-07-19 11:57:34 UTC
Description of problem:
When non-management network is set with static-ip and subnet mask via SetupNetworks, the gateway is being set with "0.0.0.0" rather empty (null).

The backend allows reciving that value, therefore the result is a network script containing that record.

Version-Release number of selected component (if applicable):

How reproducible:
always

Steps to Reproduce:
1. Using SetupNetworks, create a network on the host and set its boot protocol to static ip.
2. Provide ip and subnet mask and confirm the dialog.
  
Actual results:
The record GATEWAY=0.0.0.0 appears in the network script:

[root@myhost02 network-scripts]# cat ifcfg-testnet
DEVICE=testnet
TYPE=Bridge
ONBOOT=yes
IPADDR=10.10.10.10
NETMASK=255.255.255.0
GATEWAY=0.0.0.0
DELAY=0
NM_CONTROLLED=no

Expected results:
No GATEWAY record should appear.
[root@myhost02 network-scripts]# cat ifcfg-testnet
DEVICE=testnet
TYPE=Bridge
ONBOOT=yes
IPADDR=10.10.10.10
NETMASK=255.255.255.0
DELAY=0
NM_CONTROLLED=no

Additional info:

Comment 2 Moti Asayag 2012-07-25 09:12:51 UTC
Commit-id: bd9aa2adcca10d6e61585e68d0822949d1a888f9

The change is made on backend side. Since backend doesn't report any gateway for non-management network, the webadmin will not return any value for it.

Comment 3 Meni Yakove 2012-07-29 09:16:14 UTC
Verified on vdsm-4.9.6-24.0.el6_3.x86_64.

cat /etc/sysconfig/network-scripts/ifcfg-net1 
DEVICE=net1
TYPE=Bridge
ONBOOT=yes
IPADDR=1.1.1.1
NETMASK=255.255.255.0
DELAY=0
NM_CONTROLLED=no
STP=no


Note You need to log in before you can comment on or make changes to this bug.