Bug 1278330
Summary: | installer options are not validated at the beginning of installation | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Petr Vobornik <pvoborni> | |
Component: | ipa | Assignee: | Jan Cholasta <jcholast> | |
Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> | |
Severity: | urgent | Docs Contact: | Aneta Šteflová Petrová <apetrova> | |
Priority: | urgent | |||
Version: | 7.2 | CC: | akasurde, ekeck, jcholast, jkurik, ksiddiqu, mkosek, ndehadra, rcritten | |
Target Milestone: | rc | Keywords: | Regression, ZStream | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | ipa-4.2.0-16.el7 | Doc Type: | Known Issue | |
Doc Text: |
ipa-server-install and ipa-replica-install do not validate their options
The *ipa-server-install* and *ipa-replica-install* utilities do currently not validate the options supplied to them. If the user passes incorrect values to the utilities, the installation fails. To work around the problem, make sure to supply correct values, and then run the utilities again.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1283890 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 05:39:46 UTC | Type: | Bug | |
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: | ||||
Bug Blocks: | 1283890 |
Description
Petr Vobornik
2015-11-05 09:49:02 UTC
it has manifested in bug 1273309, bug 1273707 and bug 1273700 Verification steps: e.g. verify the bugs above. Fixed upstream master: https://fedorahosted.org/freeipa/changeset/6a55174bb6c24632bbd46c8421399343e1282ce0 ipa-4-2: https://fedorahosted.org/freeipa/changeset/09d47c44986e8f0daad374f8adcfee70fad38a3a *** Bug 1273309 has been marked as a duplicate of this bug. *** *** Bug 1273707 has been marked as a duplicate of this bug. *** *** Bug 1273700 has been marked as a duplicate of this bug. *** Hi Aneta, this bug affects ipa-replica-install as well. Besides that, the doc text looks good to me. Thanks, Honza. I added ipa-replica-install to the description. IPA server: ipa-server-4.4.0-4.el7.x86_64 Verified the bug with following observations / steps whene run against ipa-server-install command: 1) QERUN COMMAND: ipa-server-install -a QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory Usage: ipa-server-install [options] ipa-server-install: error: -a option requires an argument GOT: ipa-server-install: error: -a option QERUN COMMAND SUCCEEDED! PASSED 2) QERUN COMMAND: ipa-server-install --setup-dns --forwarder=x.x.x.x -r TESTRELM.TEST -p password -a password --zonemgr=Tko@redhat..com -U QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory Usage: ipa-server-install [options] ipa-server-install: error: option --zonemgr: empty DNS label ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information GOT: ipa-server-install: error: option --zonemgr: empty DNS label QERUN COMMAND SUCCEEDED! PASSED 3) QERUN COMMAND: ipa-server-install --setup-dns --forwarder=x.x.x.x -r TESTRELM.TEST -p password -a password --subject QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory Usage: ipa-server-install [options] ipa-server-install: error: --subject option requires an argument GOT: ipa-server-install: error: --subject option requires an argument QERUN COMMAND SUCCEEDED! PASSED 4) QERUN COMMAND: ipa-server-install --setup-dns --forwarder=x.x.x.x -r TESTRELM.TEST -p password -a password --subject=NOSUBJECT -U QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory Usage: ipa-server-install [options] ipa-server-install: error: option --subject: invalid subject base format: malformed RDN string = "NOSUBJECT" ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information GOT: ipa-server-install: error: option --subject: invalid subject base format QERUN COMMAND SUCCEEDED! PASSED 5) QERUN COMMAND: ipa-server-install --ip-address=a.b.3.4 QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory 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' GOT: ipa-server-install: error: option --ip-address: invalid IP address QERUN COMMAND SUCCEEDED! PASSED 6) QERUN COMMAND: ipa-server-install -xyz QERUN ALL OUTPUT: -bash: line 1: cd: /root/multihost_tests: No such file or directory Usage: ipa-server-install [options] ipa-server-install: error: no such option: -x GOT: ipa-server-install: error: no such option QERUN COMMAND SUCCEEDED! PASSED Thus on the basis of above observations, marking status of 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-2016-2404.html |