#8891 FreeIPA server in debug mode fails to run because time.perf_counter_ns is Python 3.7+
Closed: fixed by rcritten. Opened by fcami.

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

Description of problem:
When running the IPA server in debug mode, I am seeing "Internal Server Error"
messages when running IPA commands.
ipa: ERROR: cannot connect to 'https://ipa-server-hostname/ipa/session/json':
Internal Server Error
Looking at the logs:
module 'time' has no attribute 'perf_counter_ns'
Version-Release number of selected component (if applicable):
ipa-server-4.9.3-1.module+el8.5.0+10565+ae980a94.x86_64
How reproducible:
always
Steps to Reproduce:
1.  ipa-server-install
2.  echo -e '[global]\ndebug=True' >> /etc/ipa/server.conf
3.  systemctl restart httpd
4.  ipa user-find
Actual results:
Internal Server Error
Expected results:
list users
Additional info:

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

Metadata Update from @fcami:
- Issue assigned to fcami

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

master:

  • 675b5d2f0519af68e3455075b39b7c5e2897cc07 paths: add IPA_SERVER_CONF
  • 69497f4a026ab0689f6276f6695ca14cdc7164d1 ipatests: smoke test for server debug mode.
  • 06791db5fad62f32ddc3641f40997c1035a86f96 rpcserver.py: perf_counter_ns is Python 3.7+

ipa-4-9:

  • e713c227bb420a841ce3ae146bca55a84a1b0dbf paths: add IPA_SERVER_CONF
  • ee4be290e1583834a573c3896ee1d97b3fbb6c24 ipatests: smoke test for server debug mode.
  • 1539c7383116647ad9c5b125b343f972e9c9653b rpcserver.py: perf_counter_ns is Python 3.7+

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

Metadata