Bug 1122440

Summary: Should not accept the some incorrect format ip address as DNS/Rsyslog server address
Product: Red Hat Enterprise Virtualization Manager Reporter: wanghui <huiwa>
Component: ovirt-nodeAssignee: Ryan Barry <rbarry>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 3.5.0CC: cshao, ecohen, gklein, gouyang, hadong, iheim, leiwang, lsurette, yaniwang, ycui
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-23 15:43:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wanghui 2014-07-23 09:17:09 UTC
Description of problem:
It should not accept the incorrect format ip address as DNS server address. The incorrect format ip address like "2001::1.0.0.1".

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.5-20140624.0.el6ev
ovirt-node-3.0.1-18.el6_5.11.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHEV-H 6.5-20140624.0.el6ev
2. Enabled network.
3. Set DNS/Rsyslog server address as 2001::1.0.0.1

Actual results:
1. It can save the DNS/Rsyslog server address as 2001::1.0.0.1.

Expected results:
1. It should not accept the DNS/Rsyslog server address like the format as 2001::1.0.0.1.

Additional info:

Comment 1 Ryan Barry 2014-07-23 15:43:18 UTC
2001::1.0.0.1 is actually a valid IPv6 address.

Granted, it's an IPv4-compatibile IPv6 address used for unicasting, but valid nonetheless.

Similarly:

2001::ffff:1.1.1.1
2001:1::ffff:1.1.1.1
2001:f::2:1:1.1.1.1

And other variations thereof are also valid ipv6. RFC 2372 and 2373 are confusing, but the range of valid ipv6 addresses is enormous, and includes many things which don't look right to allow for ipv4-compatible addressing.

http://v6decode.com is probably the friendliest and most complete validator I've come across, if you're curious.