#8105 getcert with -F option returns before cacert file is created
Closed: fixed 4 years ago by rcritten. Opened 4 years ago by rcritten.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 8): Bug 1759281

Description of problem:

When getcert is invoked with the -F option, it is supposed to store the CA cert
in a file.

When invoked with the -w option, it will wait until the cert is issued.  But it
will occasionally also return before the CA cert file is written.

This causes issues when trying to invoke certmonger from puppet-certmonger for
instance, because subsequent calls that rely on the existence of that file (to
change its permissions for instance) will fail.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1759281

4 years ago

Metadata Update from @rcritten:
- Issue assigned to rcritten

4 years ago

master:

  • 1e3de17 Add conditional restart (try-restart) capability to services
  • 3593e53 Conditionally restart certmonger after client installation

ipa-4-8:

  • 24e882f Add conditional restart (try-restart) capability to services
  • 6bac58c Conditionally restart certmonger after client installation

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

4 years ago

master:

  • 6739d87 Move wait_for_request() method to tasks.py
  • 9bcc57d Test if getcert creates cacert file with -F option

ipa-4-8:

  • 5d8d919 Move wait_for_request() method to tasks.py
  • 937fb1d Test if getcert creates cacert file with -F option

Metadata Update from @frenaud:
- Custom field test_case adjusted to ipatests/test_integration/test_cert.py::TestInstallMasterClient::test_cacert_file_appear_with_option_F

4 years ago

Login to comment on this ticket.

Metadata