#7469 ipa-replica-prepare fail with "stat: path should be string, bytes, os.PathLike or integer, not NoneType"
Closed: fixed Opened by fbarreto.

Issue

ipa-replica-prepare fails with the error:

[ipatests.pytest_plugins.integration.host.Host.master.ParamikoTransport] RUN ['ipa-replica-prepare', '-p', 'Secret.123', 'replica0.ipa.test', '--ip-address', '192.168.121.206']
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] RUN ['ipa-replica-prepare', '-p', 'Secret.123', 'replica0.ipa.test', '--ip-address', '192.168.121.206']
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] Do you want to search for missing reverse zones? [yes]: 
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] Preparing replica for replica0.ipa.test from master.ipa.test
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] Creating SSL certificate for the Directory Server
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] stat: path should be string, bytes, os.PathLike or integer, not NoneType
[ipatests.pytest_plugins.integration.host.Host.master.cmd32] The ipa-replica-prepare command failed.

The error showed up on this test:
https://fedorapeople.org/groups/freeipa/prci/jobs/9ec034ec-3178-11e8-80de-fa163e66cd89/report.html
You can see the whole log here:
https://fedorapeople.org/groups/freeipa/prci/jobs/9ec034ec-3178-11e8-80de-fa163e66cd89/-TestReplicaManageDel--test_replica_managed_del_domlevel0/

Steps to Reproduce

  1. install ipa server on domain level 0
  2. run ipa-replica-prepare

Expected behavior

It should succeed.

Version/Release/Distribution

Git master (latest commit: b0d8c6c21198e8b0a9604e9ee01c422a6c550c91)


ipa-replica-prepare eats stack traces. Here is what pdb says:

/usr/lib/python3.6/site-packages/ipaserver/install/certs.py(578)create_from_cacert()
-> if os.path.isfile(self.certdb_fname):
(Pdb) n
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
/usr/lib/python3.6/site-packages/ipaserver/install/certs.py(578)create_from_cacert()
-> if os.path.isfile(self.certdb_fname):
(Pdb) pp self.certdb_fname
None

Metadata Update from @rcritten:
- Issue assigned to rcritten

Metadata Update from @rcritten:
- Issue priority set to: important
- Issue set to the milestone: FreeIPA 4.7

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

The PR fixes the problem that this ticket describes. test_topology::TestReplicaManageDel::test_replica_managed_del_domlevel0 is now failing for other reasons (DNS-related)

master:

  • 573f13228da7d711d3b22fa7f78f4a78e199288b Fix certificate retrieval in ipa-replica-prepare for DL0

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

master:

  • 2a58fe6a3231f070dc979ab64a1deb10b8f085fd Revert "Validate the Directory Manager password"

ipa-4-6:

  • 3da2124fa6a7fd4fb5308e56cc7f75bb125bb75d Revert "Validate the Directory Manager password"
Metadata