[Pulp-list] Failed connect to 10.0.148.220:8080; Connection refused

Juan Cabrera juan.cabrera at unamur.be
Tue Apr 2 15:05:54 UTC 2019


Hi Pulp-list,

I have installed a pulp server with the ``pulp-rpm`` plugin using the
ansible roles in https://github.com/pulp/ansible-pulp/

I have follow the rpm workflow to copy the ``epel`` repo:

[vagrant at dev-pulp-server ~]$ cat ~/.netrc
machine localhost
login admin
password password

[vagrant at dev-pulp-server ~]$ export REPO_HREF=$(http POST
:8000/pulp/api/v3/repositories/ name=epel_ptci | jq -r '._href')
[vagrant at dev-pulp-server ~]$ export REMOTE_HREF=$(http POST
:8000/pulp/api/v3/remotes/rpm/rpm/ name='epel'
url='https://epel.mirror.it2go.eu/7/x86_64/' policy='immediate' | jq -r
'._href')
[vagrant at dev-pulp-server ~]$ http :8000${REMOTE_HREF}sync/
repository=$REPO_HREF
[vagrant at dev-pulp-server ~]$ # check and wait the end of task
[vagrant at dev-pulp-server ~]$ http :8000/pulp/api/v3/tasks/
[vagrant at dev-pulp-server ~]$ export PUBLISHER_HREF=$(http POST
http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/ name=epel | jq -r
'._href')
[vagrant at dev-pulp-server ~]$ http POST :8000${PUBLISHER_HREF}publish/
repository=$REPO_HREF
[vagrant at 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')
[vagrant at dev-pulp-server ~]$ http POST
http://localhost:8000/pulp/api/v3/distributions/ name='epel_ptci'
base_path='epel' publication=$PUBLICATION_HREF

I have create a client VM where I added the ``epel_repo`` repository 
and disable the ``epel`` repoitory:

[root at dev-pulp-client ~]# cat /etc/yum.repos.d/epel_ptci.repo
[epel_ptci]
name = epel_ptci
baseurl = http://10.0.148.220:8080/pulp/content/epel/
gpgcheck = 0
[root at dev-pulp-client ~]# head /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=0

Now I can see a package in the client from the ``epel_ptci`` repo on the
server:

[root at dev-pulp-client ~]# yum whatprovides getmail
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.unix-solutions.be
 * extras: mirror.unix-solutions.be
 * updates: mirror.unix-solutions.be
getmail-5.13-1.el7.noarch : POP3, IMAP4 and SDPS mail retriever with
Maildir delivery
Repo        : epel_ptci

But I can not install it

[root at dev-pulp-client ~]# yum install getmail
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.unix-solutions.be
 * extras: mirror.unix-solutions.be
 * updates: mirror.unix-solutions.be
http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml: [Errno
14] curl#7 - "Failed connect to 10.0.148.220:8080; Connection refused"
Trying other mirror.
http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml: [Errno
14] curl#7 - "Failed connect to 10.0.148.220:8080; Connection refused"
...
http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml: [Errno
14] curl#7 - "Failed connect to 10.0.148.220:8080; Connection refused"
Trying other mirror.

Resolving Dependencies
--> Running transaction check
---> Package getmail.noarch 0:5.13-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================
 Package                                
Arch                                  
Version                                     
Repository                                 Size
=============================================================================================================================================================================
Installing:
 getmail                                
noarch                                
5.13-1.el7                                  
epel_ptci                                 192 k

Transaction Summary
=============================================================================================================================================================================
Install  1 Package

Total download size: 192 k
Installed size: 897 k
Is this ok [y/d/N]: y
Downloading packages:
getmail-5.13-1.el7.noarch.rpm 
FAILED                                         
http://10.0.148.220:8080/pulp/content/epel/getmail-5.13-1.el7.noarch.rpm:
[Errno 14] curl#7 - "Failed connect to 10.0.148.220:8080; Connection
refused"    0 B  --:--:-- ETA
Trying other mirror.
...

Error downloading packages:
  getmail-5.13-1.el7.noarch: [Errno 256] No more mirrors to try.


In the server I stopped the firewall

[root at dev-pulp-server ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled;
vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-04-02 13:08:33 UTC; 1h 48min ago

[root at dev-pulp-server ~]# iptables -L -vn
Chain INPUT (policy ACCEPT 24687 packets, 98M bytes)
 pkts bytes target     prot opt in     out     source              
destination        

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source              
destination        

Chain OUTPUT (policy ACCEPT 21703 packets, 73M bytes)
 pkts bytes target     prot opt in     out     source              
destination 

Do I forget to add some credentials ? Can some one help on this ?

Thanks

Juan

-- 

Juan CABRERA
Correspondant informatique
Département de Mathématiques

T. 081724919
juan.cabrera at unamur.be <mailto:juan.cabrera at unamur.be>
http://staff.unamur.be/jbcabrer

Université de Namur ASBL
Rue de Bruxelles 61 - 5000 Namur
Belgique

Let’s respect the environment together.
Only print this message if necessary!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190402/1f0e15f2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aghkbemggbdigooc.png
Type: image/png
Size: 9356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190402/1f0e15f2/attachment.png>


More information about the Pulp-list mailing list