Can't deploy bundle from a restricted network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-jujuclient |
New
|
Undecided
|
Unassigned |
Bug Description
I noticed this issue while using the Deployer but I think the root cause is python-jujuclient.
When using the Deployer in a restricted network, it can't deploy bundle from the charm store. The http_proxy and https_proxy have already been set but it seem the jujuclient does not honor the proxy settings; as a result, the connection times out.
For testing purpose, I can reach the api.jujucharm.com from the command line.
Deployer error:
2016-09-05 05:45:04 [DEBUG] deployer.cli: Using runtime GoEnvironment on power8-maas
2016-09-05 05:45:04 [INFO] deployer.cli: Using deployment /tmp/bundletest
2016-09-05 05:45:04 [INFO] deployer.cli: Starting deployment of /tmp/bundletest
2016-09-05 05:45:04 [DEBUG] deployer.import: Getting charms...
2016-09-05 05:45:04 [DEBUG] deployer.charm: Cache dir /var/lib/
2016-09-05 05:45:04 [DEBUG] deployer.charm: Cache dir /var/lib/
2016-09-05 05:45:04 [DEBUG] deployer.deploy: Resolving configuration
2016-09-05 05:45:04 [DEBUG] deployer.env: Connecting to environment...
2016-09-05 05:45:04 [DEBUG] deployer.env: Connected to environment
2016-09-05 05:45:04 [INFO] deployer.import: Deploying applications...
2016-09-05 05:45:04 [INFO] deployer.import: Deploying application mysql using cs:trusty/mysql-55
2016-09-05 05:45:04 [DEBUG] deployer.import: Refetching status for placement deploys
2016-09-05 05:49:24 [ERROR] deployer.env: Error deploying application 'mysql'
2016-09-05 05:49:24 [ERROR] deployer.env: Command (juju deploy -e power8-maas --config /tmp/tmpmXg1Yt cs:trusty/mysql-55 mysql) Output:
ERROR cannot retrieve charm \"cs:trusty/
2016-09-05 05:49:24 [INFO] deployer.cli: Deployment stopped. run time: 260.03