#1937 ipa-client-install return code indicates a success, even though it failed
Closed: Fixed None Opened 10 years ago by dpal.

https://bugzilla.redhat.com/show_bug.cgi?id=744024

Description of problem:
Running a ipa-client-install, that fails, has an exit code of 0

> ipa-client-install --domain=abc -p XXX -w XXX  -U
will throw an error:
Unable to find IPA Server to join
Installation failed. Rolling back changes.
IPA client is not configured on this system.

And then 
> echo $?
indicates a zero
as if ipa-client was installed successfully, but looks like this return code is to say that when install failed, it uninstalled successfully....which is not as expected, since I'm checking the status of the client install I just attempted.



Version-Release number of selected component (if applicable):
ipa-client-2.1.1-4.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. run a bad install command like:
ipa-client=install 
or
ipa-client-install --domain=abc -p XXX -w XXX  -U
2. Error is thrown to indicate the client install failed
3. Check exit status 
echo $?

Actual results:
0

Expected results:
1

Additional info:

Metadata Update from @dpal:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.1.2 (bug fixing)

5 years ago

Login to comment on this ticket.

Metadata