#7469 ipa-replica-prepare fail with "stat: path should be string, bytes, os.PathLike or integer, not NoneType"
Closed: fixed 5 years ago Opened 6 years ago 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: b0d8c6c)


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

6 years ago

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

6 years ago

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

5 years ago

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:

  • 573f132 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)

5 years ago

master:

  • 2a58fe6 Revert "Validate the Directory Manager password"

ipa-4-6:

  • 3da2124 Revert "Validate the Directory Manager password"

Login to comment on this ticket.

Metadata