<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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="moz-txt-link-rfc2396E" href="mailto:git+https://github.com/pulp/pulpcore.git@3.0.0rc2">"git+https://github.com/pulp/pulpcore.git@3.0.0rc2"</a><br>
      pulp_plugin_source_dir:
      <a class="moz-txt-link-rfc2396E" href="mailto:git+https://github.com/pulp/pulpcore-plugin.git@0.1.0rc2">"git+https://github.com/pulp/pulpcore-plugin.git@0.1.0rc2"</a><br>
        pulp-rpm:<br>
          app_label: "rpm"<br>
          source_dir: <a class="moz-txt-link-rfc2396E" href="mailto:git+https://github.com/pulp/pulp_rpm.git@3.0.0b3">"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 moz-do-not-send="true"
href="https://pulp-rpm.readthedocs.io/en/latest/workflows/create_sync_publish.html#">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":
        "dev-pulp-server.ptci.dev:8080/pulp/content/foo", </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="moz-signature">-- <br>
      <div style="font-family: Verdana, Helvetica, Arial, sans-serif;
        font-size: 8pt; font-weight: normal; color: #616365;"> <img
          src="cid:part2.BC1CF28F.0BB2A849@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>