<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">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">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">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">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">"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">"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">"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">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">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;">
        <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>
_______________________________________________<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>