[Pulp-list] Failed connect to 10.0.148.220:8080; Connection refused
Juan Cabrera
juan.cabrera at unamur.be
Fri Apr 5 10:54:38 UTC 2019
Hi,
I installed again the VM. This time using the QE install and, as
expected the hostname is in the bind. But I still have the same problem
with pulp-content-app.
[root at dev-pulp-server ~]# cat
/usr/lib/systemd/system/pulp-content-app.service
[Unit]
Description=Pulp Content App
After=network-online.target
Wants=network-online.target
# This service will break if left running while PostgreSQL restarts.
BindsTo=postgresql.service
After=postgresql.service
[Service]
Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
User=pulp
WorkingDirectory=/var/run/pulp-content-app/
RuntimeDirectory=pulp-content-app
ExecStart=/usr/local/lib/pulp/bin/gunicorn pulpcore.content:server \
--bind 'dev-pulp-server.ptci.dev:8080' \
--worker-class 'aiohttp.GunicornWebWorker' \
-w 2
[Install]
WantedBy=multi-user.target
[root at dev-pulp-client ~]# yum install zabbix22.x86_64
...
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.
....
When I stop the service and run pulp-content script, it works !!
[root at dev-pulp-server ~]# systemctl stop pulp-content-app
[root at dev-pulp-server ~]# cd /usr/local/lib/pulp/bin
[root at dev-pulp-server bin]# export
DJANGO_SETTINGS_MODULE=pulpcore.app.settings
[root at dev-pulp-server bin]# ./pulp-content
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:33:59 +0000]
"GET /pulp/content/epel/repodata/repomd.xml HTTP/1.1" 200 3787 "-"
"urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:33:59 +0000]
"GET /pulp/content/epel/repodata/repomd.xml HTTP/1.1" 200 3787 "-"
"urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:38:20 +0000]
"GET /pulp/content/epel/zabbix22-2.2.23-1.el7.x86_64.rpm HTTP/1.1" 200
230898 "-" "urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:39:55 +0000]
"GET /pulp/content/epel/repodata/repomd.xml HTTP/1.1" 200 3787 "-"
"urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:39:56 +0000]
"GET
/pulp/content/epel/repodata/ef3f9835290684425783f8f5749c2a10a84e0520e19b7d23705678ec5f97f596-updateinfo.xml.gz
HTTP/1.1" 200 1418317 "-" "urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:39:56 +0000]
"GET
/pulp/content/epel/repodata/d06ffd88b874816e675699b7382147e5d1daeafea96cdacf9089f421c4b63182-primary.xml.gz
HTTP/1.1" 200 4227472 "-" "urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:40:14 +0000]
"GET /pulp/content/epel/wine-4.0-2.el7.x86_64.rpm HTTP/1.1" 200 51909
"-" "urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:40:14 +0000]
"GET /pulp/content/epel/wine-alsa-4.0-2.el7.x86_64.rpm HTTP/1.1" 200
106806 "-" "urlgrabber/3.10 yum/3.4.3"
pulp: aiohttp.access:INFO: 10.0.148.221 [05/Apr/2019:10:40:14 +0000]
"GET /pulp/content/epel/wine-cms-4.0-2.el7.x86_64.rpm HTTP/1.1" 200
76521 "-" "urlgrabber/3.10 yum/3.4.3"
....
Is there some log where I can see if there is an error message ?
Please find hereunder the result of the asked commands when the content
service pulp-content-app is on.
On 2/04/19 21:19, Bruno Rocha wrote:
> on QE installs we set the variable tot he value of ${HOST}
> https://github.com/PulpQE/pulp-qe-tools/blob/master/pulp3/install_pulp3/install.sh#L88
>
>
> On Tue, Apr 2, 2019 at 4:14 PM Dennis Kliban <dkliban at redhat.com
> <mailto:dkliban at redhat.com>> wrote:
>
> I think you are onto something Tanya. The installer has
> pulp_content_host settings[0] and it defaults to localhost:8080.
> You should set it to your actual IP or hostname plus port. This
> config is used to create the systemd file for pulp-content-app.
>
> You can also manually modify the the systemd file for
> pulp-content-app by replacing localhost:8080 with the value that
> works for you.
>
> https://github.com/pulp/ansible-pulp/blob/master/roles/pulp-content/defaults/main.yml#L2
>
> On Tue, Apr 2, 2019 at 2:47 PM Tatiana Tereshchenko
> <ttereshc at redhat.com <mailto:ttereshc at redhat.com>> wrote:
>
> Hi Juan,
>
> Could you check, please, if it works locally and then if the
> content-app listens on localhost?
>
> On the machine with Pulp3:
> $ http localhost:8080/pulp/content/epel/repodata/repomd.xml
>
[root at dev-pulp-server ~]# http
localhost:8080/pulp/content/epel/repodata/repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"
xmlns:rpm="http://linux.duke.edu/metadata/rpm">
<revision>1554392500</revision>
<data type="primary">
<checksum
type="sha256">d06ffd88b874816e675699b7382147e5d1daeafea96cdacf9089f421c4b63182</checksum>
<open-checksum
type="sha256">28948dd94b57de67a050338f79b5b5aa85b3e03b9da753de246031554ddb06b1</open-checksum>
<location
href="repodata/d06ffd88b874816e675699b7382147e5d1daeafea96cdacf9089f421c4b63182-primary.xml.gz"/>
<timestamp>1554392489</timestamp>
<size>4227241</size>
<open-size>29450675</open-size>
</data>
<data type="filelists">
<checksum
type="sha256">f0b1abb1398ab509c63dcc56bf14fe3629fecc0a63f36f66cec6a6b305d6c003</checksum>
<open-checksum
type="sha256">5a0917b9a6148a83964a4dfd030051986b815f7fea4f9c21c2f35a9817bae6ce</open-checksum>
<location
href="repodata/f0b1abb1398ab509c63dcc56bf14fe3629fecc0a63f36f66cec6a6b305d6c003-filelists.xml.gz"/>
<timestamp>1554392489</timestamp>
<size>11413501</size>
<open-size>156561457</open-size>
</data>
<data type="other">
<checksum
type="sha256">f480d0db8ec01108745fc3dcb3644044d345c9a54adaa50059c67d78cfc60c26</checksum>
<open-checksum
type="sha256">c8b9f5bcdb0ff0df4d4b5c91666cc0fcdcb3ebabc342232adad4a03be4b23667</open-checksum>
<location
href="repodata/f480d0db8ec01108745fc3dcb3644044d345c9a54adaa50059c67d78cfc60c26-other.xml.gz"/>
<timestamp>1554392489</timestamp>
<size>3068954</size>
<open-size>21544431</open-size>
</data>
<data type="primary_db">
<checksum
type="sha256">be82475aeeb87a11dd1f9ea06643250e261d59748fb156b0eec34147fed1a7c1</checksum>
<open-checksum
type="sha256">336357f05119ab0c1fb467c66ba87a6208122daa4015a2449e209390015b3152</open-checksum>
<location
href="repodata/be82475aeeb87a11dd1f9ea06643250e261d59748fb156b0eec34147fed1a7c1-primary.sqlite.bz2"/>
<timestamp>1554392493</timestamp>
<size>7187574</size>
<open-size>32471040</open-size>
<database_version>0</database_version>
</data>
<data type="filelists_db">
<checksum
type="sha256">6489dfe3ebebb0634fc099e61590be44294b862c80dbfae7dd3bcad0c24ba979</checksum>
<open-checksum
type="sha256">3dcd73752d72cab252c1dd57775848e37ba1ecd3c25e8d1f7c5dd127c2a06bba</open-checksum>
<location
href="repodata/6489dfe3ebebb0634fc099e61590be44294b862c80dbfae7dd3bcad0c24ba979-filelists.sqlite.bz2"/>
<timestamp>1554392498</timestamp>
<size>12208179</size>
<open-size>71156736</open-size>
<database_version>0</database_version>
</data>
<data type="other_db">
<checksum
type="sha256">135171884f8ec34f1d14031fae5d1b57c61c5e1b94bd629717b750797ed97433</checksum>
<open-checksum
type="sha256">91878d8e0b98332881a523d37108e2c2ddc4841e7fd87930cf79158b3c26f7e6</open-checksum>
<location
href="repodata/135171884f8ec34f1d14031fae5d1b57c61c5e1b94bd629717b750797ed97433-other.sqlite.bz2"/>
<timestamp>1554392500</timestamp>
<size>3712058</size>
<open-size>19383296</open-size>
<database_version>0</database_version>
</data>
<data type="updateinfo">
<checksum
type="sha256">ef3f9835290684425783f8f5749c2a10a84e0520e19b7d23705678ec5f97f596</checksum>
<open-checksum
type="sha256">a5a0da957e8943a4b148e8f49e2041e52ead39a0e616ea308bfda31c60c8af73</open-checksum>
<location
href="repodata/ef3f9835290684425783f8f5749c2a10a84e0520e19b7d23705678ec5f97f596-updateinfo.xml.gz"/>
<timestamp>1554392489</timestamp>
<size>1418086</size>
<open-size>18792560</open-size>
</data>
</repomd>
>
> And if the bind ip for content app is localhost
> either :
> $ netstat -an | grep 8080
>
[vagrant at dev-pulp-server ~]$ netstat -an | grep 8080
tcp 0 0 127.0.0.1:8080 0.0.0.0:*
LISTEN
>
> or:
> $ sudo systemctl status pulp-content-app
>
[root at dev-pulp-server ~]# sudo systemctl status pulp-content-app
● pulp-content-app.service - Pulp Content App
Loaded: loaded (/usr/lib/systemd/system/pulp-content-app.service;
enabled; vendor preset: disabled)
Active: active (running) since Fri 2019-04-05 10:16:18 UTC; 4min 21s ago
Main PID: 6036 (gunicorn)
CGroup: /system.slice/pulp-content-app.service
├─6036 /usr/local/lib/pulp/bin/python36
/usr/local/lib/pulp/bin/gunicorn pulpcore.content:server --bind
dev-pulp-server.ptci.dev:8080 --worker-class aiohttp.Gu...
├─6040 /usr/local/lib/pulp/bin/python36
/usr/local/lib/pulp/bin/gunicorn pulpcore.content:server --bind
dev-pulp-server.ptci.dev:8080 --worker-class aiohttp.Gu...
└─6041 /usr/local/lib/pulp/bin/python36
/usr/local/lib/pulp/bin/gunicorn pulpcore.content:server --bind
dev-pulp-server.ptci.dev:8080 --worker-class aiohttp.Gu...
Apr 05 10:16:18 dev-pulp-server.ptci.dev systemd[1]: Started Pulp
Content App.
Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]: [2019-04-05
10:16:18 +0000] [6036] [INFO] Starting gunicorn 19.9.0
Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]: [2019-04-05
10:16:18 +0000] [6036] [INFO] Listening at: http://127.0.0.1:8080 (6036)
Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]: [2019-04-05
10:16:18 +0000] [6036] [INFO] Using worker: aiohttp.GunicornWebWorker
Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]: [2019-04-05
10:16:18 +0000] [6040] [INFO] Booting worker with pid: 6040
Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]: [2019-04-05
10:16:18 +0000] [6041] [INFO] Booting worker with pid: 6041
>
> Thank you,
> Tanya
>
> On Tue, Apr 2, 2019 at 5:06 PM Juan Cabrera
> <juan.cabrera at unamur.be <mailto:juan.cabrera at unamur.be>> wrote:
>
> 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
> <http://mirror.unix-solutions.be>
> * extras: mirror.unix-solutions.be
> <http://mirror.unix-solutions.be>
> * updates: mirror.unix-solutions.be
> <http://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
> <http://mirror.unix-solutions.be>
> * extras: mirror.unix-solutions.be
> <http://mirror.unix-solutions.be>
> * updates: mirror.unix-solutions.be
> <http://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
> <http://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
> <http://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
> <http://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
> <http://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!
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com <mailto:Pulp-list at redhat.com>
> https://www.redhat.com/mailman/listinfo/pulp-list
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com <mailto:Pulp-list at redhat.com>
> https://www.redhat.com/mailman/listinfo/pulp-list
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com <mailto:Pulp-list at redhat.com>
> https://www.redhat.com/mailman/listinfo/pulp-list
>
>
>
> --
> Bruno Rocha
> Senior Quality Engineer - Red Hat - Pulp Project
> irc: rochacbruno
> “Progress is the realization of utopia.”
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
--
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/20190405/69838909/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/20190405/69838909/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digcfihbkdnlheol.png
Type: image/png
Size: 9356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190405/69838909/attachment-0001.png>
More information about the Pulp-list
mailing list