etcd-io / etcd

Distributed reliable key-value store for the most critical data of a distributed system
https://etcd.io
Apache License 2.0
47.73k stars 9.76k forks source link

Installation: tar command in etcd installation is not working #17278

Open shailesh-vaidya opened 9 months ago

shailesh-vaidya commented 9 months ago

Bug report criteria

What happened?

I am installing etcd by following instructions from https://github.com/etcd-io/etcd/releases/tag/v3.5.11 . tar command from the steps fails with below error

controlplane ~ ➜  tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1
etcd-v3.5.11-linux-amd64/README.md
tar: README.md: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/READMEv2-etcdctl.md
tar: READMEv2-etcdctl.md: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/etcdutl
tar: etcdutl: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/etcdctl
tar: etcdctl: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/Documentation/
etcd-v3.5.11-linux-amd64/Documentation/README.md
tar: Documentation/README.md: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/v3election.swagger.json
tar: Documentation/dev-guide/apispec/swagger/v3election.swagger.json: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/rpc.swagger.json
tar: Documentation/dev-guide/apispec/swagger/rpc.swagger.json: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/v3lock.swagger.json
tar: Documentation/dev-guide/apispec/swagger/v3lock.swagger.json: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/README-etcdutl.md
tar: Documentation/dev-guide/apispec/swagger: Cannot change ownership to uid 528287, gid 89939: Invalid argument
tar: Documentation/dev-guide/apispec: Cannot change ownership to uid 528287, gid 89939: Invalid argument
tar: Documentation/dev-guide: Cannot change ownership to uid 528287, gid 89939: Invalid argument
tar: Documentation: Cannot change ownership to uid 528287, gid 89939: Invalid argument
tar: README-etcdutl.md: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/README-etcdctl.md
tar: README-etcdctl.md: Cannot change ownership to uid 528287, gid 89939: Invalid argument
etcd-v3.5.11-linux-amd64/etcd
tar: etcd: Cannot change ownership to uid 528287, gid 89939: Invalid argument
tar: Exiting with failure status due to previous errors

What did you expect to happen?

Tar command in insalllation Instuctions should be updated to use --no-same-owner . Tar command should be -

tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1 --no-same-owner

Expected output should be -

controlplane ~ ➜  tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1 --no-same-owner
etcd-v3.5.11-linux-amd64/README.md
etcd-v3.5.11-linux-amd64/READMEv2-etcdctl.md
etcd-v3.5.11-linux-amd64/etcdutl
etcd-v3.5.11-linux-amd64/etcdctl
etcd-v3.5.11-linux-amd64/Documentation/
etcd-v3.5.11-linux-amd64/Documentation/README.md
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/v3election.swagger.json
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/rpc.swagger.json
etcd-v3.5.11-linux-amd64/Documentation/dev-guide/apispec/swagger/v3lock.swagger.json
etcd-v3.5.11-linux-amd64/README-etcdutl.md
etcd-v3.5.11-linux-amd64/README-etcdctl.md
etcd-v3.5.11-linux-amd64/etcd

How can we reproduce it (as minimally and precisely as possible)?

Install etcd by following instructions from https://github.com/etcd-io/etcd/releases/tag/v3.5.11

Anything else we need to know?

No response

Etcd version (please run commands below)

```console $ etcd --version # controlplane ~ ➜ etcd --version etcd Version: 3.5.11 Git SHA: 3b252db4f Go Version: go1.20.12 Go OS/Arch: linux/amd64 $ etcdctl version # controlplane ~ ➜ etcdutl version etcdutl version: 3.5.11 API version: 3.5 ```

Etcd configuration (command line flags or environment variables)

# paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

```console $ etcdctl member list -w table # paste output here $ etcdctl --endpoints= endpoint status -w table # paste output here ```

Relevant log output

No response

siyuanfoundation commented 6 months ago

cc @vivekpatani