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#L88On Tue, Apr 2, 2019 at 4:14 PM Dennis Kliban <[email protected]> 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 <[email protected]> > 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 >> >> And if the bind ip for content app is localhost >> either : >> $ netstat -an | grep 8080 >> >> or: >> $ sudo systemctl status pulp-content-app >> >> Thank you, >> Tanya >> >> On Tue, Apr 2, 2019 at 5:06 PM Juan Cabrera <[email protected]> >> 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@dev-pulp-server ~]$ cat ~/.netrc >>> machine localhost >>> login admin >>> password password >>> >>> [vagrant@dev-pulp-server ~]$ export REPO_HREF=$(http POST >>> :8000/pulp/api/v3/repositories/ name=epel_ptci | jq -r '._href') >>> [vagrant@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@dev-pulp-server ~]$ http :8000${REMOTE_HREF}sync/ >>> repository=$REPO_HREF >>> [vagrant@dev-pulp-server ~]$ # check and wait the end of task >>> [vagrant@dev-pulp-server ~]$ http :8000/pulp/api/v3/tasks/ >>> [vagrant@dev-pulp-server ~]$ export PUBLISHER_HREF=$(http POST >>> http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/ name=epel | jq -r >>> '._href') >>> [vagrant@dev-pulp-server ~]$ http POST :8000${PUBLISHER_HREF}publish/ >>> repository=$REPO_HREF >>> [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') >>> [vagrant@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@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@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@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@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@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@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 >>> [email protected] >>> 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 >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/pulp-list >> >> _______________________________________________ >> Pulp-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/pulp-list > > _______________________________________________ > Pulp-list mailing list > [email protected] > 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 [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
