Can't deploy bundle from a restricted network

Bug #1620810 reported by Seman
6
This bug affects 1 person
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/bundletester-4TeMsi/tmpZgI9Ma/bundle.yaml
2016-09-05 05:45:04 [INFO] deployer.cli: Starting deployment of /tmp/bundletester-4TeMsi/tmpZgI9Ma/bundle.yaml
2016-09-05 05:45:04 [DEBUG] deployer.import: Getting charms...
2016-09-05 05:45:04 [DEBUG] deployer.charm: Cache dir /var/lib/jenkins/cloud-city/.deployer-store-cache/cs_trusty_mediawiki-5
2016-09-05 05:45:04 [DEBUG] deployer.charm: Cache dir /var/lib/jenkins/cloud-city/.deployer-store-cache/cs_trusty_mysql-55
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/mysql-55\": cannot get archive: Get https://api.jujucharms.com/charmstore/v4/trusty/mysql-55/archive?stats=0: dial tcp 162.213.33.121:443: getsockopt: connection timed out

2016-09-05 05:49:24 [INFO] deployer.cli: Deployment stopped. run time: 260.03

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.