Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Using proxy for downloads with drpcli -D has no effect on uploadiso command #146

Open
kapsh opened this issue Jan 30, 2020 · 3 comments
Open

Comments

@kapsh
Copy link
Contributor

kapsh commented Jan 30, 2020

Steps to reproduce

  1. Install drp into environment where HTTP proxy should be used for internet access.
  2. Try to download items from catalog using drpcli -D:
drpcli -D PROXY contents upload catalog:task-library-stable
drpcli -D PROXY bootenvs uploadiso sledgehammer

Expected result

Every catalog item is downloaded and installed.

Actual result

HTTP proxy specified in -D command line switch has no effect on uploadiso subcommand:

# drpcli -D http://localhost:3131 bootenvs uploadiso sledgehammer
2020/01/30 17:57:04 Unable to connect to https://s3.us-east-2.amazonaws.com/vl-hammer/sledgehammer-9b5276ac5826520829aa73c149fe672fe2363656.arm64.tar: Get https://s3.us-east-2.amazonaws.com/vl-hammer/sledgehammer-9b5276ac5826520829aa73c149fe672fe2363656.arm64.tar: dial tcp 52.219.104.218:443: connect: connection refused: Skipping

Experiment shows that it works when certain environment variables are set (http_proxy, https_proxy) but they aren't seem to be documented.

@galthaus
Copy link
Contributor

Yeah - we probably didn't cover the uploadiso command with the -D flag.

@kapsh
Copy link
Contributor Author

kapsh commented Jan 30, 2020

Thanks for confirmation, looking forward for this to be fixed.

@galthaus
Copy link
Contributor

This will be in the v4.3.0 release (within a month or so).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants