Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to download GOSS when building image using proxy configuration #3126

Open
rimaulana opened this issue Apr 29, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@rimaulana
Copy link

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 rimaulana added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant