<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I added the modification and it works now !!</p>
    <p>Thank you</p>
    <p>Juan</p>
    <br>
    <div class="moz-cite-prefix">On 5/04/19 18:11, Bruno Rocha wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+hixRw_4SBgaLCUv4TGZ-BeA15rpTAUNDvXYUyXB2ebHBLsOg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Sent this PR: <a
            href="https://github.com/pulp/ansible-pulp/pull/102"
            moz-do-not-send="true">https://github.com/pulp/ansible-pulp/pull/102</a>
          to fix this problem :)<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 7:55 AM
          Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be"
            moz-do-not-send="true">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,</p>
            <p>I installed again the VM. This time using the QE install
              and,  as expected the <tt>hostname</tt> is in the bind.
              But I still have the same problem with <tt>pulp-content-app</tt>.</p>
            <p><tt>[root@dev-pulp-server ~]# cat
                /usr/lib/systemd/system/pulp-content-app.service </tt><tt><br>
              </tt><tt>[Unit]</tt><tt><br>
              </tt><tt>Description=Pulp Content App</tt><tt><br>
              </tt><tt>After=network-online.target</tt><tt><br>
              </tt><tt>Wants=network-online.target</tt><tt><br>
              </tt><tt><br>
              </tt><tt># This service will break if left running while
                PostgreSQL restarts.</tt><tt><br>
              </tt><tt>BindsTo=postgresql.service</tt><tt><br>
              </tt><tt>After=postgresql.service</tt><tt><br>
              </tt><tt><br>
              </tt><tt>[Service]</tt><tt><br>
              </tt><tt>Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"</tt><tt><br>
              </tt><tt>User=pulp</tt><tt><br>
              </tt><tt>WorkingDirectory=/var/run/pulp-content-app/</tt><tt><br>
              </tt><tt>RuntimeDirectory=pulp-content-app</tt><tt><br>
              </tt><tt>ExecStart=/usr/local/lib/pulp/bin/gunicorn
                pulpcore.content:server \</tt><tt><br>
              </tt><tt>          --bind 'dev-pulp-server.ptci.dev:8080'
                \</tt><tt><br>
              </tt><tt>          --worker-class
                'aiohttp.GunicornWebWorker' \</tt><tt><br>
              </tt><tt>          -w 2</tt><tt><br>
              </tt><tt><br>
              </tt><tt>[Install]</tt><tt><br>
              </tt><tt>WantedBy=multi-user.target</tt><br>
            </p>
            <p><tt>[root@dev-pulp-client ~]# yum install zabbix22.x86_64</tt><tt><br>
              </tt><tt>...</tt><tt><br>
              </tt><tt><a
                  class="gmail-m_6478926511723292857moz-txt-link-freetext"
href="http://10.0.148.220:8080/pulp/content/epel/repodata/repomd.xml"
                  target="_blank" moz-do-not-send="true">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"
                  moz-do-not-send="true">10.0.148.220:8080</a>;
                Connection refused"</tt><tt><br>
              </tt><tt>Trying other mirror.</tt><tt><br>
              </tt><tt>....</tt><br>
              <br>
            </p>
            <p>When I stop the service and run pulp-content script, it
              works !!<br>
            </p>
            <p><tt>[root@dev-pulp-server ~]# systemctl stop 
                pulp-content-app</tt><tt><br>
              </tt><tt>[root@dev-pulp-server ~]# cd
                /usr/local/lib/pulp/bin</tt><tt><br>
              </tt><tt>[root@dev-pulp-server bin]# export
                DJANGO_SETTINGS_MODULE=pulpcore.app.settings</tt><tt><br>
              </tt><tt>[root@dev-pulp-server bin]# ./pulp-content </tt><tt><br>
              </tt><tt>======== Running on <a
                  class="gmail-m_6478926511723292857moz-txt-link-freetext"
                  href="http://0.0.0.0:8080" target="_blank"
                  moz-do-not-send="true">http://0.0.0.0:8080</a>
                ========</tt><tt><br>
              </tt><tt>(Press CTRL+C to quit)</tt><tt><br>
              </tt><tt>    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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>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"</tt><tt><br>
              </tt><tt>....</tt><br>
            </p>
            <p>Is there some log where I can see if there is an error
              message ?<br>
            </p>
            <p>Please find hereunder the result of the asked commands
              when the content service <tt>pulp-content-app</tt> is on.</p>
            <p> </p>
            <div class="gmail-m_6478926511723292857moz-cite-prefix">On
              2/04/19 21:19, Bruno Rocha wrote:<br>
            </div>
            <blockquote type="cite">
              <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"
                      target="_blank" moz-do-not-send="true">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" target="_blank"
                    moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <p><br>
            </p>
            <p><tt>[root@dev-pulp-server ~]# http
                localhost:8080/pulp/content/epel/repodata/repomd.xml</tt></p>
            <tt><?xml version="1.0" encoding="UTF-8"?><br>
              <repomd xmlns=<a
                class="gmail-m_6478926511723292857moz-txt-link-rfc2396E"
                href="http://linux.duke.edu/metadata/repo"
                target="_blank" moz-do-not-send="true">"http://linux.duke.edu/metadata/repo"</a>
              xmlns:rpm=<a
                class="gmail-m_6478926511723292857moz-txt-link-rfc2396E"
                href="http://linux.duke.edu/metadata/rpm"
                target="_blank" moz-do-not-send="true">"http://linux.duke.edu/metadata/rpm"</a>><br>
                <revision>1554392500</revision><br>
                <data type="primary"><br>
                  <checksum
type="sha256">d06ffd88b874816e675699b7382147e5d1daeafea96cdacf9089f421c4b63182</checksum><br>
                  <open-checksum
type="sha256">28948dd94b57de67a050338f79b5b5aa85b3e03b9da753de246031554ddb06b1</open-checksum><br>
                  <location
href="repodata/d06ffd88b874816e675699b7382147e5d1daeafea96cdacf9089f421c4b63182-primary.xml.gz"/><br>
                  <timestamp>1554392489</timestamp><br>
                  <size>4227241</size><br>
                  <open-size>29450675</open-size><br>
                </data><br>
                <data type="filelists"><br>
                  <checksum
type="sha256">f0b1abb1398ab509c63dcc56bf14fe3629fecc0a63f36f66cec6a6b305d6c003</checksum><br>
                  <open-checksum
type="sha256">5a0917b9a6148a83964a4dfd030051986b815f7fea4f9c21c2f35a9817bae6ce</open-checksum><br>
                  <location
href="repodata/f0b1abb1398ab509c63dcc56bf14fe3629fecc0a63f36f66cec6a6b305d6c003-filelists.xml.gz"/><br>
                  <timestamp>1554392489</timestamp><br>
                  <size>11413501</size><br>
                  <open-size>156561457</open-size><br>
                </data><br>
                <data type="other"><br>
                  <checksum
type="sha256">f480d0db8ec01108745fc3dcb3644044d345c9a54adaa50059c67d78cfc60c26</checksum><br>
                  <open-checksum
type="sha256">c8b9f5bcdb0ff0df4d4b5c91666cc0fcdcb3ebabc342232adad4a03be4b23667</open-checksum><br>
                  <location
href="repodata/f480d0db8ec01108745fc3dcb3644044d345c9a54adaa50059c67d78cfc60c26-other.xml.gz"/><br>
                  <timestamp>1554392489</timestamp><br>
                  <size>3068954</size><br>
                  <open-size>21544431</open-size><br>
                </data><br>
                <data type="primary_db"><br>
                  <checksum
type="sha256">be82475aeeb87a11dd1f9ea06643250e261d59748fb156b0eec34147fed1a7c1</checksum><br>
                  <open-checksum
type="sha256">336357f05119ab0c1fb467c66ba87a6208122daa4015a2449e209390015b3152</open-checksum><br>
                  <location
href="repodata/be82475aeeb87a11dd1f9ea06643250e261d59748fb156b0eec34147fed1a7c1-primary.sqlite.bz2"/><br>
                  <timestamp>1554392493</timestamp><br>
                  <size>7187574</size><br>
                  <open-size>32471040</open-size><br>
                  <database_version>0</database_version><br>
                </data><br>
                <data type="filelists_db"><br>
                  <checksum
type="sha256">6489dfe3ebebb0634fc099e61590be44294b862c80dbfae7dd3bcad0c24ba979</checksum><br>
                  <open-checksum
type="sha256">3dcd73752d72cab252c1dd57775848e37ba1ecd3c25e8d1f7c5dd127c2a06bba</open-checksum><br>
                  <location
href="repodata/6489dfe3ebebb0634fc099e61590be44294b862c80dbfae7dd3bcad0c24ba979-filelists.sqlite.bz2"/><br>
                  <timestamp>1554392498</timestamp><br>
                  <size>12208179</size><br>
                  <open-size>71156736</open-size><br>
                  <database_version>0</database_version><br>
                </data><br>
                <data type="other_db"><br>
                  <checksum
