ppa will fail to install under proxy environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Charm |
Fix Committed
|
High
|
DUFOUR Olivier |
Bug Description
I have properly configured juju-http(s)-proxy and no-proxy in the model-config,
however, it seems the adding ppa process does not use that value, and therefore fails to add the ppa with network timeout.
Traceback (most recent call last):
File "/usr/bin/
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/
shortcut = handler(source, **shortcut_params)
File "/usr/lib/
return handler(shortcut, **kwargs)
File "/usr/lib/
if self.lpppa.
File "/usr/lib/
self._lpppa = self.lpteam.
File "/usr/lib/
self._lpteam = self.lp.
File "/usr/lib/
self._lp = login_func("%s.%s" % (self.__module__, self.__
File "/usr/lib/
return cls(
File "/usr/lib/
super(
File "/usr/lib/
self._wadl = self._browser.
File "/usr/lib/
response, content = self._request(url, media_type=
File "/usr/lib/
response, content = self._request_
File "/usr/lib/
response, content = self._connectio
File "/usr/lib/
(response, content) = self._request(
File "/usr/lib/
response, content = super(Launchpad
File "/usr/lib/
return super(RestfulHttp, self)._request(
File "/usr/lib/
(response, content) = self._conn_
File "/usr/lib/
conn.connect()
File "/usr/lib/
sock.
TimeoutError: [Errno 110] Connection timed out
And it also does not support to configure mirrored repository, like passing the deb-line and the GPG key.
At the moment, there is no method to configure and install landscape in offline environment and behind proxy environment.
Related branches
- Kevin Nasto: Approve
-
Diff: 116 lines (+65/-4)2 files modifiedsrc/charm.py (+33/-2)
tests/test_charm.py (+32/-2)
description: | updated |
description: | updated |
Changed in landscape-charm: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in landscape-charm: | |
assignee: | nobody → DUFOUR Olivier (odufourc) |
status: | New → In Progress |
Changed in landscape-charm: | |
status: | In Progress → Fix Committed |
At this revision, we lost an ability of installing from a mirrored repository: /git.launchpad. net/landscape- charm/commit/ config. yaml?h= main&id= 01f72f99b84fcf8 e7c8eef81883abb 12209e3461
https:/
Installation from a mirror server can happen where a child Landscape doesn't have internet access but to fetch packages from a parent Landscape in DMZ in some enterprise requirements.