hashicorp / hcdiag

hcdiag is a CLI utility that collects and bundles product and platform diagnostics. It supports Consul, Nomad, TFE, and Vault.
Mozilla Public License 2.0
56 stars 8 forks source link

hcdiag v0.5.0-rc1 not backward compatible with Ubuntu 20.04.5 LTS #311

Closed MikaelHashiCorp closed 1 year ago

MikaelHashiCorp commented 1 year ago

What is the bug?
When I run the hcdiag v0.5.0-rc1 version command, I get the following error:

ubuntu@ip-172-31-30-8:~/hcd-uat$ ./hcdiag -version

./hcdiag: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./hcdiag)
./hcdiag: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./hcdiag)

What version are you using?
hcdiag v0.5.0-rc1

Which HashiCorp products does this affect?
hcdiag

When does the error occur?

  1. Spin up an instance of Ubuntu 20.04.5 LTS.
  2. Log into the OS.
  3. Download hcdiag_0.5.0-rc1_linux_amd64.zip.
curl  https://releases.hashicorp.com/hcdiag/0.5.0-rc1/hcdiag_0.5.0-rc1_linux_amd64.zip -o hcdiag_0.5.0-rc1.zip
  1. Unzip hcdiag_0.5.0-rc1_linux_amd64.zip.
unzip hcdiag_0.5.0-rc1.zip
  1. Run hcdiag version command:
./hcdiag -version

What is the expected behavior?
The current version of hcdiag would display as output.

Is there a workaround?
No. RE: How do I update GLIBC in ubuntu? _"How do I update it to 2.32?

Ideally, you don't. glibc is the most central library on the system. Basically everything depends on it. If something goes wrong during the update or if there is an unexpected incompatibility, the whole system breaks and you won't even be able to use the most basic tools to fix it."_

How does this impact you?
I am unable to run user acceptance tests (UAT) on hcdiag v0.5.0-rc1.

Are there any deadlines?
Yes, "Tuesday, January 31st at the latest. " - Alicia Clark

Is there any additional context?
Maybe. We have customers running many versions of Ubuntu, RedHat, Amazon Linux, besides others. Backward compatibility should be checked on most OS's our customers use. I have not checked any other OS's, as that would take longer than the next 24 hours left of the allotted time for UAT.

MikaelHashiCorp commented 1 year ago

Tested new version of hcdiag, hcdiag v0.5.0-rc2. It fixed the issue:

ubuntu@ip-172-31-30-8:~/hcd-uat$ lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

ubuntu@ip-172-31-30-8:~/hcd-uat$ hcdiag -version

hcdiag v0.5.0-rc2 (b75cf02), built Mon Jan 30 21:58:11 UTC 2023