Repository navigation
Direct Download with IPv6 only fails #3047
Description
Activity
/cc @nvazquez
java.net.preferIPv6AddressesThat is set to True already in the Agent, so it should use IPv6 as well.
packer-templates.o.auroraobjects.eu is an alias for o.auroraobjects.eu. o.auroraobjects.eu has address 185.107.215.161 o.auroraobjects.eu has IPv6 address 2a05:1500:ff01:7::161root@n03:~# curl -I http://packer-templates.o.auroraobjects.eu/ubuntu1604-20G.qcow2 HTTP/1.1 200 OK Bucket: packer-templates x-amz-request-id: tx000000000000002883202-005bf6c446-26cf361-ams02 Date: Thu, 22 Nov 2018 14:59:18 GMT Content-Length: 687472640 Last-Modified: Sun, 18 Nov 2018 04:51:48 GMT ETag: "c0d732368be84093e92ca1727571d2b9-44" x-amz-meta-s3cmd-attrs: atime:1542516274/ctime:1542516454/gid:999/gname:gitlab-runner/md5:ed9b4b7d8f2960b19057e49bc8a196b5/mode:33188/mtime:1542516454/uid:999/uname:gitlab-runner Content-Type: application/octet-stream Age: 1 Server: AuroraObjects X-Cache-Hit: Yes X-Cache-Hits: 1 Accept-Ranges: bytes Connection: keep-alive root@n03:~#The host can reach the URL without any problems, but it is the Agent which seems to prefer IPv4 over IPv6.
ping @nvazquez can you advise?
Thanks, @wido for reporting this issue. I'll work on it
Moved to next minor milestone @nvazquez
No, this is not resolved and still on the todo.
It's on the internal todo of PCextreme as well.
ok @wido will it make the next releases, you think?
9 remaining items
Not sure yet. We will try.
Hi @wido Any work done on this one?
Not sure yet. We will try.
Hi @wido Any work done on this one?
No, not yet.
thanks @wido any plan to work on it.
@sureshanaparti @nvazquez @wido I opened PR #5826 proposing a fix.
It is as basic as removing the conditional on theUriUtils.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.
Reacted by Suresh Kumar Anaparti- linked a pull request that will close this issueAllow direct download templates from IPv6 host address. #5900
on Jan 26, 2022 Fixed in #5900
- Repository owner moved this from Ready For Review to Done in Apache CloudStack 4.16.1
on Jan 28, 2022
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Hypervisors are IPv6-only without a default IPv4 route to the internet.
OS / ENVIRONMENT
Ubuntu 18.04
OpenJDK 1.8
SUMMARY
When a hypervisor has no IPv4 default route Direct Download of a template failes.
The hypervisor is IPv6 capable and the URL is reachable over IPv6 as well, but the hypervisor / KVM Agent fails to download it.