Bug 1402736

Summary: shorthand ipv6 address is transformed error via cockpit
Product: Red Hat Enterprise Linux 7 Reporter: Huijuan Zhao <huzhao>
Component: cockpitAssignee: Marius Vollmer <mvollmer>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: bugs, cshao, dguo, dougsland, jiawu, leiwang, mpitt, qiyuan, rbarry, weiwang, yaniwang, ycui, yzhao
Target Milestone: pre-dev-freezeKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-13 10:19:03 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:
Attachments:
Description Flags
All logs and All files in /etc/sysconfig/network-scripts/
none
screenshot of ipv6 settings none

Description Huijuan Zhao 2016-12-08 09:44:14 UTC
Created attachment 1229406 [details]
All logs and All files in /etc/sysconfig/network-scripts/

Description of problem:
Shorthand ipv6 address is transformed error via cockpit.
For example, if input 2001::1, it is transformed to 2001:0:1:0:0:0:0:0, it should be 2001:0:0:0:0:0:0:1.

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20161206.0
cockpit-ws-122-3.el7.x86_64
NetworkManager-1.4.0-13.el7_3.x86_64

How reproducible:
100%


Steps to Reproduce:
1. Install RHVH 4.0.6 via anaconda.
2. Reboot RHVH and login cockpit, enter Networking page in cockpit
3. Select one NIC em1, enter configure page, set up IPV6 as Manual mode
4. Input IPv6 address 2001::1, and click "Apply"

Actual results:
After step4, the ipv6 address 2001::1 is transformed to 2001:0:1:0:0:0:0:0

Expected results:
After step4, the ipv6 address 2001::1 should be transformed to 2001:0:0:0:0:0:0:1


Additional info:

Comment 1 Huijuan Zhao 2016-12-08 09:46:55 UTC
Created attachment 1229407 [details]
screenshot of ipv6 settings

Comment 3 Marius Vollmer 2017-01-02 11:31:32 UTC
Fixed via https://github.com/cockpit-project/cockpit/pull/5598

Comment 4 Martin Pitt 2017-10-13 10:19:03 UTC
This was fixed in Cockpit 127. Current RHEL 7.4 has Cockpit 138, so this bug is fixed there. Closing.