[New charm] Ubuntu repository cache for cloud partners
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Juju Charms Collection |
Undecided
|
Unassigned | ||
Bug Description
This charm provides a partial caching proxy mirror of the
Ubuntu Software Repository. This is intended for deployment in cloud
environments to provide a cloud-local repository.
This is a hybrid mirror / cache. Repository metadata, data under the
ubuntu/dists/ directory, is copied from upstream Ubuntu mirrors and
checked to ensure that it is consistent. Requests for package files in
/ubuntu/pool are forwarded internally to squid-deb-proxy, which keeps a
local cache of .deb files as they are requested. This approach minimized
load on the upstream archive server, improves performance, and requires
less disk space than a static archive mirror.
| Robert C Jennings (rcj) wrote : | #1 |
| Robert C Jennings (rcj) wrote : | #2 |
Deploying this charm to test will pull a lot of data, to reduce the content mirrored during testing you can apply patches/
| summary: |
- [New charm] Ubuntu repository cache for cloud partners + [mirror charm] Ubuntu repository cache for cloud partners |
| summary: |
- [mirror charm] Ubuntu repository cache for cloud partners + [New charm] Ubuntu repository cache for cloud partners |
| Changed in charms: | |
| status: | New → In Progress |
| Whit Morriss (whitmo) wrote : | #3 |
Robert, thanks for the great looking charm. Nice use of charm helpers, very clean and well organized w/ good if incomplete docs. All in all well written and useful charm.
Couple, three nits to pick:
Tests: Currently the amulet tests fail when running under bundletester (gives a 404 when the test attempts an http connection). Also consider the amount of python you have in the hooks, I'd like to see a bit more unit coverage.
Docs: "juju add-relationship" needs to be changed to "juju add-relation" (make this mistake all the time myself). Also I noted a number of "hooks" intended for running via juju run such as code to kick off the mirror, but do not see these documented.
so -1 for now, but looks really good. Thanks again Robert!
-w
| Whit Morriss (whitmo) wrote : | #4 |
Hi robert, also ran into this error adding the relations:
"juju add-relation ntp ubuntu-
ERROR cannot add relation "ntp:juju-info ubuntu-
we may need to get a version of the ntp subordinate promulgated for trusty?
-w
| Robert C Jennings (rcj) wrote : Re: [Bug 1366834] Re: [New charm] Ubuntu repository cache for cloud partners | #5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 09/15/2014 01:42 PM, Whit Morriss wrote:
> Hi robert, also ran into this error adding the relations:
>
> "juju add-relation ntp ubuntu-
> relation "ntp:juju-info ubuntu-
> principal and subordinate services' series must match"
>
> we may need to get a version of the ntp subordinate promulgated
> for trusty?
Thanks for the review. I'll work on addressing issues.
There is a recommended NTP subordinate (cs:trusty/ntp-6), could your
default series be causing issues?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJ
NBvUvtKnYWvP1/
rGKXxrgxBz8NfCK
tKYSGMkfzBZLsHQ
xSz6lI0H3iUHsBU
CZ8Wgnh+
SXWIVHcqMfy8nYm
Qj9spPetvQm9RTl
8H3s2BNF/
ppRY9UEmWcOga+
4kr9qMFl51y3LoC
jIJhfoCrw65Y1NN
=hscK
-----END PGP SIGNATURE-----
| Whit Morriss (whitmo) wrote : | #6 |
Thanks Robert, and sorry about the delayed response.
LGTM +1.
I was able to stand it up and connect via http to a running repostory. I still would prefer to see some unit tests, but nice to see the integration tests working.
Thanks again,
-w
| Ben Howard (utlemming) wrote : | #7 |
After deploying to Azure, I get:
Ign http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
| Ben Howard (utlemming) wrote : | #8 |
Looks like after leaving the instances overnight things started to work. After chatting offline the 503's are caused by setting sync-on-start to false.
| Robert C Jennings (rcj) wrote : | #9 |
This charm is rolling out into production with a few additions based on IS requirements. We would like to provide this to our partners as well through the charm store. This had been blocked on an amulet issue in bug #1430488 which was blocking testing. With the patches for that bug applied to amulet, testing of this charm should work.
Please re-review this charm for charmstore inclusion, thanks.
| Antonio Rosales (arosales) wrote : | #10 |
Per comment 9 @rcj is looking for a re-review of this charm. Thus, I am moving the status of this bug to "Fix Committed" so it shows up in the the charm review queue @ http://
-thanks,
Antonio
| Changed in charms: | |
| status: | In Progress → Fix Committed |
| Adam Israel (aisrael) wrote : | #11 |
Hi Robert,
That amulet bug should be fixed in amulet 1.10.1, cut a week ago. I did a full review of the charm during that testing, with the patched amulet. I was able to fully deploy and run all tests successfully. You've got a +1 from me.
Looking through the logs of the latest test runs (http://
http://
Sure looks like something bad is happening, but I can't diagnose beyond that...
Opened bug against juju-core: https:/
| Antonio Rosales (arosales) wrote : | #14 |
Given we are hitting a Juju Core bug (see comment 13) AdamI and RobertJ have manually tested this charm and tests have passed.
Since code reviews and manually testing have been successful suggesting to the ~charmers team to promote this charm to recommended.
-thanks,
Antonio
Charm promulgated, thanks rcj!
| Changed in charms: | |
| status: | Fix Committed → Fix Released |

Code branch @ lp:~rcj/charms/trusty/ubuntu-repository-cache/trunk. The TODO file lists the outstanding work for the charm, but the charm is quite functional and ready for review. The BUGS file lists a couple known issues that are being worked, but they should not be blockers.