log.Warningf("Error signing %q: failed to move zone file into place: %s",s.origin,err)
log.Warningf("Error signing %q: failed to move zone file into place: %s",s.origin,err)
return
return
}
}
log.Infof("Successfully signed zone %q in %q with key tags %q and %d SOA serial, elapsed %f, next: %s",s.origin,filepath.Join(s.directory,s.signedfile),keyTag(s.keys),z.Apex.SOA.Serial,time.Since(now).Seconds(),now.Add(DurationRefreshHours).Format(timeFmt))
log.Infof("Successfully signed zone %q in %q with key tags %q and %d SOA serial, elapsed %f, next: %s",s.origin,filepath.Join(s.directory,s.signedfile),keyTag(s.keys),z.Apex.SOA.Serial,time.Since(now).Seconds(),now.Add(durationRefreshHours).Format(timeFmt))
}
}
// refresh checks every val if some zones need to be resigned.
// refresh checks every val if some zones need to be resigned.
...
@@ -202,8 +203,8 @@ func (s *Signer) refresh(val time.Duration) {
...
@@ -202,8 +203,8 @@ func (s *Signer) refresh(val time.Duration) {
// need to figure out how to handle the versions and nounces exactly.
log.Debugf("Cluster discovery processed with %d resources, version %q and nonce %q, clusters: %v",len(resp.GetResources()),c.Version(cdsURL),c.Nonce(cdsURL),a.clusters())
// set our local administration and ack the reply. Empty version would signal NACK.
log.Debugf("Endpoint discovery processed with %d resources",len(resp.GetResources()))
log.Debugf("Endpoint discovery processed with %d resources, version %q and nonce %q, clusters: %v",len(resp.GetResources()),c.Version(edsURL),c.Nonce(edsURL),c.assignments.clusters())
// set our local administration and ack the reply. Empty version would signal NACK.
c.SetNonce(edsURL,resp.GetNonce())
c.SetVersion(edsURL,resp.GetVersionInfo())
default:
default:
returnfmt.Errorf("unknown response URL for discovery: %q",resp.GetTypeUrl())
returnfmt.Errorf("unknown response URL for discovery: %q",resp.GetTypeUrl())