#7524 ipa-client-install fails because of missing file /usr/share/ipa/freeipa.template
Closed: fixed 2 years ago Opened 2 years ago by frenaud.

Issue

Configuration of IPA client fails with the following error:

2018-05-02T15:14:34Z DEBUG The ipa-client-install command failed, exception: FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ipa/freeipa.template'
2018-05-02T15:14:34Z ERROR [Errno 2] No such file or directory: '/usr/share/ipa/freeipa.template'
2018-05-02T15:14:34Z ERROR The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information

The file /usr/share/ipa/freeipa.template is required for client installation but is provided by freeipa-server-common package and may be missing on a system where only the client packages are installed.
This is a regression introduced with commit 792adeb on the master branch.

Steps to Reproduce

  1. install ipa client packages (and not the server packages): dnf install freeipa-client
  2. configure the client with ipa-client-install

Actual behavior

ipa-client-install fails with the following message:

  File "/usr/lib/python3.6/site-packages/ipapython/install/common.py", line 65, in _install
    for unused in self._installer(self.parent):
  File "/usr/lib/python3.6/site-packages/ipaclient/install/client.py", line 3677, in main
    install(self)
  File "/usr/lib/python3.6/site-packages/ipaclient/install/client.py", line 2442, in install
    _install(options)
  File "/usr/lib/python3.6/site-packages/ipaclient/install/client.py", line 2522, in _install
    force=options.force)
  File "/usr/lib/python3.6/site-packages/ipaclient/install/client.py", line 647, in configure_krb5_conf
    shutil.copy(template, paths.KRB5_FREEIPA)
  File "/usr/lib64/python3.6/shutil.py", line 241, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib64/python3.6/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:

2018-05-02T15:14:34Z DEBUG The ipa-client-install command failed, exception: FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ipa/freeipa.template'
2018-05-02T15:14:34Z ERROR [Errno 2] No such file or directory: '/usr/share/ipa/freeipa.template'
2018-05-02T15:14:34Z ERROR The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information

Expected behavior

ipa-client-install should successfully exit.


Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.7

2 years ago

Setting milestone to 4.7 as this issue was present only on the master branch (commit 792adeb on the master branch).

master:

  • ce3819c Move krb5 snippet into freeipa-client-common

Login to comment on this ticket.

Metadata