eks-anywhere-build-tooling icon indicating copy to clipboard operation
eks-anywhere-build-tooling copied to clipboard

Failed to download GOSS when building image using proxy configuration

Open rimaulana opened this issue 2 months ago • 0 comments

What happened: When creating a node image using image-builder with proxy configuration in isolated subnet, vsphere-iso.vsphere was not able to download GOSS

==> vsphere-iso.vsphere: Provisioning with Goss
==> vsphere-iso.vsphere: Configured to run on Linux
    vsphere-iso.vsphere: Creating directory: /tmp/goss
    vsphere-iso.vsphere: Installing Goss from, https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
    vsphere-iso.vsphere: Downloading Goss to /tmp/goss-0.3.16-linux-amd64
==> vsphere-iso.vsphere:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
==> vsphere-iso.vsphere:                                  Dload  Upload   Total   Spent    Left  Speed
==> vsphere-iso.vsphere:   0     0    0     0    0     0      0      0 --:--:--  0:02:08 --:--:--     0curl: (7) Failed to connect to github.com port 443: Connection timed out
==> vsphere-iso.vsphere: --2024-04-28 11:06:39--  https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
==> vsphere-iso.vsphere: Resolving github.com (github.com)... 140.82.113.3
==> vsphere-iso.vsphere: Connecting to github.com (github.com)|140.82.113.3|:443... failed: Connection timed out.
==> vsphere-iso.vsphere: Retrying.
==> vsphere-iso.vsphere:
==> vsphere-iso.vsphere: --2024-04-28 11:08:51--  (try: 2)  https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
<----REDACTED---->
==> vsphere-iso.vsphere: Connecting to github.com (github.com)|140.82.113.3|:443... failed: Connection timed out.
==> vsphere-iso.vsphere: Retrying.
==> vsphere-iso.vsphere:
==> vsphere-iso.vsphere: --2024-04-28 11:50:14--  (try:20)  https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
==> vsphere-iso.vsphere: Connecting to github.com (github.com)|140.82.113.3|:443... failed: Connection timed out.
==> vsphere-iso.vsphere: Giving up.
==> vsphere-iso.vsphere:
==> vsphere-iso.vsphere: Uploading goss tests...

What you expected to happen: vsphere-iso.vsphere process uses proxy configuration defined in vsphere.json to dowload GOSS from github.

How to reproduce it (as minimally and precisely as possible): vsphere.json needs to have the following fields

{
 <----REDACTED---->
  "network": "This should be a stub network that doesn't have outbound internet connectivity",
 <----REDACTED---->
  "http_proxy": "http://PROXY_IP_ADDR:PROXY_PORT",
  "https_proxy": "http://PROXY_IP_ADDR:PROXY_PORT",
  "no_proxy": "VCENTER_IP,ADMIN_MACHINE_IP, localhost, 127.0.0.1",
  "extra_rpms": "wget"
}

Anything else we need to know?: I tried this for both RHEL and Ubuntu image and both process had the same issue. This doesn't make the whole process failed but it will timeout on the GOSS download but still eventually the ova produced is a valid OVA. However the time it takes to build the image is approximately 1 hour

Environment:

  • EKS Anywhere Release:
  • EKS Distro Release:

rimaulana avatar Apr 29 '24 17:04 rimaulana