type="sha256">135171884f8ec34f1d14031fae5d1b57c61c5e1b94bd629717b750797ed97433</checksum><br>
                  <open-checksum
type="sha256">91878d8e0b98332881a523d37108e2c2ddc4841e7fd87930cf79158b3c26f7e6</open-checksum><br>
                  <location
href="repodata/135171884f8ec34f1d14031fae5d1b57c61c5e1b94bd629717b750797ed97433-other.sqlite.bz2"/><br>
                  <timestamp>1554392500</timestamp><br>
                  <size>3712058</size><br>
                  <open-size>19383296</open-size><br>
                  <database_version>0</database_version><br>
                </data><br>
                <data type="updateinfo"><br>
                  <checksum
type="sha256">ef3f9835290684425783f8f5749c2a10a84e0520e19b7d23705678ec5f97f596</checksum><br>
                  <open-checksum
type="sha256">a5a0da957e8943a4b148e8f49e2041e52ead39a0e616ea308bfda31c60c8af73</open-checksum><br>
                  <location
href="repodata/ef3f9835290684425783f8f5749c2a10a84e0520e19b7d23705678ec5f97f596-updateinfo.xml.gz"/><br>
                  <timestamp>1554392489</timestamp><br>
                  <size>1418086</size><br>
                  <open-size>18792560</open-size><br>
                </data><br>
              </repomd><br>
            </tt><br>
            <blockquote type="cite">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div class="gmail_quote">
                    <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><br>
                                </div>
                                <div>And if the bind ip for content app
                                  is localhost</div>
                                <div>either :</div>
                                <div>$ netstat -an | grep 8080</div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
            <tt>[vagrant@dev-pulp-server ~]$  netstat -an | grep 8080</tt><tt><br>
            </tt><tt>tcp        0      0 <a
                href="http://127.0.0.1:8080" target="_blank"
                moz-do-not-send="true">127.0.0.1:8080</a>         
              0.0.0.0:*               LISTEN   </tt>  <br>
            <br>
            <blockquote type="cite">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div class="gmail_quote">
                    <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><br>
                                </div>
                                <div>or:</div>
                                <div>$ sudo systemctl status 
                                  pulp-content-app<br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
            <tt>[root@dev-pulp-server ~]# sudo systemctl status 
              pulp-content-app<br>
              ● pulp-content-app.service - Pulp Content App<br>
                 Loaded: loaded
              (/usr/lib/systemd/system/pulp-content-app.service;
              enabled; vendor preset: disabled)<br>
                 Active: active (running) since Fri 2019-04-05 10:16:18
              UTC; 4min 21s ago<br>
               Main PID: 6036 (gunicorn)<br>
                 CGroup: /system.slice/pulp-content-app.service<br>
                         ├─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...<br>
                         ├─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...<br>
                         └─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...<br>
              <br>
              Apr 05 10:16:18 dev-pulp-server.ptci.dev systemd[1]:
              Started Pulp Content App.<br>
              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<br>
              Apr 05 10:16:18 dev-pulp-server.ptci.dev gunicorn[6036]:
              [2019-04-05 10:16:18 +0000] [6036] [INFO] Listening at: <a
                class="gmail-m_6478926511723292857moz-txt-link-freetext"
                href="http://127.0.0.1:8080" target="_blank"
                moz-do-not-send="true">http://127.0.0.1:8080</a> (6036)<br>
              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<br>
              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<br>
              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<br>
            </tt><br>
            <br>
            <blockquote type="cite">
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div class="gmail_quote">
                    <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><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"
                                    moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="https://github.com/pulp/ansible-pulp/" target="_blank"
                                        moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="https://epel.mirror.it2go.eu/7/x86_64/" target="_blank"
                                          moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="http://localhost:8000/pulp/api/v3/publishers/rpm/rpm/"
                                          target="_blank"
                                          moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="http://localhost:8000/pulp/api/v3/distributions/" target="_blank"
                                          moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="http://10.0.148.220:8080/pulp/content/epel/" target="_blank"
                                        moz-do-not-send="true">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_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="http://download.fedoraproject.org/pub/epel/7/$basearch"
                                        target="_blank"
                                        moz-do-not-send="true">http://download.fedoraproject.org/pub/epel/7/$basearch</a></tt><tt><br>
                                    </tt><tt>metalink=<a
