datastax / diagnostic-collection

Diagnostic Collector for Apache Cassandra
Apache License 2.0
28 stars 35 forks source link

k8s line endings have CR #125

Closed mieslep closed 2 years ago

mieslep commented 2 years ago

In determining the cluster name, it was discovered that a rogue \r was getting appended. Root cause:


Defaulted container "cassandra" out of: cassandra, server-system-logger, server-config-init (init)
cassandra@cluster1-dc1-default-sts-0:/$ nodetool -h 127.0.0.1 -p 7199   describecluster > /tmp/d.out
cassandra@cluster1-dc1-default-sts-0:/$ exit
phil.miesle@cc-dc-mck:~/collector/collector$ kubectl -n cass-operator cp cluster1-dc1-default-sts-0:tmp/d.out d.out
Defaulted container "cassandra" out of: cassandra, server-system-logger, server-config-init (init)
phil.miesle@cc-dc-mck:~/collector/collector$ file d.out
d.out: ASCII text
phil.miesle@cc-dc-mck:~/collector/collector$ kubectl -n cass-operator exec -ti cluster1-dc1-default-sts-0 -- /bin/bash -c 'nodetool -h 127.0.0.1 -p 7199   describecluster' > d2.out
Defaulted container "cassandra" out of: cassandra, server-system-logger, server-config-init (init)
phil.miesle@cc-dc-mck:~/collector/collector$ file d2.out
d2.out: ASCII text, with CRLF line terminators```
michaelsembwever commented 2 years ago

https://github.com/datastax/diagnostic-collection/pull/126