-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LRU subscribers failed to start when no selector was provided #4852
Conversation
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @MarcosDY for this fix! I tested it in my environment and fixed the issue.
It's also good that you removed the debug messages "Updating SVIDs..." that were being logged every 5 seconds and now is logged when it's needed only.
I have only very small suggestions.
subErrCh <- nil | ||
}() | ||
|
||
// Wait until subscribe is created and got a notification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Wait until subscribe is created and got a notification | |
// Wait until subscriber is created and got a notification |
} | ||
|
||
if len(u1.Bundle.X509Authorities()) != 1 { | ||
subErrCh <- fmt.Errorf("a single bundle is expected") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subErrCh <- fmt.Errorf("a single bundle is expected") | |
subErrCh <- fmt.Errorf("a single bundle is expected but got %d", len(u1.Bundle.X509Authorities())) |
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
…#4852) * LRU subscribers failed to start when no selector was provided Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com> Signed-off-by: Faisal Memon <fymemon@yahoo.com>
…#4852) * LRU subscribers failed to start when no selector was provided Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
…#4852) * LRU subscribers failed to start when no selector was provided Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
LRU was failing into no returning notifications when no selector was found on attestation process,
this caused regular healthchecks to fail.
Used this opportunity to no longer add debug logs when no SVID was updated on LRU
Which issue this PR fixes
fixes #4827