<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I see in the ticket that:<br>
    </p>
    <p>"We decided that we'll allow users to create distributions
      without distributing anything. This could be to reserve a path
      namespace, take a publication offline quickly without having to
      delete the distribution, etc"</p>
    <p>So, if I'm not wrong, the distribution can be reused and
      recreating the repo and the publication and doing again<br>
    </p>
    <p><code class="docutils literal notranslate"> <span class="pre">http</span>
        <span class="pre">POST</span> <span class="pre"><a class="moz-txt-link-freetext" href="http://localhost:24817/pulp/api/v3/distributions/rpm/rpm/">http://localhost:24817/pulp/api/v3/distributions/rpm/rpm/</a></span>
        <span class="pre">name='baz'</span> <span class="pre">base_path='foo'</span>
        <span class="pre">publication=$PUBLICATION_HREF</span></code> </p>
    <div class="moz-cite-prefix">no new distribution will be created and
      the publication will be set to the already existing distribution,
      is that correct?</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Juan<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 22/05/19 16:52, David Davis wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHa=2Wk8nZULTsUXLFMToJ0QWZnDCiZqNOtbYhvM0+C3bXhGwA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Actually I think this is the expected behavior.
        Distributions can exist without serving a publication[0] so I
        don't think deleting a repository or publication should in turn
        delete the distribution.
        <div><br>
        </div>
        <div>[0] <a href="https://pulp.plan.io/issues/4840"
            target="_blank" moz-do-not-send="true">https://pulp.plan.io/issues/4840</a><br
            clear="all">
          <div>
            <div dir="ltr" class="m_-3621758024562144344gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div><br>
                        </div>
                        <div>David<br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at 10:46
          AM 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">No it is not. Please file an issue at <a
              href="https://pulp.plan.io/issues/new" target="_blank"
              moz-do-not-send="true">https://pulp.plan.io/issues/new</a><br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at
              10:13 AM 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,</p>
                <p>I'm updating my ansible/vagrant project to take into
                  account the new release 3.0.0rc2.</p>
                <p>I use now:</p>
                <p>pulp_source_dir: <a
class="gmail-m_-3621758024562144344gmail-m_-2484890925115899352gmail-m_2854647869029740624moz-txt-link-rfc2396E"
href="mailto:git+https://github.com/pulp/pulpcore.git@3.0.0rc2"
                    target="_blank" moz-do-not-send="true">"git+https://github.com/pulp/pulpcore.git@3.0.0rc2"</a><br>
                  pulp_plugin_source_dir: <a
class="gmail-m_-3621758024562144344gmail-m_-2484890925115899352gmail-m_2854647869029740624moz-txt-link-rfc2396E"
href="mailto:git+https://github.com/pulp/pulpcore-plugin.git@0.1.0rc2"
                    target="_blank" moz-do-not-send="true">"git+https://github.com/pulp/pulpcore-plugin.git@0.1.0rc2"</a><br>
                    pulp-rpm:<br>
                      app_label: "rpm"<br>
                      source_dir: <a
class="gmail-m_-3621758024562144344gmail-m_-2484890925115899352gmail-m_2854647869029740624moz-txt-link-rfc2396E"
href="mailto:git+https://github.com/pulp/pulp_rpm.git@3.0.0b3"
                    target="_blank" moz-do-not-send="true">"git+https://github.com/pulp/pulp_rpm.git@3.0.0b3"</a><br>
                  <br>
                  I realized that when removing a repository, the
                  publication that depends on it are removed but that
                  the distribution that depends on the publication are
                  still there.</p>
                <p>Is this the expected result?</p>
                <p>sincerely<br>
                </p>
                <p>Juan</p>
                <p>PS: Some details:</p>
                <p>- After doing all steps in the <a
