Reconfiguring a replication with a target ESXi host that has a disallowed tag, fails with an error.

Problem

When you try to reconfigure a replication with a target ESXi host that is tagged with the vSphereReplication.disallowedHost tag, the process starts but remains at 0 %. After a long time, it fails with an error:
Reconfigure virtual machine replication
...
Unable to complete the reconfiguration task at remote site for replication group 'vm-name' (managed object ID: 'GID-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'): task 'HTID-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'. Details: 'No host can be used to access datastore path '[esxi-host] vm-name.vmdk'.'. Cause: No host can be used to access datastore path '[esxi-host] vm-name.vmdk'.
...

Solution

Remove the vSphereReplication.disallowedHost tag from the target ESXi host and reconfigure the replication.