Bug 2520986 - Using inst.rdp and inst.ks options together causes a traceback in gnome_remote_desktop.py
Summary: Using inst.rdp and inst.ks options together causes a traceback in gnome_remot...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 45
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Kolman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-21 13:09 UTC by Rowan Puttergill
Modified: 2026-08-21 13:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.