[Freeipa-devel] [freeipa PR#25] Added install check before executing ipa-* command (comment)

tomaskrizek freeipa-github-notification at redhat.com
Tue Aug 30 07:15:23 UTC 2016


tomaskrizek commented on a pull request

"""
The following commands still fail with incorrect error message:
  - `ipa trust-find`
  - `ipa-compat-manage`
  - `ipa-csreplica-manage list`
  - `ipa-join`
  - `ipa-ldap-updater`
  - `ipa-replica-install`
  - `ipa-restore`

Details:
```
[root at master vagrant]# ipa trust-find
ipa: ERROR: cannot connect to 'http://localhost:8888/ipa/json': [Errno 111] Connection refused
[root at master vagrant]# ipa-compat-manage
An IPA server to update cannot be found. Has one been configured yet?
The error was: IPA realm not found in DNS, in the config file (/etc/ipa/default.conf) or on the command line.
[root at master vagrant]# ipa-csreplica-manage list
Directory Manager password: 

unexpected error: cannot connect to 'ldap://localhost:389': 
[root at master vagrant]# ipa-join
cannot open configuration file /etc/ipa/default.conf
Unable to determine IPA server from /etc/ipa/default.conf
[root at master vagrant]# ipa-ldap-updater
To execute overall IPA upgrade please use 'ipa-server-upgrade' command
No update files or schema file were specified
The ipa-ldap-updater command failed. See /var/log/ipaupgrade.log for more information
[root at master vagrant]# ipa-replica-install 
Configuring client side components
One of password / principal / keytab is required.
Installation failed. Rolling back changes.
IPA client is not configured on this system.
Removing client side components
IPA client is not configured on this system.

Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

ipa.ipapython.install.cli.install_tool(Replica): ERROR    Configuration of client side components failed!
ipa.ipapython.install.cli.install_tool(Replica): ERROR    The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
[root at master vagrant]# ipa-restore 
Usage: ipa-restore [options] backup

ipa-restore: error: must provide the backup to restore
The ipa-restore command failed. See /var/log/iparestore.log for more information
```
"""

See the full comment at https://github.com/freeipa/freeipa/pull/25#issuecomment-243353391


More information about the Freeipa-devel mailing list