-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
eksctl aws logging includes bizarre (MISSING) replacements #836
eksctl aws logging includes bizarre (MISSING) replacements #836
Comments
This is a know issue in AWS Go library. |
If someone can check if there is an upstream issue, please post it here and then we can close. Also would be good to check if the v2 client has this same bug or not. |
I tried to find any such issue in their issues by searching for Does AWS use something other than GH issues for issue tracking? As for the v2 question, I'd bet it suffers from the same problem; is the fix for this problem just changing that line from |
I found aws/aws-sdk-go#894 (comment) and realised that this is purely to do with |
I can confirm this is not an AWS SDK issue If one takes the I can trivially reproduce this problem: package main
import (
"github.com/kris-nova/logger"
)
func main() {
// :point_down: as one would receive from the `fmt.Sprintln(args...)`
s := "Action=DescribeStacks&StackName=arn%3Aaws%3Acloudformation%3Aus-west-2%3A"
logger.Level = 1000
logger.Debug(s)
logger.Debug("%s", s)
} cheerfully produces:
So the first style, which is erroneously being used by eksctl, expects a format as its first argument, so I can actually forgive the Anyway, the bug in Please do consider reopening this issue, as it is real and it is localized to eksctl |
Thanks for looking into it, I didn't realise this was due to our custom logger. By the way it's not about colour and unicode, it's just so we have consistent log format. We may need to rework logging, by the way, because we should make functionality accessible as a library (see #813), hence will need to let library consumers to swap out our logger. |
@mdaniel thanks for your detailed analysis, I have raised two PRs (one in upstream and one in eksctl) to address this issue #2084 and krisnova/logger#4 |
Duplicate of #2237 |
In case someone wastes a day on this issue, the problem is printing URLs using the formatting string. Using "%s", url, with the URL as the argument is just fine. |
…d-apiVersions [helm/CSIDriver] Switch to non-deprecated apiVersion
What happened?
Running with
--verbose 5
emits messages containing an unbelievable number of%!!(MISSING)
linesWhat you expected to happen?
The payloads should be logged as they actually are
How to reproduce it?
eksctl create cluster --verbose 5 --config-file $foo
oreksctl get nodegroups --cluster $c --verbose 5
-- basically any non-trivial interaction with AWSAnything else we need to know?
~/.aws/credentials
although with an MFAVersions
Please paste in the output of these commands:
Logs
Action=CreateStack&Capabilities.member.1=CAPABILITY_IAM&StackName=eksctl-eks-prod-nodegroup-p2-xl&Tags.member.1.Key=alpha.eksctl.io%!!(MISSING)F(MISSING)cluster-name&Tags.member.1.Value=eks-prod&Tags.member.2.Key=eksctl.cluster.k8s.io%!!(MISSING)F(MISSING)v1alpha1%!!(MISSING)F(MISSING)cluster-name&Tags.member.2.Value=eks-prod&Tags.member.3.Key=eksctl.io%!!(MISSING)F(MISSING)v1alpha2%!!(MISSING)F(MISSING)nodegroup-name&Tags.member.3.Value=p2-xl&Tags.member.4.Key=project&Tags.member.4.Value=k8s&Tags.member.5.Key=alpha.eksctl.io%!!(MISSING)F(MISSING)nodegroup-name&Tags.member.5.Value=p2-xl&TemplateBody=%!!(MISSING)B(MISSING)%!!(MISSING)A(MISSING)WSTemplateFormatVersion%!A(MISSING)%!!(MISSING)-(MISSING)09-09%!C(MISSING)%!!(MISSING)D(MISSING)escription%!A(MISSING)%!!(MISSING)E(MISSING)KS+nodes+%!!(MISSING)A(MISSING)MI+family%!!(MISSING)A(MISSING)+AmazonLinux2%!!(MISSING)C(MISSING)+SSH+access%!!(MISSING)A(MISSING)+true%!!(MISSING)C(MISSING)+private+networking%!!(MISSING)A(MISSING)+true%!!(MISSING)+(MISSING)%!!(MISSING)B(MISSING)created+and+managed+by+eksctl%!!(MISSING)D(MISSING)%!C(MISSING)%!!(MISSING)R(MISSING)esources%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)E(MISSING)gressInterCluster%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)T(MISSING)ype%!A(MISSING)%!!(MISSING)A(MISSING)WS%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)EC2%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)SecurityGroupEgress%!C(MISSING)%!!(MISSING)P(MISSING)roperties%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)D(MISSING)escription%!A(MISSING)%!!(MISSING)A(MISSING)llow+control+plane+to+communicate+with+worker+nodes+in+group+p2-xl+%!!(MISSING)k(MISSING)ubelet+and+workload+TCP+ports%!C(MISSING)%!!(MISSING)D(MISSING)estinationSecurityGroupId%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)R(MISSING)ef%!A(MISSING)%!!(MISSING)S(MISSING)G%!D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)F(MISSING)romPort%!A(MISSING)1025%!!(MISSING)C(MISSING)%!!(MISSING)G(MISSING)roupId%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)F(MISSING)n%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)ImportValue%!A(MISSING)%!!(MISSING)e(MISSING)ksctl-eks-prod-cluster%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)SecurityGroup%!D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)I(MISSING)pProtocol%!A(MISSING)%!!(MISSING)t(MISSING)cp%!C(MISSING)%!!(MISSING)T(MISSING)oPort%!A(MISSING)65535%!!(MISSING)D(MISSING)%!!(MISSING)D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)E(MISSING)gressInterClusterAPI%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)T(MISSING)ype%!A(MISSING)%!!(MISSING)A(MISSING)WS%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)EC2%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)SecurityGroupEgress%!C(MISSING)%!!(MISSING)P(MISSING)roperties%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)D(MISSING)escription%!A(MISSING)%!!(MISSING)A(MISSING)llow+control+plane+to+communicate+with+worker+nodes+in+group+p2-xl+%!!(MISSING)w(MISSING)orkloads+using+HTTPS+port%!!(MISSING)C(MISSING)+commonly+used+with+extension+API+servers%!C(MISSING)%!!(MISSING)D(MISSING)estinationSecurityGroupId%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)R(MISSING)ef%!A(MISSING)%!!(MISSING)S(MISSING)G%!D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)F(MISSING)romPort%!A(MISSING)443%!!(MISSING)C(MISSING)%!!(MISSING)G(MISSING)roupId%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)F(MISSING)n%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)ImportValue%!A(MISSING)%!!(MISSING)e(MISSING)ksctl-eks-prod-cluster%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)SecurityGroup%!D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)I(MISSING)pProtocol%!A(MISSING)%!!(MISSING)t(MISSING)cp%!C(MISSING)%!!(MISSING)T(MISSING)oPort%!A(MISSING)443%!!(MISSING)D(MISSING)%!!(MISSING)D(MISSING)%!!(MISSING)C(MISSING)%!!(MISSING)I(MISSING)ngressInterCluster%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)T(MISSING)ype%!A(MISSING)%!!(MISSING)A(MISSING)WS%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)EC2%!!(MISSING)A(MISSING)%!!(MISSING)A(MISSING)SecurityGroupIngress%!C(MISSING)%!!(MISSING)P(MISSING)roperties%!A(MISSING)%!!(MISSING)B(MISSING)%!!(MISSING)D(MISSING)escription%!A(MISSING)%!!(MISSING)A(MISSING)llow+worker+nodes+in+group+p2-xl+to+communicate+with+control+plane+%!!(MISSING)k(MISSING)ubelet+and+workload+TCP+ports%!C(MISSING)
and that goes on for pages and pages
The text was updated successfully, but these errors were encountered: