nmstate / kubernetes-nmstate

Declarative node network configuration driven through Kubernetes API.
GNU General Public License v2.0
187 stars 90 forks source link

NNCE encodedMessage cannot be decompressed with standard linux utilities #931

Closed rhrazdil closed 2 years ago

rhrazdil commented 2 years ago

What happened:

cat <<EOF | base64 -d >> compressedMessage
7F3/j6M4lv89f4U1v1CthAQIIQm6Oc3e7uxqdNrWajRzq9NpFDnwSKxybGRMfVGr/veTDSSQQJKqUHSlJj09amIbf957/uBnm4cNQnCBBAScBYQStkJfeQhfQT5ycf9XziKySgWWhLN/cUqCZ4QlCiEhAkKUSCwB4Timzz4a9FCECYUQSY7gCYJUAmIbXSaQFCUgkWkybgZ8syHqWpIN8FQid2b5yIAnInWNaYJsAxkGMkZpIkaULEfxs1xzNh56o4RIMGMc3OMVJKNd9aXLYfzsj8dTH/2egPg3FoywlfqhdDMSkAYiCQohFhBgCeEApQkgQ2thIMISCTgc9hB6zG5Nhuri7odXVvDDl55jObZpO6blIdv1J67veAPP9ZDgXKLiz99+/q/f/6EuvmYKoAcQCeHMR/bQHloNlUwbKvmLEkLJmTVR1kI++mYQJkFEOIDE8NH/fTNI/OAaKgOHoYBkm2r4yLDnztD2ZkNraBsDZMQCIvJkUmAruTZ85LgvfwyQAQwvKYSGj34TKQyQobHU/XiZAJPGywAZDG90Esi1rmtbJo3VT/kcF9kgGEjj5Y+Xeo1njWbLmPpPzPAKRGE9ZA/Hk6FdX9fcbrJe8swChAOp7f8rSEHgISM4gRAF+mnwUSGturCUiYWE8P2h7BNQTptaRYSRZN2INW5TrRNYkwasXwpKb6sbZqLzlIVD9E8QK/UkyDWgLfsRYREXG92fDVvBszvGcy7Em1rzk3iUqx5OPZwoZfeMPzKEWYgeCaVoCYisGFfdf5iKQgDV4g8a9c2gMmXU6gz3tzWgIBUCmESCK1f1zZCqQzOJ6tKciTtARgiJJExXr3qpKLQt33Fd358FrjWynZnqwxg8SXPNY3PbCKpsgCmZwdieu/Pp3B1XCu66XMP3Vc5GPSeB4SPbctwXtMY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b3Dyjcb+Bw/ySJ+ydZ3D9N4/4RHvdPE7l/LpP7x6ncP8HlfkHmfpnN/TKdUcZn87ArPGB4meINHK8heb/K8n5G8/4BofsZ0WsyTlC9X+J6z/j/AAAA//8=
EOF

cat compressedMessage | base64 -d | gzip

What you expected to happen: We should be able to decompress the content with a standardized utility

qinqon commented 2 years ago

Isn't this suppose to be just base64 ?

phoracek commented 2 years ago

base64 of the whole log takes 3 screens of space and is unwieldy in the NNCE. If we want to keep the whole traceback there and not only in the log, it should not be too distracting - with compression, it becomes okish to keep space-wise

tompsota commented 2 years ago

/assign @tompsota