#7063 Uninstall on IPA-not-installed system prints user-confusing strings
Opened 2 years ago by stlaz. Modified 10 months ago

SSIA

Steps to reproduce
1. don't install IPA on a machine
2. run ipa-server-install --uninstall -U

Expected outcome:
Server prints "IPA is not installed" or whatever it did before.

Actual outcome:
See below.

# sudo ipa-server-install --uninstall -U
WARNING:
IPA server is not configured on this system. If you want to install the
IPA server, please install it using 'ipa-server-install'.
ipa.ipapython.install.cli.uninstall_tool(CompatServerMasterInstall): ERROR    'Env' object has no attribute 'basedn'
ipa.ipapython.install.cli.uninstall_tool(CompatServerMasterInstall): ERROR    The ipa-server-install command failed. See /var/log/ipaserver-uninstall.log for more information

Metadata Update from @stlaz:
- Issue assigned to tdudlak
- Issue priority set to: critical
- Issue tagged with: bug, regression

2 years ago

Sorry @stlaz but it is not in my power to fix this issue in short time period. It is caused by non existing default values which uninstallers rely on.

There are some attempts.

We could revert these commits (PR#492) or try to get IPA log levels into some tolerable state.

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6

2 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.1 (was: FreeIPA 4.6)

2 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)

2 years ago

Metadata Update from @tdudlak:
- Issue set to the milestone: FreeIPA 4.6.3 (was: FreeIPA 4.6.2)

a year ago

Master is still affected, see https://pagure.io/freeipa/issue/7348 for a full traceback.

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.6.3)

a year ago

FreeIPA 4.6.3 has been released, moving to FreeIPA 4.6.4 milestone

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

a year ago

PR 1536 addresses some issues. Felipe rightfully complains that multiple uninstallation still prints too much junk on stderr.

https://github.com/freeipa/freeipa/pull/1536#issuecomment-365910034

[root@master rpms]# ipa-server-install --uninstall -U
...
[root@master rpms]# ipa-server-install --uninstall -U
WARNING:
IPA server is not configured on this system. If you want to install the
IPA server, please install it using 'ipa-server-install'.

WARNING: Failed to connect to Directory Server to find information about
replication agreements. Uninstallation will continue despite the possible
existing replication agreements.

If this server is the last instance of CA,
KRA, or DNSSEC master, uninstallation may result in data loss.
Shutting down all IPA services
Configuring certmonger to stop tracking system certificates for KRA
Configuring certmonger to stop tracking system certificates for CA
Removing IPA client configuration
IPA client is not configured on this system.
The ipa-client-install command failed. See /var/log/ipaclient-uninstall.log for more information

master:

  • 0cc2a6c Fix multiple uninstallation of server

ipa-4-6:

  • 8ceeb88 Fix multiple uninstallation of server

Metadata Update from @tdudlak:
- Assignee reset

a year ago

Ticket 7437 is closed as notabug.

This is how it looked before switching to the installer framework:

# ipa-server-install --uninstall -U
Shutting down all IPA services
Removing IPA client configuration
Unconfiguring ntpd
Unconfiguring CA directory server
Unconfiguring CA
Unconfiguring web server
Unconfiguring krb5kdc
Unconfiguring kadmin
Unconfiguring directory server
Unconfiguring ipa_memcached
# ipa-server-install --uninstall -U
Shutting down all IPA services
Removing IPA client configuration

Metadata Update from @rcritten:
- Issue assigned to rcritten

a year ago

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.6.4)

10 months ago

Login to comment on this ticket.

Metadata