href="https://pulp-rpm.readthedocs.io/en/latest/workflows/create_sync_publish.html#"
                    target="_blank" moz-do-not-send="true">documentation</a>
                  I delete the repo</p>
                <p><tt>[vagrant@dev-pulp-server ~]$ http DELETE
                    $PORT$REPO_HREF</tt><tt><br>
                  </tt><tt>HTTP/1.1 202 Accepted</tt><tt><br>
                  </tt><tt>Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS</tt><tt><br>
                  </tt><tt>Connection: close</tt><tt><br>
                  </tt><tt>Content-Length: 67</tt><tt><br>
                  </tt><tt>Content-Type: application/json</tt><tt><br>
                  </tt><tt>Date: Wed, 22 May 2019 14:05:42 GMT</tt><tt><br>
                  </tt><tt>Server: gunicorn/19.9.0</tt><tt><br>
                  </tt><tt>Vary: Accept, Cookie</tt><tt><br>
                  </tt><tt>X-Frame-Options: SAMEORIGIN</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>{</tt><tt><br>
                  </tt><tt>    "task":
                    "/pulp/api/v3/tasks/d5e34bc4-f9fc-4184-b991-7619a888a57b/"</tt><tt><br>
                  </tt><tt>}</tt><br>
                </p>
                <p>The distribution is still there but with <b>"publication":
                    null</b></p>
                <p><tt>[vagrant@dev-pulp-server ~]$ http
                    $PORT/pulp/api/v3/distributions/rpm/rpm/</tt><tt><br>
                  </tt><tt>HTTP/1.1 200 OK</tt><tt><br>
                  </tt><tt>Allow: GET, POST, HEAD, OPTIONS</tt><tt><br>
                  </tt><tt>Connection: close</tt><tt><br>
                  </tt><tt>Content-Length: 308</tt><tt><br>
                  </tt><tt>Content-Type: application/json</tt><tt><br>
                  </tt><tt>Date: Wed, 22 May 2019 14:05:47 GMT</tt><tt><br>
                  </tt><tt>Server: gunicorn/19.9.0</tt><tt><br>
                  </tt><tt>Vary: Accept, Cookie</tt><tt><br>
                  </tt><tt>X-Frame-Options: SAMEORIGIN</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>{</tt><tt><br>
                  </tt><tt>    "count": 1, </tt><tt><br>
                  </tt><tt>    "next": null, </tt><tt><br>
                  </tt><tt>    "previous": null, </tt><tt><br>
                  </tt><tt>    "results": [</tt><tt><br>
                  </tt><tt>        {</tt><tt><br>
                  </tt><tt>            "_created":
                    "2019-05-22T14:04:14.749447Z", </tt><tt><br>
                  </tt><tt>            "_href":
"/pulp/api/v3/distributions/rpm/rpm/2b2ad506-1ea4-48ec-8406-d941554ca54e/",
                  </tt><tt><br>
                  </tt><tt>            "base_path": "foo", </tt><tt><br>
                  </tt><tt>            "base_url": "<a
                      href="http://dev-pulp-server.ptci.dev:8080/pulp/content/foo"
                      target="_blank" moz-do-not-send="true">dev-pulp-server.ptci.dev:8080/pulp/content/foo</a>",
                  </tt><tt><br>
                  </tt><tt>            "content_guard": null, </tt><tt><br>
                  </tt><tt>            "name": "baz", </tt><tt><br>
                  </tt><tt>            <b>"publication": null</b></tt><tt><br>
                  </tt><tt>        }</tt><tt><br>
                  </tt><tt>    ]</tt><tt><br>
                  </tt><tt>}</tt><tt><br>
                  </tt></p>
                <p>The publication has been removed:</p>
                <p><tt>[vagrant@dev-pulp-server ~]$ http
                    $PORT/pulp/api/v3/publications/rpm/rpm/</tt><tt><br>
                  </tt><tt>HTTP/1.1 200 OK</tt><tt><br>
                  </tt><tt>Allow: GET, POST, HEAD, OPTIONS</tt><tt><br>
                  </tt><tt>Connection: close</tt><tt><br>
                  </tt><tt>Content-Length: 52</tt><tt><br>
                  </tt><tt>Content-Type: application/json</tt><tt><br>
                  </tt><tt>Date: Wed, 22 May 2019 14:06:17 GMT</tt><tt><br>
                  </tt><tt>Server: gunicorn/19.9.0</tt><tt><br>
                  </tt><tt>Vary: Accept, Cookie</tt><tt><br>
                  </tt><tt>X-Frame-Options: SAMEORIGIN</tt><tt><br>
                  </tt><tt><br>
                  </tt><tt>{</tt><tt><br>
                  </tt><tt>    "count": 0, </tt><tt><br>
                  </tt><tt>    "next": null, </tt><tt><br>
                  </tt><tt>    "previous": null, </tt><tt><br>
                  </tt><tt>    "results": []</tt><tt><br>
                  </tt><tt>}</tt><br>
                  <br>
                </p>
                <div
class="gmail-m_-3621758024562144344gmail-m_-2484890925115899352gmail-m_2854647869029740624moz-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:16ae000aeef9463ff1c1" style="display:
                      block; margin: 1em 0em;" moz-do-not-send="true">
                    <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>
          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>
    </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:part17.F90CF5BC.DD574C9C@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>