Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306415 Details for
Bug 447973
running ipa-server-install with bad options produces a 0 return code
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix up function return values so we can return 1 on an installation error.
freeipa-27-install.patch (text/plain), 3.94 KB, created by
Rob Crittenden
on 2008-05-22 19:20:51 UTC
(
hide
)
Description:
Fix up function return values so we can return 1 on an installation error.
Filename:
MIME Type:
Creator:
Rob Crittenden
Created:
2008-05-22 19:20:51 UTC
Size:
3.94 KB
patch
obsolete
>From 210d6df724be75f6c57e9606d2770370491b95a6 Mon Sep 17 00:00:00 2001 >From: Rob Crittenden <rcritten@redhat.com> >Date: Thu, 22 May 2008 15:19:14 -0400 >Subject: [PATCH] Fix up function return values so we can return 1 on an installation error. > >447973 >--- > ipa-server/ipa-install/ipa-server-install | 27 +++++++++++++-------------- > 1 files changed, 13 insertions(+), 14 deletions(-) > mode change 100644 => 100755 ipa-server/ipa-install/ipa-server-install > >diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install >old mode 100644 >new mode 100755 >index 7bbd151..a5ee140 >--- a/ipa-server/ipa-install/ipa-server-install >+++ b/ipa-server/ipa-install/ipa-server-install >@@ -140,7 +140,7 @@ def resolve_host(host_name): > print "The KDC service does not listen on localhost" > print "" > print "Please fix your /etc/hosts file and restart the setup program" >- return "-Fatal Error-" >+ return None > > except: > print "Unable to lookup the IP address of the provided host" >@@ -315,7 +315,7 @@ def main(): > > if os.getegid() != 0: > print "Must be root to setup server" >- return >+ return 1 > > signal.signal(signal.SIGTERM, signal_handler) > signal.signal(signal.SIGINT, signal_handler) >@@ -370,7 +370,7 @@ def main(): > if not bind.check_inst(): > print "--setup-bind was specified but bind is not installed on the system" > print "Please install bind (you may also need the package 'caching-nameserver') and restart the setup program" >- return "-Fatal Error-" >+ return 1 > > # check the hostname is correctly configured, it must be as the kldap > # utilities just use the hostname as returned by gethostbyname to set >@@ -387,7 +387,7 @@ def main(): > verify_fqdn(host_default) > except RuntimeError, e: > logging.error(str(e) + "\n") >- return "-Fatal Error-" >+ return 1 > > host_name = host_default > else: >@@ -404,17 +404,17 @@ def main(): > > # Check we have a public IP that is associated with the hostname > ip = resolve_host(host_name) >- if not ip: >+ if ip is None: > if options.ip_address: > ip = options.ip_address >- if not ip and options.unattended: >+ if ip is None and options.unattended: > print "Unable to resolve IP address for host name" >- return "-Fatal Error-" >+ return 1 > > if not verify_ip_address(ip): > ip = "" > if options.unattended: >- return "-Fatal Error-" >+ return 1 > > if options.ip_address and options.ip_address != ip: > if options.setup_bind: >@@ -423,12 +423,12 @@ def main(): > print "Error: the hostname resolves to an IP address that is different" > print "from the one provided on the command line. Please fix your DNS" > print "or /etc/hosts file and restart the installation." >- return "-Fatal Error-" >+ return 1 > > if options.unattended: > if not ip: > print "Unable to resolve IP address" >- return "-Fatal Error-" >+ return 1 > > if not ip: > ip = read_ip_address(host_name) >@@ -443,7 +443,7 @@ def main(): > if not options.ds_user: > ds_user = read_ds_user() > if ds_user == "": >- return "-Aborted-" >+ return 1 > else: > ds_user = options.ds_user > >@@ -523,7 +523,7 @@ def main(): > except Exception, e: > print "Configuration of client side components failed!" > print "ipa-client-install returned: " + str(e) >- return "-Fatal Error-" >+ return 1 > > print "==============================================================================" > print "Setup complete" >@@ -553,8 +553,7 @@ def main(): > return 0 > > try: >- main() >- sys.exit(0) >+ sys.exit(main()) > except SystemExit, e: > sys.exit(e) > except Exception, e: >-- >1.5.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 447973
: 306415