<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Pulp-list,</p>
<p>I have installed a pulp server with the ``pulp-rpm`` plugin using
the ansible roles in <a class="moz-txt-link-freetext" href="https://github.com/pulp/ansible-pulp/">https://github.com/pulp/ansible-pulp/</a></p>
<p>I have follow the rpm workflow to copy the ``epel`` repo:</p>
<p><tt>[vagrant@dev-pulp-server ~]$ cat ~/.netrc</tt><tt><br>
</tt><tt>machine localhost</tt><tt><br>
</tt><tt>login admin</tt><tt><br>
</tt><tt>password password</tt><tt><br>
</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ export REPO_HREF=$(http POST
:8000/pulp/api/v3/repositories/ name=epel_ptci | jq -r '._href')</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ export REMOTE_HREF=$(http
POST :8000/pulp/api/v3/remotes/rpm/rpm/ name='epel'
url='<a class="moz-txt-link-freetext" href="https://epel.mirror.it2go.eu/7/x86_64/">https://epel.mirror.it2go.eu/7/x86_64/</a>' policy='immediate'
| jq -r '._href')</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ http
:8000${REMOTE_HREF}sync/ repository=$REPO_HREF</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ # check and wait the end of
task</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ http
:8000/pulp/api/v3/tasks/</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ export PUBLISHER_HREF=$(http
POST <a class="moz-txt-link-freetext" href="http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/">http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/</a>
name=epel | jq -r '._href')</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ http POST
:8000${PUBLISHER_HREF}publish/ repository=$REPO_HREF</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ export
PUBLICATION_HREF=$(http :8000/pulp/api/v3/publications/ | jq -r
--arg PUBLISHER_HREF "$PUBLISHER_HREF" '.results[] |
select(.publisher==$PUBLISHER_HREF) | ._href')</tt><tt><br>
</tt><tt>[vagrant@dev-pulp-server ~]$ http POST
<a class="moz-txt-link-freetext" href="http://localhost:8000/pulp/api/v3/distributions/">http://localhost:8000/pulp/api/v3/distributions/</a>
name='epel_ptci' base_path='epel' publication=$PUBLICATION_HREF</tt><br>
<br>
I have create a client VM where I added the ``epel_repo``
repository and disable the ``epel`` repoitory:<br>
</p>
<tt>[root@dev-pulp-client ~]# cat /etc/yum.repos.d/epel_ptci.repo </tt><tt><br>
</tt><tt>[epel_ptci]</tt><tt><br>
</tt><tt>name = epel_ptci</tt><tt><br>
</tt><tt>baseurl = <a class="moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/">http://10.0.148.220:8080/pulp/content/epel/</a></tt><tt><br>
</tt><tt>gpgcheck = 0</tt><tt><br>
</tt><tt>[root@dev-pulp-client ~]# head /etc/yum.repos.d/epel.repo </tt><tt><br>
</tt><tt>[epel]</tt><tt><br>
</tt><tt>name=Extra Packages for Enterprise Linux 7 - $basearch</tt><tt><br>
</tt><tt>#baseurl=<a class="moz-txt-link-freetext" href="http://download.fedoraproject.org/pub/epel/7/$basearch">http://download.fedoraproject.org/pub/epel/7/$basearch</a></tt><tt><br>
</tt><tt>metalink=<a class="moz-txt-link-freetext" href="https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch">https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch</a></tt><tt><br>
</tt><tt>failovermethod=priority</tt><tt><br>
</tt><tt>enabled=0</tt><br>
<p>Now I can see a package in the client from the ``epel_ptci`` repo
on the server:<br>
</p>
<p><tt>[root@dev-pulp-client ~]# yum whatprovides getmail</tt><tt><br>
</tt><tt>Failed to set locale, defaulting to C</tt><tt><br>
</tt><tt>Loaded plugins: fastestmirror</tt><tt><br>
</tt><tt>Loading mirror speeds from cached hostfile</tt><tt><br>
</tt><tt> * base: mirror.unix-solutions.be</tt><tt><br>
</tt><tt> * extras: mirror.unix-solutions.be</tt><tt><br>
</tt><tt> * updates: mirror.unix-solutions.be</tt><tt><br>
</tt><tt>getmail-5.13-1.el7.noarch : POP3, IMAP4 and SDPS mail
retriever with Maildir delivery</tt><tt><br>
</tt><tt>Repo : epel_ptci</tt></p>
<p>But I can not install it</p>
<p><tt>[root@dev-pulp-client ~]# yum install getmail</tt><tt><br>
</tt><tt>Failed to set locale, defaulting to C</tt><tt><br>
</tt><tt>Loaded plugins: fastestmirror</tt><tt><br>
</tt><tt>Loading mirror speeds from cached hostfile</tt><tt><br>
</tt><tt> * base: mirror.unix-solutions.be</tt><tt><br>
</tt><tt> * extras: mirror.unix-solutions.be</tt><tt><br>
</tt><tt> * updates: mirror.unix-solutions.be</tt><tt><br>
</tt><tt><a class="moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
[Errno 14] curl#7 - "Failed connect to 10.0.148.220:8080;
Connection refused"</tt><tt><br>
</tt><tt>Trying other mirror.</tt><tt><br>
</tt><tt><a class="moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
[Errno 14] curl#7 - "Failed connect to 10.0.148.220:8080;
Connection refused"</tt><tt><br>
</tt><tt>...</tt><br>
<tt><tt><a class="moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
[Errno 14] curl#7 - "Failed connect to 10.0.148.220:8080;
Connection refused"</tt><tt><br>
</tt><tt>Trying other mirror.</tt><tt><br>
</tt></tt></p>
<p><tt>Resolving Dependencies</tt><tt><br>
</tt><tt>--> Running transaction check</tt><tt><br>
</tt><tt>---> Package getmail.noarch 0:5.13-1.el7 will be
installed</tt><tt><br>
</tt><tt>--> Finished Dependency Resolution</tt><tt><br>
</tt><tt><br>
</tt><tt>Dependencies Resolved</tt><tt><br>
</tt><tt><br>
</tt><tt>=============================================================================================================================================================================</tt><tt><br>
</tt><tt> Package
Arch
Version
Repository Size</tt><tt><br>
</tt><tt>=============================================================================================================================================================================</tt><tt><br>
</tt><tt>Installing:</tt><tt><br>
</tt><tt> getmail
noarch
5.13-1.el7
epel_ptci 192 k</tt><tt><br>
</tt><tt><br>
</tt><tt>Transaction Summary</tt><tt><br>
</tt><tt>=============================================================================================================================================================================</tt><tt><br>
</tt><tt>Install 1 Package</tt><tt><br>
</tt><tt><br>
</tt><tt>Total download size: 192 k</tt><tt><br>
</tt><tt>Installed size: 897 k</tt><tt><br>
</tt><tt>Is this ok [y/d/N]: y</tt><tt><br>
</tt><tt>Downloading packages:</tt><tt><br>
</tt><tt>getmail-5.13-1.el7.noarch.rpm
FAILED </tt><tt><br>
</tt><tt><a class="moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/getmail-5.13-1.el7.noarch.rpm">http://10.0.148.220:8080/pulp/content/epel/getmail-5.13-1.el7.noarch.rpm</a>:
[Errno 14] curl#7 - "Failed connect to 10.0.148.220:8080;
Connection refused" 0 B --:--:-- ETA </tt><tt><br>
</tt><tt>Trying other mirror.</tt><tt><br>
</tt><tt>...</tt></p>
<p><tt>Error downloading packages:</tt><tt><br>
</tt><tt> getmail-5.13-1.el7.noarch: [Errno 256] No more mirrors
to try.</tt></p>
<p><br>
In the server I stopped the firewall</p>
<p><tt>[root@dev-pulp-server ~]# systemctl status firewalld.service
</tt><tt><br>
</tt><tt>● firewalld.service - firewalld - dynamic firewall daemon</tt><tt><br>
</tt><tt> Loaded: loaded
(/usr/lib/systemd/system/firewalld.service; enabled; vendor
preset: enabled)</tt><tt><br>
</tt><tt> Active: inactive (dead) since Tue 2019-04-02 13:08:33
UTC; 1h 48min ago</tt><tt><br>
</tt></p>
<p><tt>[root@dev-pulp-server ~]# iptables -L -vn</tt><tt><br>
</tt><tt>Chain INPUT (policy ACCEPT 24687 packets, 98M bytes)</tt><tt><br>
</tt><tt> pkts bytes target prot opt in out
source destination </tt><tt><br>
</tt><tt><br>
</tt><tt>Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)</tt><tt><br>
</tt><tt> pkts bytes target prot opt in out
source destination </tt><tt><br>
</tt><tt><br>
</tt><tt>Chain OUTPUT (policy ACCEPT 21703 packets, 73M bytes)</tt><tt><br>
</tt><tt> pkts bytes target prot opt in out
source destination </tt><br>
</p>
<p>Do I forget to add some credentials ? Can some one help on this ?</p>
<p>Thanks</p>
<p>Juan<br>
</p>
<div class="moz-signature">-- <br>
<div style="font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 8pt; font-weight: normal; color: #616365;"> <img
src="cid:part1.990A6B90.4CB60454@unamur.be" style="display:
block; margin: 1em 0em;">
<p style="margin: 1em;"> <span style="font-weight: bold;">Juan
CABRERA</span><br>
<span style="color: #69BE28;">Correspondant informatique</span><br>
<span>Département de Mathématiques</span> </p>
<p style="margin: 1em;">
<span style="font-weight: bold;">T.</span> 081724919<br>
<a style="color: #69BE28;"
href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a><br>
<a style="color: #69BE28;"
href="http://staff.unamur.be/jbcabrer">http://staff.unamur.be/jbcabrer</a>
</p>
<p style="margin: 1em;"> <span style="font-weight: bold;
font-size: 8pt;">Université de Namur ASBL</span><br>
<span>Rue de Bruxelles 61 - 5000 Namur</span><br>
<span>Belgique</span><br>
</p>
<p style="margin: 1em; font-size: 6pt; color: #69BE28;"> <span>Let’s
respect the environment together.</span><br>
<span style="font-weight: bold;">Only print this message if
necessary!</span><br>
</p>
</div>
</div>
</body>
</html>