#7396 ipa-client-automount --uninstall should return errcode CLIENT_NOT_CONFIGURED
Closed: fixed Opened by cheimes.

Request for enhancement

Similair to https://pagure.io/freeipa/issue/7063 and https://github.com/freeipa/freeipa/pull/1536#issuecomment-363937402 the ipa-client-automount script should return a different error code when IPA client is not configured on the system. This would allow ipa-client-install --uninstall and ipa-server-install --uninstall to ignore the error on uninstallation.

Steps to Reproduce

  1. Run ipa-client-automount --uninstall on an unconfigured system

Actual behavior

Script fails with error code 1

Expected behavior

Script should fail with error code 2

Additional info:

The constant is defined in ipaclient.install.client.


Metadata Update from @cheimes:
- Issue priority set to: low

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

Metadata Update from @rcritten:
- Issue assigned to rcritten

https://github.com/freeipa/freeipa/pull/1889

master:

  • a0e846f56c8de3b549d1d284087131da13135e34 Return unique error when automount is already or not configured
  • a0eaa742343de194ecef2ff7c9e3c74e7f35f51f Client install should handle automount unconfigured on uninstall

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

Metadata