Publish CV: Katello::Errors::Pulp3Error: None

Hello Foreman community,

at first, I’d like to mention I found a similar thread here: Repo sync receiving : Katello::Errors::Pulp3Error: None
with the same exception, but during a different situation (repository sync <> publish CV).

Problem:
When publishing a Content View with a yum filter (exclude, all repositories), Pulp fails with the following exception: Katello::Errors::Pulp3Error: None

Expected outcome:
The Content View should be published successfully without the packages I have specified.

Foreman and Proxy versions:
Foreman: 2.1.2

Foreman and Proxy plugin versions:
Katello: 3.16

Distribution and version:
Oracle Linux 7.8

Other relevant data:
Specifically, I’m using the following repositories for my CV

https://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
https://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/x86_64/
https://public-yum.oracle.com/repo/OracleLinux/OL7/addons/x86_64/
https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/

with the following filter rules (exclude, rpm)

rhn-check
rhn-client-tools
rhnlib
rhnsd
rhn-setup
rhn-setup-gnome
yum-plugin-ulninfo
yum-rhn-plugin

to get subscription manager running later on.

Task error

{"pulp_tasks"=>
  [{"pulp_href"=>"/pulp/api/v3/tasks/1c7dd20d-2a74-4724-847a-536f2971e1cc/",
    "pulp_created"=>"2020-09-14T14:18:04.903+00:00",
    "state"=>"completed",
    "name"=>"pulpcore.app.tasks.repository.add_and_remove",
    "started_at"=>"2020-09-14T14:18:04.976+00:00",
    "finished_at"=>"2020-09-14T14:18:05.110+00:00",
    "worker"=>"/pulp/api/v3/workers/365e371a-d21d-437c-bcc6-8fe426e238c2/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>[],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/138df107-c579-4a9e-abaf-e8fe14e52780/"]},
   {"pulp_href"=>"/pulp/api/v3/tasks/a4e1b9b0-9270-4b61-87cd-58e2710ea43b/",
    "pulp_created"=>"2020-09-14T14:18:04.976+00:00",
    "state"=>"completed",
    "name"=>"pulpcore.app.tasks.repository.add_and_remove",
    "started_at"=>"2020-09-14T14:18:05.057+00:00",
    "finished_at"=>"2020-09-14T14:18:05.216+00:00",
    "worker"=>"/pulp/api/v3/workers/bdc417f5-6476-460a-b116-5ae654812f85/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>[],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/d70ea05e-1777-44af-aec3-ae29df1eebf2/"]},
   {"pulp_href"=>"/pulp/api/v3/tasks/f6d3a7cd-4ef4-467e-bfab-47c73694ac81/",
    "pulp_created"=>"2020-09-14T14:18:05.042+00:00",
    "state"=>"completed",
    "name"=>"pulpcore.app.tasks.repository.add_and_remove",
    "started_at"=>"2020-09-14T14:18:05.394+00:00",
    "finished_at"=>"2020-09-14T14:18:05.533+00:00",
    "worker"=>"/pulp/api/v3/workers/365e371a-d21d-437c-bcc6-8fe426e238c2/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>[],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/15e6f90b-ba41-4ea1-a9c7-36b29f90124d/"]},
   {"pulp_href"=>"/pulp/api/v3/tasks/eaee8e06-f907-46b4-a841-1854b1ed8dc1/",
    "pulp_created"=>"2020-09-14T14:18:05.134+00:00",
    "state"=>"completed",
    "name"=>"pulpcore.app.tasks.repository.add_and_remove",
    "started_at"=>"2020-09-14T14:18:05.473+00:00",
    "finished_at"=>"2020-09-14T14:18:05.638+00:00",
    "worker"=>"/pulp/api/v3/workers/bdc417f5-6476-460a-b116-5ae654812f85/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>
     ["/pulp/api/v3/repositories/rpm/rpm/f0d263cc-dbec-4633-8436-96289b5d1451/versions/15/"],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/f0d263cc-dbec-4633-8436-96289b5d1451/"]},
   {"pulp_href"=>"/pulp/api/v3/tasks/94e81e24-2376-4a65-9901-64a293266c3e/",
    "pulp_created"=>"2020-09-14T14:18:05.170+00:00",
    "state"=>"completed",
    "name"=>"pulpcore.app.tasks.repository.add_and_remove",
    "started_at"=>"2020-09-14T14:18:05.757+00:00",
    "finished_at"=>"2020-09-14T14:18:05.888+00:00",
    "worker"=>"/pulp/api/v3/workers/bdc417f5-6476-460a-b116-5ae654812f85/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>
     ["/pulp/api/v3/repositories/rpm/rpm/f0d263cc-dbec-4633-8436-96289b5d1451/versions/16/"],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/f0d263cc-dbec-4633-8436-96289b5d1451/"]},
   {"pulp_href"=>"/pulp/api/v3/tasks/841981d4-e60f-48f0-9246-a167342ac7ea/",
    "pulp_created"=>"2020-09-14T14:18:35.057+00:00",
    "state"=>"failed",
    "name"=>"pulp_rpm.app.tasks.copy.copy_content",
    "started_at"=>"2020-09-14T14:18:35.738+00:00",
    "finished_at"=>"2020-09-14T14:18:36.274+00:00",
    "error"=>{"traceback"=>"", "description"=>"None"},
    "worker"=>"/pulp/api/v3/workers/365e371a-d21d-437c-bcc6-8fe426e238c2/",
    "child_tasks"=>[],
    "progress_reports"=>[],
    "created_resources"=>[],
    "reserved_resources_record"=>
     ["/pulp/api/v3/repositories/rpm/rpm/8b94084c-5932-4241-af20-09f79b7118f4/",
      "/pulp/api/v3/repositories/rpm/rpm/26cdc656-c48e-4a39-98b7-c864f81bc825/",
      "/pulp/api/v3/repositories/rpm/rpm/beb6f889-c754-441c-b92e-417e62be2ab0/",
      "/pulp/api/v3/repositories/rpm/rpm/ddfd5270-85cf-47d0-bf6f-baf24e4b51f1/",
      "/pulp/api/v3/repositories/rpm/rpm/138df107-c579-4a9e-abaf-e8fe14e52780/",
      "/pulp/api/v3/repositories/rpm/rpm/d70ea05e-1777-44af-aec3-ae29df1eebf2/",
      "/pulp/api/v3/repositories/rpm/rpm/15e6f90b-ba41-4ea1-a9c7-36b29f90124d/",
      "/pulp/api/v3/repositories/rpm/rpm/f0d263cc-dbec-4633-8436-96289b5d1451/"]}],
 "task_groups"=>[],
 "poll_attempts"=>{"total"=>3, "failed"=>3}}
 
