Repository navigation
Direct Download with IPv6 only fails #3047
Copy link
Copy link
Closed
Milestone
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
KVM Agent
CLOUDSTACK VERSION
master / 4.12
CONFIGURATION
Hypervisors are IPv6-only without a default IPv4 route to the internet.
OS / ENVIRONMENT
Ubuntu 18.04
OpenJDK 1.8
root@n03:~# java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
root@n03:~#
SUMMARY
When a hypervisor has no IPv4 default route Direct Download of a template failes.
2018-11-22 14:10:50,281 DEBUG [commons.httpclient.MultiThreadedHttpConnectionManager] (agentRequest-Handler-4:null) (logid:022777d5) HttpConnectionManager.getConnection: config = HostConfiguration[host=http://packer-templates.o.auroraobjects.eu], timeout = 0
2018-11-22 14:10:50,282 DEBUG [commons.httpclient.MultiThreadedHttpConnectionManager] (agentRequest-Handler-4:null) (logid:022777d5) Allocating new connection, hostConfig=HostConfiguration[host=http://packer-templates.o.auroraobjects.eu]
2018-11-22 14:10:50,287 DEBUG [commons.httpclient.HttpConnection] (agentRequest-Handler-4:null) (logid:022777d5) Open connection to packer-templates.o.auroraobjects.eu:80
2018-11-22 14:10:50,322 DEBUG [commons.httpclient.HttpMethodDirector] (agentRequest-Handler-4:null) (logid:022777d5) Closing the connection.
2018-11-22 14:10:50,323 INFO [commons.httpclient.HttpMethodDirector] (agentRequest-Handler-4:null) (logid:022777d5) I/O exception (java.net.ConnectException) caught when processing request: Network is unreachable (connect failed)
2018-11-22 14:10:50,323 DEBUG [commons.httpclient.HttpMethodDirector] (agentRequest-Handler-4:null) (logid:022777d5) Network is unreachable (connect failed)
root@n03:~# ip r
169.254.0.0/16 dev cloud0 proto kernel scope link src 169.254.0.1
172.16.0.0/24 dev cloudbr1 proto kernel scope link src 172.16.0.13
192.168.0.0/24 dev vlan300 proto kernel scope link src 192.168.0.13
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
239.0.7.208 dev vlan300 scope link
root@n03:~#
root@n03:~# ip -6 r
2a00:f10:114::/64 dev enp4s0f1 proto ra metric 1024 pref medium
2a00:f10:114:2000::/64 dev brvx-2000 proto kernel metric 256 expires 2591725sec pref medium
default via fe80::a236:9fff:fe0d:abbe dev enp4s0f1 proto ra metric 1024 mtu 9000 pref medium
default via fe80::9889:27ff:fe04:896e dev brvx-2000 proto ra metric 1024 expires 1525sec hoplimit 64 pref medium
root@n03:~#
The hypervisor is IPv6 capable and the URL is reachable over IPv6 as well, but the hypervisor / KVM Agent fails to download it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
yadvr commentedon Nov 22, 2018
/cc @nvazquez
wido commentedon Nov 22, 2018
That is set to True already in the Agent, so it should use IPv6 as well.
The host can reach the URL without any problems, but it is the Agent which seems to prefer IPv4 over IPv6.
yadvr commentedon Jun 25, 2019
ping @nvazquez can you advise?
nvazquez commentedon Jun 25, 2019
Thanks, @wido for reporting this issue. I'll work on it
yadvr commentedon Jul 4, 2019
Moved to next minor milestone @nvazquez
DaanHoogland commentedon Jan 3, 2020
@nvazquez did #3374 solve this? (can we close this?)
wido commentedon Jan 3, 2020
No, this is not resolved and still on the todo.
It's on the internal todo of PCextreme as well.
DaanHoogland commentedon Jan 3, 2020
ok @wido will it make the next releases, you think?
9 remaining items
sureshanaparti commentedon Dec 16, 2021
Hi @wido Any work done on this one?
wido commentedon Dec 16, 2021
No, not yet.
sureshanaparti commentedon Dec 16, 2021
thanks @wido any plan to work on it.
GabrielBrascher commentedon Jan 6, 2022
@sureshanaparti @nvazquez @wido I opened PR #5826 proposing a fix.
It is as basic as removing the conditional on the
UriUtils.validateUrlwhich throws an exception in the case of IPv6.That code is 10 years old, in "another era" where there was not much IPv6 support.
Nowadays most of the repositories support both IPv4 and IPv6. Including the CloudStack repository, which triggered my main interest in fixing it as soon as possible when I was not able to install the System VM template from the download.cloudstack.org on an IPv6 CloudStack Zone.
sureshanaparti commentedon Jan 28, 2022
Fixed in #5900