class="gmail-m_6478926511723292857gmail-m_2312496428044907727gmail-m_-269050613899003825m_-2510857503864030228gmail-m_8981862220820042770moz-txt-link-freetext"
href="https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch"
                                        target="_blank"
                                        moz-do-not-send="true">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"
                                          moz-do-not-send="true">mirror.unix-solutions.be</a></tt><tt><br>
                                      </tt><tt> * extras: <a
                                          href="http://mirror.unix-solutions.be"
                                          target="_blank"
                                          moz-do-not-send="true">mirror.unix-solutions.be</a></tt><tt><br>
                                      </tt><tt> * updates: <a
                                          href="http://mirror.unix-solutions.be"
                                          target="_blank"
                                          moz-do-not-send="true">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"
                                          moz-do-not-send="true">mirror.unix-solutions.be</a></tt><tt><br>
                                      </tt><tt> * extras: <a
                                          href="http://mirror.unix-solutions.be"
                                          target="_blank"
                                          moz-do-not-send="true">mirror.unix-solutions.be</a></tt><tt><br>
                                      </tt><tt> * updates: <a
                                          href="http://mirror.unix-solutions.be"
                                          target="_blank"
                                          moz-do-not-send="true">mirror.unix-solutions.be</a></tt><tt><br>
                                      </tt><tt><a
class="gmail-m_6478926511723292857gmail-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"
                                          moz-do-not-send="true">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"
                                          moz-do-not-send="true">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_6478926511723292857gmail-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"
                                          moz-do-not-send="true">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"
                                          moz-do-not-send="true">10.0.148.220:8080</a>;
                                        Connection refused"</tt><tt><br>
                                      </tt><tt>...</tt><br>
                                      <tt><tt><a
class="gmail-m_6478926511723292857gmail-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"
                                            moz-do-not-send="true">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"
                                            moz-do-not-send="true">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_6478926511723292857gmail-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"
                                          moz-do-not-send="true">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"
                                          moz-do-not-send="true">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_6478926511723292857gmail-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:part36.1440990D.1C2E463D@unamur.be"
                                          style="display: block; margin:
                                          1em 0em;" class="">
                                        <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"
                                            moz-do-not-send="true">juan.cabrera@unamur.be</a><br>
                                          <a
                                            style="color:rgb(105,190,40)"
href="http://staff.unamur.be/jbcabrer" target="_blank"
                                            moz-do-not-send="true">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"
                                    moz-do-not-send="true">Pulp-list@redhat.com</a><br>
                                  <a
                                    href="https://www.redhat.com/mailman/listinfo/pulp-list"
                                    rel="noreferrer" target="_blank"
                                    moz-do-not-send="true">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" moz-do-not-send="true">Pulp-list@redhat.com</a><br>
                      <a
                        href="https://www.redhat.com/mailman/listinfo/pulp-list"
                        rel="noreferrer" target="_blank"
                        moz-do-not-send="true">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"
                    moz-do-not-send="true">Pulp-list@redhat.com</a><br>
                  <a
                    href="https://www.redhat.com/mailman/listinfo/pulp-list"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote>
              </div>
              <br clear="all">
              <br>
              -- <br>
              <div dir="ltr"
                class="gmail-m_6478926511723292857gmail_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>
              <br>
              <fieldset
                class="gmail-m_6478926511723292857mimeAttachmentHeader"></fieldset>
              <pre class="gmail-m_6478926511723292857moz-quote-pre">_______________________________________________
Pulp-list mailing list
<a class="gmail-m_6478926511723292857moz-txt-link-abbreviated" href="mailto:Pulp-list@redhat.com" target="_blank" moz-do-not-send="true">Pulp-list@redhat.com</a>
<a class="gmail-m_6478926511723292857moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank" moz-do-not-send="true">https://www.redhat.com/mailman/listinfo/pulp-list</a></pre>
            </blockquote>
            <div class="gmail-m_6478926511723292857moz-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:part47.877A7979.FA2E2F1C@unamur.be"
                  style="display: block; margin: 1em 0em;" class="">
                <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"
                    moz-do-not-send="true">juan.cabrera@unamur.be</a><br>
                  <a style="color:rgb(105,190,40)"
                    href="http://staff.unamur.be/jbcabrer"
                    target="_blank" moz-do-not-send="true">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"
            moz-do-not-send="true">Pulp-list@redhat.com</a><br>
          <a href="https://www.redhat.com/mailman/listinfo/pulp-list"
            rel="noreferrer" target="_blank" moz-do-not-send="true">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>
    </blockquote>
    <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:part52.506FE1DF.F094DFC9@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>