Initial deployment of ubuntu-repository-cache doesn't set sibling ACLs correctly on master

Bug #1591020 reported by Paul Gear
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
Triaged
Medium
Unassigned
ubuntu-repository-cache (Juju Charms Collection)
Triaged
Medium
Unassigned

Bug Description

On a fresh redeploy of ubuntu-repository-cache to Azure US East, the master u-r-c (unit 0 of 3 units total) was reporting a large number of UDP_DENIED messages in /var/log/squid3/access.log, e.g.:

1465519980.325 0 10.0.0.14 UDP_DENIED/000 127 ICP_QUERY http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.8/libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb - HIER_NONE/- -

It turns out this is because the sibling ACL is not set up correctly:

root@masterhost:~# /usr/sbin/squid3 -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k check
2016/06/10 01:37:44| Warning: empty ACL: acl siblings src "/etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl"

root@masterhost:~# cat /etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl
# WARNING: this file is auto-generated from the files in
# /etc/squid-deb-proxy/allowed-networks-src.acl.d
# on squid-deb-proxy (re)start, do NOT edit here
# allowed-networks-src.conf
#
# JUJU WARNING: This file is managed by Juju, do NOT edit
#
# network peer siblings that you want to allow access to the cache

# /etc/squid-deb-proxy/allowed-networks-src.acl.d/10-default
#
# additional network sources that you want to allow access to the cache

# example net
#136.199.8.0/24

Manually editing /etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl to include the sibling hosts and running "squid3 -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k reconfigure" fixes this, but changing a setting (such as sync-host) does not.

Tags: canonical-is
Revision history for this message
Paul Gear (paulgear) wrote :

Juju logs from all 3 units are available at https://private-fileshare.canonical.com/~paulgear/lp:1591020/

In case it wasn't clear from the above, units 1 & 2 worked correctly from the outset.

Paul Gear (paulgear)
tags: added: canonical-is
Chris Glass (tribaal)
Changed in ubuntu-repository-cache (Juju Charms Collection):
importance: Undecided → Medium
Changed in ubuntu-repository-cache:
importance: Undecided → Medium
status: New → Triaged
Changed in ubuntu-repository-cache (Juju Charms Collection):
status: New → Triaged
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.