vmware / vmware/photon

Updating tdnf to version 3.5.13-3.ph5 causes issue with SSH

Open
#1,616 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

After we had installed photon-hw15-5.0-dde71ec57.x86_64.ova we ran tdnf update to get the OS updated, after that we had issues connecting using SSH or SFTP.
When we try to connect you enter username and password, and the nothing happens for around 30 minutes when you finally get the standard prompt indicating that you have been logged in. This is an issue as most systems will timeout well before that time.
After going through and installing each package one by one, we figured out that the issue happens after the update to tdnf 3.5.13-3.ph5 is installed.
If we edit /etc/nsswitch.conf and remove dns from hosts we are able to login directly, but then it wont be able to lookup any host names unless we add them to /etc/hosts.

Reproduction steps
  1. Install photon-hw15-5.0-dde71ec57.x86_64.ova
  2. Run: tdnf update tdnf --assumeyes
  3. Reboot
  4. SSH to server
    ...
Expected behavior

No delay when after entering password to connect using SSH

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the photon-hw15-5.0-dde71ec57.x86_64.ova reproduction steps and compare SSH/SFTP behavior before and after running tdnf update tdnf --assumeyes. Inspect /etc/nsswitch.conf and the effect of removing dns from hosts, while checking the 30-minute login delay. Done means SSH connects promptly without losing hostname lookup.

Written by the indexing model from the issue text.

Assessment

Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.