diff options
author | Rob Austein <sra@hactrn.net> | 2012-05-05 23:47:24 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-05-05 23:47:24 +0000 |
commit | 636e3c590c96e0f0ab0c95a6982a5056e2cea9fd (patch) | |
tree | 23db3d7c8c7c99c816486a2e00b7b20098ec67d0 | |
parent | e21f7a6a8489db5be384f7721f45fe28223ea123 (diff) |
Debugging code to say why we're failing to issue. See #247.
svn path=/branches/tk33/; revision=4471
-rw-r--r-- | rpkid/rpki/up_down.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rpkid/rpki/up_down.py b/rpkid/rpki/up_down.py index 0eba6b52..4fd06edd 100644 --- a/rpkid/rpki/up_down.py +++ b/rpkid/rpki/up_down.py @@ -251,14 +251,18 @@ class list_pdu(base_elt): r_msg.payload = list_response_pdu() - if irdb_resources.valid_until > rpki.sundial.now(): + if irdb_resources.valid_until < rpki.sundial.now(): + rpki.log.debug("Child %s's resources expired %s" % child.child_handle, irdb_resources.valid_until) + else: for parent in child.parents: for ca in parent.cas: ca_detail = ca.active_ca_detail if not ca_detail: + rpki.log.debug("No active ca_detail, can't issue to %s" % child.child_handle) continue resources = ca_detail.latest_ca_cert.get_3779resources().intersection(irdb_resources) if resources.empty(): + rpki.log.debug("No overlap between received resources and what child %s should get ([%s], [%s])" % (child.child_handle, ca_detail.latest_ca_cert.get_3779resources(), irdb_resources)) continue rc = class_elt() rc.class_name = str(ca.ca_id) |