Static IP at installation time not picked up by photon installer - cannot download kickstart
kevemueller opened this issue · 1 comments
Describe the bug
I have an unusual environment in which I need to kickstart the installer from a network location (http), whereas the network is configured with static IP.
I am booting the official Photon OS 5.0 GA cdrom with the following custom command line parameters:
ks=http://ks-hostname/file
repo=https://packages....
ip=<static-ip>::<gateway>:<netmask>:<hostname>:<nic>:off
nameserver=<ns-ip>
The KS procedure works flawless when networking is setup via DHCP. But with the above settings, the installer bails with not being able to download the ks file.
isoInstaller.py line 128, in _load_ks_config
Exception: HTTPConnectionPool(host='ks-hostname', ...) Max retries exceeded.
Caused by NewConnectionError('<urllib3 .... Failed to establish a new connection: [Errno 101] Network is unreachable'
Networking is properly setup by systemd with the parameters provided on the kernel command line:
systemd-resolve --status
shows the nameserver, systemd-resolve ks-hostname
resolves the IPs of the http server (both IPv4 as well as IPv6), IPv4 and gateway are properly setup based on evidence being able to ping from distant hosts.
Due to the minimal content of the initrd, not much can be done further for diagnosis purposes.
Reproduction steps
- Run the 5.0 GA iso with the above command line
- Observe how the photon-installer tries multiple times to fetch the ks iso from the URL failing with 'Network is unreachable'
Expected behavior
While this is an exotic setup, scripting the installer in a static IP environment should be possible.
Additional context
No response
Sorry, but the problem was elsewhere. Firewall blocked part of the packet flow.
This could be documented better, took me quite some time to piece together the bits.
Closing the issue.