Image upload does not start when HTTP Proxy is configured

  • Related issues: #2436 [BUG] Image upload does not start when HTTP Proxy is configured
  • Related issues: #2524 [backport v1.0] [BUG] Image upload does not start when HTTP Proxy is configured

Category:

  • Image

Verification Steps

  1. Clone ipxe-example vagrant project https://github.com/harvester/ipxe-examples
  2. Edit settings.yml
  3. Set harvester_network_config.offline=true
  4. Create a one node air gapped Harvester with a HTTP proxy server
  5. Access Harvester settings page
  6. Add the following http proxy configuration
{
  "httpProxy": "http://192.168.0.254:3128",
  "httpsProxy": "http://192.168.0.254:3128",
  "noProxy": "localhost,127.0.0.1,0.0.0.0,10.0.0.0/8,cattle-system.svc,192.168.0.0/16,.svc,.cluster.local,example.com"
}

image

  1. Wait for 5 minutes for Harvester to apply the network setting
  2. Go to images page
  3. Upload image from local file

Expected Results

After the HTTP proxy is configured, we can upload image from local file correctly without error image image