Bug 788083 - spacewalk-hostname-rename does not support IPv6 addresses
Summary: spacewalk-hostname-rename does not support IPv6 addresses
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space17 790326
TreeView+ depends on / blocked
 
Reported: 2012-02-07 12:39 UTC by Jan Hutař
Modified: 2012-03-07 09:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-03-07 09:56:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2012-02-07 12:39:51 UTC
Description of problem:
spacewalk-hostname-rename script do not support IPv6 address.


Version-Release number of selected component (if applicable):
spacewalk-utils-1.6.6-1.el5


How reproducible:
always


Steps to Reproduce:
1. Install SW1.6 on system with IPv4 network
2. Configure IPv6 address and hostname for that system (DNS have forward
   and reverse entries for that hostname only as IPv6)
3. Try to "rename" the SW server


Actual results:
# spacewalk-hostname-rename 1234:56:0:789b:223:7dff:fe4c:1234
Error: Invalid option 1234:56:0:789b:223:7dff:fe4c:1234
Usage:
   spacewalk-hostname-rename <IP_ADDRESS> [ --ssl-country=<SSL_COUNTRY> --ssl-state=<SSL_STATE> --ssl-org=<SSL_ORG> --ssl-orgunit=<SSL_ORGUNIT> --ssl-email=<SSL_EMAIL> --ssl-ca-password=<SSL_CA_PASSWORD>]
   spacewalk-hostname-rename { -h | --help }


Expected results:
Should work


Additional info:
This is caused by this option check:

            [[:digit:]]*.[[:digit:]]*.[[:digit:]]*.[[:digit:]]*) IP=$1;;

Going further you will run into issue with function check_input_ip.

Comment 2 Milan Zázrivec 2012-02-20 15:39:10 UTC
spacewalk.git master: 8ded2d436397ae0355180cc35194d133d5410138

Comment 3 Jan Pazdziora (Red Hat) 2012-03-07 09:56:06 UTC
Spacewalk 1.7 has been released:

https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17


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