Bug 1283890
| Summary: | installer options are not validated at the beginning of installation | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Kurik <jkurik> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.2 | CC: | akasurde, ekeck, jcholast, jkurik, ksiddiqu, mkosek, mnavrati, ndehadra, pvoborni, rcritten |
| Target Milestone: | rc | Keywords: | Regression, ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.2.0-15.el7_2.2 | Doc Type: | Bug Fix |
| Doc Text: |
Due to a bug, ipa-server-install and ipa-replica-install did not validate their options. A patch has been applied to add the code that calls the validators in installers. Now, ipa-server-install and ipa-replica-install validate their options as expected.
|
Story Points: | --- |
| Clone Of: | 1278330 | Environment: | |
| Last Closed: | 2015-12-08 10:37:21 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1278330 | ||
| Bug Blocks: | |||
|
Description
Jan Kurik
2015-11-20 08:02:40 UTC
IPA and REPLICA server details: ------------------------------- ipa-server-4.2.0-15.el7_2.3.x86_64 Tested the bug with following observations: ------------------------------------------- 1. Verified that while installing IPA server or REPLICA, proper validation is done at the beginning and installation will fail with proper message. 2. Please see the following observations for validations tests performed on IPA and REPLICA: IPA: ==== [root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19 -r TESTRELM.TEST -p password -a password --zonemgr=Têko -U Usage: ipa-server-install [options] ipa-server-install: error: option --zonemgr: domain name 'Têko.redhat.com' should be normalized to: tãako.redhat.com [root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19 -r TESTRELM.TEST -p password -a password --subject CN=Test -U Usage: ipa-server-install [options] ipa-server-install: error: option --subject: invalid subject base format: invalid attribute: "CN" [root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19 -r TESTRELM.TEST -p password -a password --subject Usage: ipa-server-install [options] ipa-server-install: error: --subject option requires an argument [root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19 -r TESTRELM.TEST -p password -a password --subject=NOSUBJECT Usage: ipa-server-install [options] ipa-server-install: error: option --subject: invalid subject base format: malformed RDN string = "NOSUBJECT" [root@dell-pe840-02 ipa]# [root@dell-pe840-02 ipa]# ipa-server-install --subject CN=Test -U Usage: ipa-server-install [options] ipa-server-install: error: option --subject: invalid subject base format: invalid attribute: "CN" [root@dell-pe840-02 ipa]# ipa-server-install --ip-address=a.b.3.4 Usage: ipa-server-install [options] ipa-server-install: error: option --ip-address: invalid IP address a.b.3.4: failed to detect a valid IP address from 'a.b.3.4' [root@dell-pe840-02 ipa]# ipa-server-install -xyz Usage: ipa-server-install [options] ipa-server-install: error: no such option: -x [root@dell-pe840-02 ipa]# addr=`ifconfig | head -2 | tail -1 | tr -s " " | cut -d" " -f3` [root@dell-pe840-02 ipa]# ipa-server-install --ip-address $addr -r testrelm.test -p 'Secret123' -a 'Secret123' --forwarder 10.65.b.c -U --setup-dns Usage: ipa-server-install [options] ipa-server-install: error: option --forwarder: invalid IP address 10.65.b.c: failed to detect a valid IP address from '10.65.b.c' [root@dell-pe840-02 ipa]# REPLICA: ======== [root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --forwarder=a.c.b.d Usage: ipa-replica-install [options] REPLICA_FILE ipa-replica-install: error: option --forwarder: invalid IP address a.c.b.d: failed to detect a valid IP address from 'a.c.b.d' [root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --reverse-zone=$#%$#$%#$5 Usage: ipa-replica-install [options] REPLICA_FILE ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare [root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --reverse-zone= Usage: ipa-replica-install [options] REPLICA_FILE ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare [root@hp-dl380pgen8-02-vm-3 yum.repos.d]# Thus based on above observations, marking the status of the bug to "VERIFIED". Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2562.html |