<div dir="ltr"><div dir="ltr"><div>on QE installs we set the variable tot he value of ${HOST}</div><div><a href="https://github.com/PulpQE/pulp-qe-tools/blob/master/pulp3/install_pulp3/install.sh#L88">https://github.com/PulpQE/pulp-qe-tools/blob/master/pulp3/install_pulp3/install.sh#L88</a> <br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 4:14 PM Dennis Kliban <<a href="mailto:dkliban@redhat.com">dkliban@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>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. <br></div><div><br></div><div>You can also manually modify the the systemd file for pulp-content-app by replacing localhost:8080 with the value that works for you.<br></div><div><br></div><div><a href="https://github.com/pulp/ansible-pulp/blob/master/roles/pulp-content/defaults/main.yml#L2" target="_blank">https://github.com/pulp/ansible-pulp/blob/master/roles/pulp-content/defaults/main.yml#L2</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 2:47 PM Tatiana Tereshchenko <<a href="mailto:ttereshc@redhat.com" target="_blank">ttereshc@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Juan,</div><div><br></div><div>Could you check, please, if it works locally and then if the content-app listens on localhost?</div><div><br></div><div>On the machine with Pulp3:<br></div><div>$ http localhost:8080/pulp/content/epel/repodata/repomd.xml</div><div><br></div><div>And if the bind ip for content app is localhost</div><div>either :</div><div>$ netstat -an | grep 8080</div><div><br></div><div>or:</div><div>$ sudo systemctl status  pulp-content-app<br></div><div><br></div><div>Thank you,</div><div>Tanya<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 5:06 PM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div 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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="https://github.com/pulp/ansible-pulp/" target="_blank">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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="https://epel.mirror.it2go.eu/7/x86_64/" target="_blank">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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/" target="_blank">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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://localhost:8000/pulp/api/v3/distributions/" target="_blank">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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/" target="_blank">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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://download.fedoraproject.org/pub/epel/7/$basearch" target="_blank">http://download.fedoraproject.org/pub/epel/7/$basearch</a></tt><tt><br>
    </tt><tt>metalink=<a class="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch" target="_blank">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: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></tt><tt><br>
      </tt><tt> * extras: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></tt><tt><br>
      </tt><tt> * updates: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></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: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></tt><tt><br>
      </tt><tt> * extras: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></tt><tt><br>
      </tt><tt> * updates: <a href="http://mirror.unix-solutions.be" target="_blank">mirror.unix-solutions.be</a></tt><tt><br>
      </tt><tt><a class="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml" target="_blank">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
        [Errno 14] curl#7 - "Failed connect to <a href="http://10.0.148.220:8080" target="_blank">10.0.148.220:8080</a>;
        Connection refused"</tt><tt><br>
      </tt><tt>Trying other mirror.</tt><tt><br>
      </tt><tt><a class="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml" target="_blank">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
        [Errno 14] curl#7 - "Failed connect to <a href="http://10.0.148.220:8080" target="_blank">10.0.148.220:8080</a>;
        Connection refused"</tt><tt><br>
      </tt><tt>...</tt><br>
      <tt><tt><a class="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml" target="_blank">http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml</a>:
          [Errno 14] curl#7 - "Failed connect to <a href="http://10.0.148.220:8080" target="_blank">10.0.148.220:8080</a>;
          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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext" href="http://10.0.148.220:8080/pulp/content/epel/getmail-5.13-1.el7.noarch.rpm" target="_blank">http://10.0.148.220:8080/pulp/content/epel/getmail-5.13-1.el7.noarch.rpm</a>:
        [Errno 14] curl#7 - "Failed connect to <a href="http://10.0.148.220:8080" target="_blank">10.0.148.220:8080</a>;
        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="gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-signature">-- <br>
      <div style="font-family:Verdana,Helvetica,Arial,sans-serif;font-size:8pt;font-weight:normal;color:rgb(97,99,101)"> <img src="cid:169df58d08cd8d993dd1" style="display: block; margin: 1em 0em;">
        <p style="margin:1em"> <span style="font-weight:bold">Juan
            CABRERA</span><br>
          <span style="color:rgb(105,190,40)">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:rgb(105,190,40)" href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a><br>
          <a style="color:rgb(105,190,40)" href="http://staff.unamur.be/jbcabrer" target="_blank">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:rgb(105,190,40)"> <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>
  </div>

_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></div></div></div></div>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Bruno Rocha</div><div dir="ltr"><span>Senior Quality Engineer - Red Hat - Pulp Project</span><br>irc: rochacbruno<br></div>“Progress is the realization of utopia.”</div></div></div></div></div></div></div>