| Summary: | spacewalk-hostname-rename does not support IPv6 addresses | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Jan Hutař <jhutar> |
| Component: | Server | Assignee: | Milan Zázrivec <mzazrivec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.6 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-07 09:56:06 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 765736, 790326 | ||
spacewalk.git master: 8ded2d436397ae0355180cc35194d133d5410138 Spacewalk 1.7 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17 |
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.