[ipa/server] Change how the check for ipa-replica-install is being done #2281
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ipa"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As found on in https://pagure.io/fedora-infrastructure/issue/12149 the current
method of checking if the ipa-replica-install have to be executed is not
reliable enough.
Let's instead check for log file that is created during the installation. This
will need manual intervention in case the ipa-replica-install needs to be run
again, but it will be much more reliable otherwise.
Signed-off-by: Michal Konecny mkonecny@redhat.com
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/059a07e9cb1e4caa93c8b5c7ad45fd13
Hum... so that file exists after a server install?
But this means this would run on every run... we only want it to run if that file 'doesn't' exist?
Also, thinking about it, perhaps we could also add a prompt:
pause: prompt="Looks like this replica should be reinstalled, are you sure you want to do that?"
Now that I'm looking I should check if the file doesn't exist as it's created by ipa-replica-install. Let me change the logic.
I can add the prompt as well.
1 new commit added
[ipa/server] Add confirmation prompt for ipa-replica-install
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/f0d9550ee3954ba894772c3bfd6cb122
2 new commits added
[ipa/server] Add confirmation prompt for ipa-replica-install
[ipa/server] Change how the check for ipa-replica-install is being done
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/8021ec7e96ff4be4af25611337438ad9
This looks good to me now.
Perhaps we should merge this and run it over staging to make sure all is well there?
I will do it today.
rebased onto
58f8c45973
rebased onto
58f8c45973
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/78bde42d6e4c4f6194ede239a4e63198
Pull-Request has been merged by zlopez
The playbook seems to work OK, I wasn't even prompted as the file I'm checking is already there.
I just saw this error, so I will look at that:
It seems that this is being checked for ipa01 as well, which is wrong as the prompt is actually skipped. I will check what happened and produce a fix.