#7478 [F28] ipa-backup fails with "Failed to execute authconfig command"
Closed: fixed Opened by cheimes.

Issue

The ipa-backup command is not compatible with authconfig from authselect-compat. Backup fails with Failed to execute authconfig command. Apparently the --savebackup no longer takes a name or path.

Steps to Reproduce

  1. ipa-server-install
  2. ipa-backup
    3.

Actual behavior

2018-03-29T12:12:59Z DEBUG Starting external process
2018-03-29T12:12:59Z DEBUG args=['/usr/sbin/authconfig', '--savebackup', '/var/lib/ipa/auth_backup']
2018-03-29T12:12:59Z DEBUG Process finished, return code=2
2018-03-29T12:12:59Z DEBUG stdout=
2018-03-29T12:12:59Z DEBUG stderr=usage: authconfig [-h] [--nisdomain <domain>] [--enableldap] [--disableldap]
...
                  [--probe] [--savebackup] [--restorebackup]
...

Expected behavior

no error

Version/Release/Distribution

freeipa-server-4.6.90.pre1.dev201803281352+git70c6da9c5-0.fc28.x86_64
freeipa-client-4.6.90.pre1.dev201803281352+git70c6da9c5-0.fc28.x86_64
package ipa-server is not installed
package ipa-client is not installed
389-ds-base-1.4.0.6-2.fc28.x86_64
pki-ca-10.6.0-0.2.20180327184846.353de17f.fc28.noarch
krb5-server-1.16-17.fc28.x86_64
authselect-compat-0.3.2-1.fc28.x86_64


Metadata Update from @cheimes:
- Issue priority set to: critical
- Issue set to the milestone: FreeIPA 4.7

Metadata Update from @cheimes:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1562044

Backup isn't supported at all:

# authconfig --savebackup
Running authconfig compatibility tool.
IMPORTANT: authconfig is replaced by authselect, please update your scripts.
See Fedora 28 Change Page: https://fedoraproject.org/wiki/Changes/AuthselectAsDefault
See man authselect-migration(7) to help you with migration to authselect
Warning: These options are not supported anymore and have no effect:
  --savebackup
Error: Please, provide --updateall option.

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1760

master:

  • d705320ec136abc2fcf524f2b63a76d3fc0ba97a Temporarily disable authconfig backup and restore

The temporary workaround does the trick. The root cause will be addressed by another PR that replaces authconfig with authselect.

Metadata Update from @cheimes:
- Issue assigned to cheimes
- Issue close_status updated to: fixed

Metadata