Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipaclient_setup_automount with new install states #1208

Merged

Conversation

t-woerner
Copy link
Member

This is "Fix ipa-client-automount install/uninstall with new install states" freeipa/freeipa#7100 for ansible-freeipa:

Issue 8384 introduced a new installation state for the statestore to identify when client/server installation is completely finished rather than relying on has_files().

The problem is that ipa-client-automount may be called during ipa-client-install and since installation is not complete at that point the automount install was failing with "IPA client not configured".

Add a new state, 'automount', to designate that automount installation is in process. If check_client_configuration() fails it checks to see if [installation] automount is True. If so it continues with the installation.

This also addresses an issue where the filestore and statestore are shared between the client and automount installers but the client wasn't refreshing state after automount completed. This resulted in an incomplete state and index file of backed-up files which caused files to not be restored on uninstall and the state file to be orphaned.

Fixes: https://pagure.io/freeipa/issue/9487

@t-woerner t-woerner force-pushed the ipaclient_automount_with_new_install_states branch from a8a5097 to f7caaff Compare February 7, 2024 13:35
This is "Fix ipa-client-automount install/uninstall with new install
states" freeipa/freeipa#7100 for ansible-freeipa:

Issue 8384 introduced a new installation state for the statestore
to identify when client/server installation is completely finished
rather than relying on has_files().

The problem is that ipa-client-automount may be called during
ipa-client-install and since installation is not complete at that
point the automount install was failing with "IPA client not
configured".

Add a new state, 'automount', to designate that automount installation
is in process. If check_client_configuration() fails it checks to
see if [installation] automount is True. If so it continues with the
installation.

This also addresses an issue where the filestore and statestore are
shared between the client and automount installers but the client
wasn't refreshing state after automount completed. This resulted in
an incomplete state and index file of backed-up files which caused
files to not be restored on uninstall and the state file to be
orphaned.

Fixes: https://pagure.io/freeipa/issue/9487
The returned changed state was always True. changed is now only True if
automount_location is set and configure_automount was called.
@t-woerner t-woerner force-pushed the ipaclient_automount_with_new_install_states branch from f7caaff to 0d1f8b5 Compare February 7, 2024 13:41
@t-woerner t-woerner added this to the 1.12.2 milestone Feb 7, 2024
Copy link
Member

@rjeffman rjeffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@rjeffman rjeffman merged commit 249eab6 into freeipa:master Feb 7, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants