Files
7d7735a21622ded09e1064fcdecb981009b3927b
Riccardo Pittau
7d7735a216
Fix API URL reachability test to use full URL with port
The _test_ip_reachability method was only using the hostname/IP address when testing reachability, ignoring the port number from the API URL. This caused LookupAgentIPError when the Ironic API was running on a non-standard port (e.g., 6385). This change modifies _test_ip_reachability to: - Accept the full API URL instead of just an IP address - Use the complete URL (including protocol and port) when testing The _find_routable_addr method now passes the full api_url to _test_ip_reachability instead of just the hostname, ensuring the port is included in reachability tests. Assisted-By: Claude Sonnet 4.5 Change-Id: Ibb407255cfcd5cf9617f040338561fd494e8b41f Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>