Exception:
Katello::Errors::Pulp3Error: None

Journalctl

Sep 14 16:18:04 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: 1c7dd20d-2a74-4724-847a-536f2971e1cc
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: a4e1b9b0-9270-4b61-87cd-58e2710ea43b
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: Job OK (1c7dd20d-2a74-4724-847a-536f2971e1cc)
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: f0a7b2cb-ecb5-4c81-8ebb-3d4ed2cc2e21
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: Job OK (f0a7b2cb-ecb5-4c81-8ebb-3d4ed2cc2e21)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (a4e1b9b0-9270-4b61-87cd-58e2710ea43b)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: 99c433ca-5641-46c0-8e16-e74c4c088f45
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (99c433ca-5641-46c0-8e16-e74c4c088f45)
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: f6d3a7cd-4ef4-467e-bfab-47c73694ac81
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: eaee8e06-f907-46b4-a841-1854b1ed8dc1
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: Job OK (f6d3a7cd-4ef4-467e-bfab-47c73694ac81)
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: 966cd19b-4e9b-4b34-a12e-c35ad187d08b
Sep 14 16:18:05 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: Job OK (966cd19b-4e9b-4b34-a12e-c35ad187d08b)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (eaee8e06-f907-46b4-a841-1854b1ed8dc1)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: 6c2827d9-5d84-4582-9fb1-4f8c43cbeab9
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (6c2827d9-5d84-4582-9fb1-4f8c43cbeab9)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: 94e81e24-2376-4a65-9901-64a293266c3e
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (94e81e24-2376-4a65-9901-64a293266c3e)
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: e47dba61-4b38-4d4c-90ae-34dc91208d46
Sep 14 16:18:05 foreman pulpcore-worker-1[1331]: pulp: rq.worker:INFO: 1331@foreman.example.com: Job OK (e47dba61-4b38-4d4c-90ae-34dc91208d46)
Sep 14 16:18:35 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: 841981d4-e60f-48f0-9246-a167342ac7ea
Sep 14 16:18:36 foreman pulpcore-worker-2[1326]: python3: ../src/repodata.c:2929: repodata_add_dirstr: Assertion `dir' failed.
Sep 14 16:18:36 foreman pulpcore-worker-2[1326]: pulp: rq.worker:WARNING: Moving job to FailedJobRegistry (work-horse terminated unexpectedly; waitpid returned 134)
Sep 14 16:18:36 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: d2b040c4-a3d7-47f8-a0c2-a58bcd1905dd
Sep 14 16:18:36 foreman pulpcore-worker-2[1326]: pulp: rq.worker:INFO: 1326@foreman.example.com: Job OK (d2b040c4-a3d7-47f8-a0c2-a58bcd1905dd)

The actual cause seems to be the filter itself, since I’ve tried to publish the CV without any filter rules, where it failed as well with the above-mentioned exception. Only by deleting the filter, I’m able to successfully publish my Oracle Linux 7 CV.

I’ll be happy to provide further information.

Any help on this would be much appreciated :slight_smile: