Bug 2520986

Summary: Using inst.rdp and inst.ks options together causes a traceback in gnome_remote_desktop.py
Product: [Fedora] Fedora Reporter: Rowan Puttergill <rowan>
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 45CC: alpha, anaconda-maint, kkoukiou, mkolman, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rowan Puttergill 2026-08-21 13:09:49 UTC
I am testing Fedora Server 45 (Branched) netinst. 
If I use inst.rdp and inst.ks options at the same time, the installer throws the following error:

Traceback (most recent call last):
  File "/usr/lib64/python3.15/site-packages/pyanaconda/gnome_remote_desktop.py", line 169, in _get_hostname_in_thread
  hinfo = socket.gethostbyaddr(ip)
TypeError: gethostbyaddr() argument 1 must be str, bytes or bytearray, not None

The RDP details (e.g. IP address) are not displayed in the console.

RDP still works correctly and getting the IP from the DHCP log, I was able to connect to the installer over RDP and watch the installation continue.

The ks file is loaded and runs correctly and the installation completes.

Reproducible: Always

Steps to Reproduce:
1. Edit kernel command line and add inst.rdp, inst.rdp.username, inst.rdp.password and inst.ks=http://<ip>:<port>/path/to/ks.cfg
2. Hit Ctrl-x
3. Wait for anaconda to boot and load.
4. Expect to see the RDP details to connect to the RDP service.
Actual Results:
Traceback (most recent call last):
  File "/usr/lib64/python3.15/site-packages/pyanaconda/gnome_remote_desktop.py", line 169, in _get_hostname_in_thread
  hinfo = socket.gethostbyaddr(ip)
TypeError: gethostbyaddr() argument 1 must be str, bytes or bytearray, not None

Expected Results:
The error should not display. inst.rdp should be able to get the IP address of the anaconda installer instance and should display the IP address correctly.

Additional Information:
KS config file contains the following:

ang en_GB.UTF-8
keyboard --vckeymap=us --xlayouts='us'

timezone Europe/London
user --name=fedora --password=<mysecret> --plaintext --groups=wheel

ignoredisk --only-use=vda

# Network installation source
#url --url="https://mirror.cov.ukservers.com/fedora/fedora/linux/development/rawhide/Everything/x86_64/os/"
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-45&arch=x86_64"


# Simplified partitioning
bootloader --location=mbr --boot-drive=vda
zerombr
clearpart --all --initlabel
autopart --type=lvm 

# Network configuration
network --bootproto=dhcp --device=enp1s0 --onboot=yes

# Packages
%packages
@core
vim
openssh-server
dracut-live  # Add this line
policycoreutils
kernel-modules-extra
%end

# Enable SSH and allow password authentication
services --enabled=sshd
%post
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
%end

reboot

Comment 1 Rowan Puttergill 2026-08-21 13:37:22 UTC
Okay I edited my ks.cfg and commented out the network line... and this proceeds correctly. So the network configuration in the ks.cfg is causing the issue.