Install fails when juju-no-proxy has large subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Containerd Subordinate Charm |
Triaged
|
Medium
|
Unassigned | ||
Docker Subordinate Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Charm revision 25.
INstalling with no aadditional settings, proxy settings are not set up.
The install hook is failing with:
unit-dockerd-1: 18:19:49 WARNING unit.dockerd/
unit-dockerd-1: 18:23:11 ERROR unit.dockerd/
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
validate_
File "/var/lib/
raise ConfigError(
reactive.
In pdb the no_proxy setting comes out as follows:
> /var/lib/
The charm is automatically expanding a CIDR from juju-no-proxy and the resulting no_proxy line is longer than 2024 chars.
First of all, I think we can remove that 2024 character limit. I believe it was fixed in the version of systemd that we ship with Ubuntu 18.04.
Second, the charm probably shouldn't be expanding CIDRs from juju-no-proxy anyway. It causes more problems than it solves.