Skip to content

Commit

Permalink
ipatests: restart ipa services after moving date
Browse files Browse the repository at this point in the history
When system date is moved into future, it have unprecedented
behavior i.e CA becomes irresponsive or unexpected certificcate
state. Hence restart the ipa service after moving the date to
gracefully serve the request.

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

Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
  • Loading branch information
mrizwan93 authored and flo-renaud committed Sep 18, 2023
1 parent 7ddf771 commit 496e3ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipatests/test_integration/test_ipa_cert_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ def expire_certs(self):
# move system date to expire certs
for host in self.master, self.replicas[0]:
tasks.move_date(host, 'stop', '+3years+1days')
host.run_command(
['ipactl', 'restart', '--ignore-service-failures']
)

yield

Expand Down

0 comments on commit 496e3ac

Please sign in to comment.