This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1309924 - [doc] Ubuntu Cache: expand document to proxying repositories
[doc] Ubuntu Cache: expand document to proxying repositories
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Documentation (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: 2.0
Assigned To: Bara Ancincova
Depends On:
  Show dependency treegraph
Reported: 2016-02-18 19:46 EST by Federico Lucifredi
Modified: 2016-08-23 12:19 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-08-23 12:19:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Federico Lucifredi 2016-02-18 19:46:09 EST
Description of problem:

The current Ubuntu caching document describes only a setup that is completely disconnected form the Internet, with packages loaded via ISO into an Apt-Cacher-NG repository.

The same setup should be able to proxy our Ubuntu repository in a more common configuration where the Apt-Cacher-NG node is located in the DMZ and the Ceph cluster can access it, but not the Internet directly.

We want to expand the existing guide to support this use case.

This is very important for 2.0 as we are obsoleting older Inktank tooling offering repository proxying in this release.
Comment 4 Ken Dreyer (Red Hat) 2016-02-29 13:16:35 EST
For reference, the existing KB article for apt-cacher-ng is
Comment 7 Tejas 2016-08-11 08:14:03 EDT
Hi Bara,

   I had a couple of observations on the gdoc mentioned in comment#6:

1. In the section ### Using the Caching Server
step 1a For caching server connected to the Internet

For a client to use the caching server, we need to setup a http proxy on the client or change the "sources.list" file or both.
for ex:
  echo 'Acquire::http { Proxy "http://<caching-server>:3142"; };' > /etc/apt/apt.conf.d/02proxy

and the entry in sources.list can be something like this:
  deb http://<caching-server>:3142/ xenial main

2. Also when we download the ubuntu release files (*.asc) using the caching server, we need to add an entry in the /etc/apt-cacher-ng/acng.conf :
PfilePattern: .*(\.deb|\.rpm|\.dsc|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.udeb|\.diff/.*\.gz|\.asc|\.iso|changelog|\copyright)$

Both the above mentioned points are for a repo based install using a caching server (non ISO)

3. In the section ### Using the Caching Server
step 1b 
to install the dependent packages that are not present in the ceph ISO, the same method followed in points 1 and 2 should be followed.

Let me know if you need any other info

Comment 9 Tejas 2016-08-12 07:09:35 EDT
Hi Bara,

    To answer your question:

1. This step is when the caching server is able to connect to the Internet.

>>Does the third method (substituting the "" line with the caching server URL work)?
yes, let me take an example:
Instead of:
it would be:

We are routing the request through the ng-server.

>>I've added this step to the gdoc - what do you think?
We need this when we are downloading the "*.asc" release file for our ubuntu repos. The apt-cacher-ng does not allow .asc files by default.
Comment 11 Tejas 2016-08-12 08:42:47 EDT
Hi Bara,

    the doc looks good. one change:

3) After downloading the Ubuntu release files (`*.asc`) by using the caching server, add the following entry to the `/etc/apt-cacher-ng/acng.conf` file:

PfilePattern: .*(\.deb|\.rpm|\.dsc|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.udeb|\.diff/.*\.gz|\.asc|\.iso|changelog|\copyright)$

We need the entry in /etc/apt-cacher-ng/acng.conf TO download the .asc files.
so basically we need to add the entry and restart the apt-cacher-ng service, and then download the release file.

'systemctl restart apt-cacher-ng'

Sorry I forgot to mention the restart service part.

Comment 13 Tejas 2016-08-12 09:03:00 EDT

  we dont need the same step in :
 ## Setting Up a Caching Server Disconnected from the Internet {#without_internet}

This looks good. Please move it back to QA.

Comment 15 Tejas 2016-08-12 09:06:14 EDT
The doc looks good to me.
Moving the bug to Verified.

Comment 19 Tejas 2016-08-17 06:28:53 EDT
Thanks Bara.
Would you move all the examples and references to Ceph 2.0 anytime ?

Comment 22 Tejas 2016-08-19 09:54:05 EDT
Hi Bara,

     Sorry this came really late, but need one more change.

need to change the Pfile pattern as: I have added .txt as its needed for the security file.

PfilePattern: .*(\.deb|\.rpm|\.txt|\.dsc|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.udeb|\.diff/.*\.gz|\.asc|\.iso|changelog|\copyright)$

Comment 24 Tejas 2016-08-19 10:20:19 EDT
Thanks Bara :)
Moving this to Verified

Note You need to log in before you can comment on or make changes to this bug.