#8019 repeated uninstallation of ipa-client-samba crashes
Closed: fixed 4 years ago by frenaud. Opened 4 years ago by fcami.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1732524

Description of problem:
When "ipa-client-samba --uninstall" is uninstalled twice, it crashes

Version-Release number of selected component (if applicable):
freeipa-client-samba-4.8.0-1.fc30.x86_64

How reproducible:
Always

Steps to Reproduce:
1. ipa-client-samba -U
2. ipa-client-samba -U --uninstall
3. ipa-client-samba -U --uninstall

Actual results:
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-samba", line 15, in <module>
    sys.exit(ipa_client_samba.run())
  File
"/usr/lib/python3.7/site-packages/ipaclient/install/ipa_client_samba.py", line
524, in run
    uninstall(fstore, statestore, options)
  File
"/usr/lib/python3.7/site-packages/ipaclient/install/ipa_client_samba.py", line
437, in uninstall
    fstore.restore_file(paths.SMB_CONF)
  File "/usr/lib/python3.7/site-packages/ipalib/install/sysrestore.py", line
201, in restore_file
    raise ValueError("No such file name in the index")
ValueError: No such file name in the index


Expected results:
Samba domain member is not configured yet

Additional info:

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

4 years ago

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

4 years ago

master:

  • 68b8570 ipatests: test multiple invocations of ipa-client-samba --uninstall
  • 5b65551 ipa-client-samba: remove and restore smb.conf only on first uninstall
  • ed6ee90 ipatests: test ipa-client-samba after --uninstall
  • cd2cbae ipa-client-samba: remove state on uninstall

ipa-4-8:

  • b9b9809 ipatests: test multiple invocations of ipa-client-samba --uninstall
  • 256a6a8 ipa-client-samba: remove and restore smb.conf only on first uninstall
  • 00ba2ae ipatests: test ipa-client-samba after --uninstall
  • 551cd68 ipa-client-samba: remove state on uninstall

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

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

4 years ago

master:

  • 074bf28 ipatests: allow to pass additional options for clients installation
  • 3fa7865 ipatests: add utility functions related to using and managing user accounts
  • 1fe69f3 ipatests: modify run_command to allow specify successful return codes
  • 1d033b0 ipatests: refactor and extend tests for IPA-Samba integration

ipa-4-8:

  • c14aa5d ipatests: allow to pass additional options for clients installation
  • 0b62616 ipatests: add utility functions related to using and managing user accounts
  • a45662a ipatests: modify run_command to allow specify successful return codes
  • a4839f6 ipatests: refactor and extend tests for IPA-Samba integration

Login to comment on this ticket.

Metadata