View Issue Details

IDProjectCategoryView StatusLast Update
0000050AlmaLinux-8-OTHERpublic2022-05-24 00:17
Reporterbrimioulle Assigned Toalukoshko  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Summary0000050: Alma AppStream, BaseOS, and Kickstart Repository cannot be synced with pulp/katello on foreman
DescriptionWhen trying to synchronize the Alma 8 AppStream, BaseOS and Kickstart repositories the sync throws following error:

 "AttributeError: 'Repository' object has no attribute 'repo_id'\n",

Exception:
Katello::Errors::PulpError: PLP0000: 'Repository' object has no attribute 'repo_id'


In February the repositories for the beta version synchronized without any error. Has something in the repository structure changed?
TagsNo tags attached.
abrt_hash
URL

Activities

brimioulle

2021-04-01 13:51

reporter   ~0000102

Affected Repos are the following:
https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/
https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os/
https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/kickstart/

alukoshko

2021-04-01 14:18

administrator   ~0000103

Hello and thanks for report.
So PowerTools and HighAvailability repos are OK?

alukoshko

2021-04-01 15:04

administrator   ~0000104

Actually we haven't changed anything in repos since beta.

brimioulle

2021-04-01 18:50

reporter   ~0000105

Haven't tested HighAvailability but yes, extras and PowerTools are ok.

Strange, the repo syncs broke at the moment when I switched from beta to the release versions ...

secker

2021-04-02 11:10

reporter   ~0000110

Hi,

we have that problem too.
PowerTools, HighAvailability and Extras Repos are providing valid Distribution Information. BaseOS and AppStream does not.

We´ve had the same problem with CloudLinux 8 in May 2020 -> #82641

alukoshko

2021-04-02 14:10

administrator   ~0000112

Thanks for details provided.
I'll take some time to reproduce and fix it.

alukoshko

2021-04-03 09:39

administrator   ~0000117

https://www.reddit.com/r/AlmaLinux/comments/mj3nex/almalinux_and_foreman_katello/gt8b9z8/?utm_source=reddit&utm_medium=web2x&context=3

secker

2021-04-06 07:52

reporter   ~0000124

Hi,

BaseOS is working now. But AppStream still fails during Katello Distribution Data Import.

alukoshko

2021-04-06 16:02

administrator   ~0000125

Could you please provide some more details?
Full log would be useful.

And what exact version of Foreman/Katello used? I'll try to reproduce.

brimioulle

2021-04-06 16:15

reporter   ~0000126

Hi, we are using foreman 2.1.3 (but also reproduced with 2.1.4) with katello 3.16.2.
The traceback is as follows:
--------------------------------------------------
Action:

Actions::Pulp::Repository::Sync

Input:

{"source_url"=>nil,
 "repo_id"=>3314,
 "smart_proxy_id"=>1,
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin",
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{"pulp_tasks"=>
  [{"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.sync.sync",
    "_href"=>"/pulp/api/v2/tasks/53bd24f3-c4cb-496f-a825-e17ec1ae2cd5/",
    "task_id"=>"53bd24f3-c4cb-496f-a825-e17ec1ae2cd5",
    "tags"=>
     ["pulp:repository:a9efe03c-6934-429c-87ad-0d62859cff7b",
      "pulp:action:sync"],
    "finish_time"=>"2021-04-06T02:00:24Z",
    "_ns"=>"task_status",
    "start_time"=>"2021-04-06T02:00:19Z",
    "traceback"=>nil,
    "spawned_tasks"=>
     [{"_href"=>"/pulp/api/v2/tasks/ebc66a85-9bd6-4e13-b075-744effba267e/",
       "task_id"=>"ebc66a85-9bd6-4e13-b075-744effba267e"}],
    "progress_report"=>
     {"yum_importer"=>
       {"content"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "details"=>
           {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
          "size_total"=>0,
          "size_left"=>0,
          "items_left"=>0},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "items_left"=>0},
        "modules"=>{"state"=>"FINISHED"},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}}},
    "queue"=>"reserved_resource_worker-0@orcharhino.demo.atix.dq2",
    "state"=>"finished",
    "worker_name"=>"reserved_resource_worker-0@orcharhino.demo.atix",
    "result"=>
     {"result"=>"success",
      "importer_id"=>"yum_importer",
      "exception"=>nil,
      "repo_id"=>"a9efe03c-6934-429c-87ad-0d62859cff7b",
      "traceback"=>nil,
      "started"=>"2021-04-06T02:00:19Z",
      "_ns"=>"repo_sync_results",
      "completed"=>"2021-04-06T02:00:24Z",
      "importer_type_id"=>"yum_importer",
      "error_message"=>nil,
      "summary"=>
       {"modules"=>{"state"=>"FINISHED"},
        "content"=>{"state"=>"FINISHED"},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>{"state"=>"FINISHED"},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}},
      "added_count"=>0,
      "removed_count"=>0,
      "updated_count"=>0,
      "id"=>"606bc0b824143f27c650b443",
      "details"=>
       {"modules"=>{"state"=>"FINISHED"},
        "content"=>
         {"size_total"=>0,
          "items_left"=>0,
          "items_total"=>0,
          "state"=>"FINISHED",
          "size_left"=>0,
          "details"=>
           {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
          "error_details"=>[]},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "items_left"=>0},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}}},
    "error"=>nil,
    "_id"=>{"$oid"=>"606bc0b28d181860021b0a95"},
    "id"=>"606bc0b28d181860021b0a95"},
   {"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.publish.publish",
    "_href"=>"/pulp/api/v2/tasks/ebc66a85-9bd6-4e13-b075-744effba267e/",
    "task_id"=>"ebc66a85-9bd6-4e13-b075-744effba267e",
    "tags"=>
     ["pulp:repository:a9efe03c-6934-429c-87ad-0d62859cff7b",
      "pulp:action:publish"],
    "finish_time"=>"2021-04-06T02:00:30Z",
    "_ns"=>"task_status",
    "start_time"=>"2021-04-06T02:00:30Z",
    "traceback"=>
     "Traceback (most recent call last):\n" +
     " File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\n" +
     " R = retval = fun(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 688, in __call__\n" +
     " return super(Task, self).__call__(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 110, in __call__\n" +
     " return super(PulpTask, self).__call__(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in __protected_call__\n" +
     " return self.run(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1142, in publish\n" +
     " result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1251, in check_publish\n" +
     " result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1303, in _do_publish\n" +
     " publish_report = publish_repo(transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 905, in wrap_f\n" +
     " return f(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py\", line 185, in publish_repo\n" +
     " return self._publisher.process_lifecycle()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 573, in process_lifecycle\n" +
     " super(PluginStep, self).process_lifecycle()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 164, in process_lifecycle\n" +
     " step.process()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 240, in process\n" +
     " self._process_block(item=item)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 302, in _process_block\n" +
     " self.process_main(item=item)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 991, in process_main\n" +
     " self._publish_distribution_packages_link(unit)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 1126, in _publish_distribution_packages_link\n" +
     " % {'repo': self.get_repo().repo_id, 'packagedir': package_path})\n" +
     "AttributeError: 'Repository' object has no attribute 'repo_id'\n",
    "spawned_tasks"=>[],
    "progress_report"=>
     {"a9efe03c-6934-429c-87ad-0d62859cff7b"=>
       [{"num_success"=>1,
         "description"=>"Initializing repo metadata",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"FINISHED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"bade4e82-bf2d-4263-9410-1631587e09cf",
         "num_processed"=>1},
        {"num_success"=>0,
         "description"=>"Publishing Distribution files",
         "step_type"=>"distribution",
         "items_total"=>1,
         "state"=>"FAILED",
         "error_details"=>
          [{"traceback"=>
             " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 240, in process\n" +
             " self._process_block(item=item)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 302, in _process_block\n" +
             " self.process_main(item=item)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 991, in process_main\n" +
             " self._publish_distribution_packages_link(unit)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 1126, in _publish_distribution_packages_link\n" +
             " % {'repo': self.get_repo().repo_id, 'packagedir': package_path})\n",
            "error"=>"'Repository' object has no attribute 'repo_id'"}],
         "details"=>"",
         "num_failures"=>1,
         "step_id"=>"3a465015-99a4-496c-b72c-2b78e020a2cb",
         "num_processed"=>1},
        {"num_success"=>0,
         "description"=>"Publishing RPMs",
         "step_type"=>"rpms",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"3202a248-1e2d-4930-9a37-c92c37b4defa",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Delta RPMs",
         "step_type"=>"drpms",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"fe786dfc-acf1-4633-abed-1a2e4f21d273",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Errata",
         "step_type"=>"errata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"17932483-6fca-44f5-8d74-e14122147407",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Modules",
         "step_type"=>"modules",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"d735789c-bafc-4af9-b65c-da54fb1e7b1e",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Comps file",
         "step_type"=>"comps",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"b60e5d52-5752-4aaf-b1e2-950ec310511a",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Metadata.",
         "step_type"=>"metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"1affa266-f6e3-42d8-8e60-84df0072ee92",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Closing repo metadata",
         "step_type"=>"close_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"f15a6d80-38d6-4a96-822d-25dd061d8e8f",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Generating sqlite files",
         "step_type"=>"generate sqlite",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"f760c0cd-f520-4aae-8c82-99da80fd23bc",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Removing old repodata",
         "step_type"=>"remove_old_repodata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"d48d03ba-53ca-4cc6-959f-63444127c737",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Generating HTML files",
         "step_type"=>"repoview",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"6e0dcf5c-ce5f-4ec5-b266-f73bbd9cd581",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing files to web",
         "step_type"=>"publish_directory",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"c4ff4e01-d902-4541-8acb-e7b5c789a4c7",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Writing Listings File",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"86ccd505-e429-46dc-827f-7ed4c2a2eec0",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Writing Listings File",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"2edb96ca-ad8a-4326-805f-5886e4a623d7",
         "num_processed"=>0}]},
    "queue"=>"reserved_resource_worker-3@orcharhino.demo.atix.dq2",
    "state"=>"error",
    "worker_name"=>"reserved_resource_worker-3@orcharhino.demo.atix",
    "result"=>nil,
    "error"=>
     {"code"=>"PLP0000",
      "data"=>{},
      "description"=>"'Repository' object has no attribute 'repo_id'",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"606bc0b88d181860021b1002"},
    "id"=>"606bc0b88d181860021b1002"}],
 "contents_changed"=>false,
 "poll_attempts"=>{"total"=>12, "failed"=>1}}

Exception:

Katello::Errors::PulpError: PLP0000: 'Repository' object has no attribute 'repo_id'

Backtrace:

/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/pulp/abstract_async_task.rb:121:in `block in external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/pulp/abstract_async_task.rb:119:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/pulp/abstract_async_task.rb:119:in `external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/pulp/repository/sync.rb:29:in `external_task='
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/polling.rb:100:in `poll_external_task_with_rescue'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/polling.rb:22:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/cancellable.rb:14:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/pulp/abstract_async_task.rb:45:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:571:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:32:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.2/app/lib/actions/middleware/remote_action.rb:16:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:in `wrap'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/progress.rb:31:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/progress.rb:17:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_request_id.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_request_id.rb:49:in `restore_current_request_id'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_request_id.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_timezone.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_timezone.rb:44:in `restore_curent_timezone'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_timezone.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_user.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_user.rb:44:in `restore_curent_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_user.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in `restore_current_taxonomies'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-2.0.2/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:32:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/world.rb:31:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:570:in `block (2 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:569:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:569:in `block in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in `block in with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in `with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:564:in `execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:285:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in `block (2 levels) in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan/steps/abstract.rb:167:in `with_meta_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in `open_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/director.rb:93:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in `block (2 levels) in perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors.rb:18:in `run_user_code'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in `block in perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in `with_telemetry'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in `perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/executors/sidekiq/serialization.rb:27:in `perform'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in `execute_job'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in `block (2 levels) in process'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in `invoke'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in `block in process'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in `local'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq.rb:37:in `block in <module:Sidekiq>'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in `stats'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in `global'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in `block in dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in `with_context'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in `dispatch'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in `process'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in `process_one'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in `watchdog'
/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in `block in safe_thread'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

Action:

Actions::Pulp::Repository::Sync

Input:

{"source_url"=>nil,
 "repo_id"=>3314,
 "smart_proxy_id"=>1,
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin",
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{"pulp_tasks"=>
  [{"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.sync.sync",
    "_href"=>"/pulp/api/v2/tasks/53bd24f3-c4cb-496f-a825-e17ec1ae2cd5/",
    "task_id"=>"53bd24f3-c4cb-496f-a825-e17ec1ae2cd5",
    "tags"=>
     ["pulp:repository:a9efe03c-6934-429c-87ad-0d62859cff7b",
      "pulp:action:sync"],
    "finish_time"=>"2021-04-06T02:00:24Z",
    "_ns"=>"task_status",
    "start_time"=>"2021-04-06T02:00:19Z",
    "traceback"=>nil,
    "spawned_tasks"=>
     [{"_href"=>"/pulp/api/v2/tasks/ebc66a85-9bd6-4e13-b075-744effba267e/",
       "task_id"=>"ebc66a85-9bd6-4e13-b075-744effba267e"}],
    "progress_report"=>
     {"yum_importer"=>
       {"content"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "details"=>
           {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
          "size_total"=>0,
          "size_left"=>0,
          "items_left"=>0},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "items_left"=>0},
        "modules"=>{"state"=>"FINISHED"},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}}},
    "queue"=>"reserved_resource_worker-0@orcharhino.demo.atix.dq2",
    "state"=>"finished",
    "worker_name"=>"reserved_resource_worker-0@orcharhino.demo.atix",
    "result"=>
     {"result"=>"success",
      "importer_id"=>"yum_importer",
      "exception"=>nil,
      "repo_id"=>"a9efe03c-6934-429c-87ad-0d62859cff7b",
      "traceback"=>nil,
      "started"=>"2021-04-06T02:00:19Z",
      "_ns"=>"repo_sync_results",
      "completed"=>"2021-04-06T02:00:24Z",
      "importer_type_id"=>"yum_importer",
      "error_message"=>nil,
      "summary"=>
       {"modules"=>{"state"=>"FINISHED"},
        "content"=>{"state"=>"FINISHED"},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>{"state"=>"FINISHED"},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}},
      "added_count"=>0,
      "removed_count"=>0,
      "updated_count"=>0,
      "id"=>"606bc0b824143f27c650b443",
      "details"=>
       {"modules"=>{"state"=>"FINISHED"},
        "content"=>
         {"size_total"=>0,
          "items_left"=>0,
          "items_total"=>0,
          "state"=>"FINISHED",
          "size_left"=>0,
          "details"=>
           {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
          "error_details"=>[]},
        "comps"=>{"state"=>"FINISHED"},
        "purge_duplicates"=>{"state"=>"FINISHED"},
        "distribution"=>
         {"items_total"=>0,
          "state"=>"FINISHED",
          "error_details"=>[],
          "items_left"=>0},
        "errata"=>{"state"=>"FINISHED"},
        "metadata"=>{"state"=>"FINISHED"}}},
    "error"=>nil,
    "_id"=>{"$oid"=>"606bc0b28d181860021b0a95"},
    "id"=>"606bc0b28d181860021b0a95"},
   {"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.publish.publish",
    "_href"=>"/pulp/api/v2/tasks/ebc66a85-9bd6-4e13-b075-744effba267e/",
    "task_id"=>"ebc66a85-9bd6-4e13-b075-744effba267e",
    "tags"=>
     ["pulp:repository:a9efe03c-6934-429c-87ad-0d62859cff7b",
      "pulp:action:publish"],
    "finish_time"=>"2021-04-06T02:00:30Z",
    "_ns"=>"task_status",
    "start_time"=>"2021-04-06T02:00:30Z",
    "traceback"=>
     "Traceback (most recent call last):\n" +
     " File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 367, in trace_task\n" +
     " R = retval = fun(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 688, in __call__\n" +
     " return super(Task, self).__call__(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 110, in __call__\n" +
     " return super(PulpTask, self).__call__(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 622, in __protected_call__\n" +
     " return self.run(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1142, in publish\n" +
     " result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1251, in check_publish\n" +
     " result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 1303, in _do_publish\n" +
     " publish_report = publish_repo(transfer_repo, conduit, call_config)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 905, in wrap_f\n" +
     " return f(*args, **kwargs)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py\", line 185, in publish_repo\n" +
     " return self._publisher.process_lifecycle()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 573, in process_lifecycle\n" +
     " super(PluginStep, self).process_lifecycle()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 164, in process_lifecycle\n" +
     " step.process()\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 240, in process\n" +
     " self._process_block(item=item)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 302, in _process_block\n" +
     " self.process_main(item=item)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 991, in process_main\n" +
     " self._publish_distribution_packages_link(unit)\n" +
     " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 1126, in _publish_distribution_packages_link\n" +
     " % {'repo': self.get_repo().repo_id, 'packagedir': package_path})\n" +
     "AttributeError: 'Repository' object has no attribute 'repo_id'\n",
    "spawned_tasks"=>[],
    "progress_report"=>
     {"a9efe03c-6934-429c-87ad-0d62859cff7b"=>
       [{"num_success"=>1,
         "description"=>"Initializing repo metadata",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"FINISHED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"bade4e82-bf2d-4263-9410-1631587e09cf",
         "num_processed"=>1},
        {"num_success"=>0,
         "description"=>"Publishing Distribution files",
         "step_type"=>"distribution",
         "items_total"=>1,
         "state"=>"FAILED",
         "error_details"=>
          [{"traceback"=>
             " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 240, in process\n" +
             " self._process_block(item=item)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 302, in _process_block\n" +
             " self.process_main(item=item)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 991, in process_main\n" +
             " self._publish_distribution_packages_link(unit)\n" +
             "\n" +
             " File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py\", line 1126, in _publish_distribution_packages_link\n" +
             " % {'repo': self.get_repo().repo_id, 'packagedir': package_path})\n",
            "error"=>"'Repository' object has no attribute 'repo_id'"}],
         "details"=>"",
         "num_failures"=>1,
         "step_id"=>"3a465015-99a4-496c-b72c-2b78e020a2cb",
         "num_processed"=>1},
        {"num_success"=>0,
         "description"=>"Publishing RPMs",
         "step_type"=>"rpms",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"3202a248-1e2d-4930-9a37-c92c37b4defa",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Delta RPMs",
         "step_type"=>"drpms",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"fe786dfc-acf1-4633-abed-1a2e4f21d273",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Errata",
         "step_type"=>"errata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"17932483-6fca-44f5-8d74-e14122147407",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Modules",
         "step_type"=>"modules",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"d735789c-bafc-4af9-b65c-da54fb1e7b1e",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Comps file",
         "step_type"=>"comps",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"b60e5d52-5752-4aaf-b1e2-950ec310511a",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing Metadata.",
         "step_type"=>"metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"1affa266-f6e3-42d8-8e60-84df0072ee92",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Closing repo metadata",
         "step_type"=>"close_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"f15a6d80-38d6-4a96-822d-25dd061d8e8f",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Generating sqlite files",
         "step_type"=>"generate sqlite",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"f760c0cd-f520-4aae-8c82-99da80fd23bc",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Removing old repodata",
         "step_type"=>"remove_old_repodata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"d48d03ba-53ca-4cc6-959f-63444127c737",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Generating HTML files",
         "step_type"=>"repoview",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"6e0dcf5c-ce5f-4ec5-b266-f73bbd9cd581",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Publishing files to web",
         "step_type"=>"publish_directory",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"c4ff4e01-d902-4541-8acb-e7b5c789a4c7",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Writing Listings File",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"86ccd505-e429-46dc-827f-7ed4c2a2eec0",
         "num_processed"=>0},
        {"num_success"=>0,
         "description"=>"Writing Listings File",
         "step_type"=>"initialize_repo_metadata",
         "items_total"=>1,
         "state"=>"NOT_STARTED",
         "error_details"=>[],
         "details"=>"",
         "num_failures"=>0,
         "step_id"=>"2edb96ca-ad8a-4326-805f-5886e4a623d7",
         "num_processed"=>0}]},
    "queue"=>"reserved_resource_worker-3@orcharhino.demo.atix.dq2",
    "state"=>"error",
    "worker_name"=>"reserved_resource_worker-3@orcharhino.demo.atix",
    "result"=>nil,
    "error"=>
     {"code"=>"PLP0000",
      "data"=>{},
      "description"=>"'Repository' object has no attribute 'repo_id'",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"606bc0b88d181860021b1002"},
    "id"=>"606bc0b88d181860021b1002"}],
 "contents_changed"=>false,
 "poll_attempts"=>{"total"=>12, "failed"=>1}}

Action:

Actions::Pulp::Orchestration::Repository::Sync

Input:

{"subaction_output"=>Step(4).output,
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin",
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::IndexContent

Input:

{"id"=>3314,
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::ErrataMail

Input:

{"repo"=>3314,
 "last_updated"=>"2021-03-31 15:35:17 UTC",
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::ErrataMail

Input:

{"repo"=>3314,
 "last_updated"=>"2021-03-31 15:35:17 UTC",
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Pulp::Repository::RegenerateApplicability

Input:

{"repository_id"=>3314,
 "contents_changed"=>Step(6).output[:contents_changed],
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin",
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::Sync

Input:

{"repository"=>{"id"=>3314, "name"=>"BaseOS", "label"=>"BaseOS"},
 "product"=>
  {"id"=>197,
   "name"=>"AlmaLinux 8",
   "label"=>"AlmaLinux_8",
   "cp_id"=>"234775337781"},
 "provider"=>{"id"=>1, "name"=>"Anonymous"},
 "organization"=>{"id"=>1, "name"=>"ATIX", "label"=>"ATIX"},
 "services_checked"=>["pulp", "pulp_auth"],
 "id"=>3314,
 "sync_result"=>Step(6).output,
 "skip_metadata_check"=>false,
 "validate_contents"=>false,
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::Sync

Input:

{"repository"=>{"id"=>3314, "name"=>"BaseOS", "label"=>"BaseOS"},
 "product"=>
  {"id"=>197,
   "name"=>"AlmaLinux 8",
   "label"=>"AlmaLinux_8",
   "cp_id"=>"234775337781"},
 "provider"=>{"id"=>1, "name"=>"Anonymous"},
 "organization"=>{"id"=>1, "name"=>"ATIX", "label"=>"ATIX"},
 "services_checked"=>["pulp", "pulp_auth"],
 "id"=>3314,
 "sync_result"=>Step(6).output,
 "skip_metadata_check"=>false,
 "validate_contents"=>false,
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

Action:

Actions::Katello::Repository::ImportApplicability

Input:

{"repo_id"=>3314,
 "contents_changed"=>Step(6).output[:contents_changed],
 "current_request_id"=>nil,
 "current_timezone"=>"UTC",
 "current_user_id"=>1,
 "current_organization_id"=>1,
 "current_location_id"=>nil}

Output:

{}

alukoshko

2021-06-08 19:50

administrator   ~0000266

Could you check if issue is still here with 8.4 repos?

secker

2021-06-09 06:44

reporter   ~0000267

Hi,

yes the error is still the same.

AppStream:
Distribution Information
No distribution available

mpetuhov

2021-06-30 16:37

reporter   ~0000294

Hello, i can't reproduce the error. I am using Foreman 2.1.4 with Katello 3.16.2. What OS are you use ? And could you describe algorithm that leads to the error ?

mpetuhov

2021-07-08 12:22

reporter   ~0000302

According to your traceback you are using Pulp 2, but since Katello 3.16 Pulp 3 is used
I am checked that issue on Foreman 1.24.3 with Katello 3.14.1 (Pulp 2) and no errors occurs.

We fixed issue with our repos: https://github.com/AlmaLinux/mirrors/issues/101
Maybe they are connected somehow.

Please check sync and write here if issue is still here.

alukoshko

2021-11-22 20:11

administrator   ~0000420

Hello.
Is this bug still actual? Anybody tried 8.5 repos?

Issue History

Date Modified Username Field Change
2021-04-01 10:01 brimioulle New Issue
2021-04-01 13:51 brimioulle Note Added: 0000102
2021-04-01 14:18 alukoshko Note Added: 0000103
2021-04-01 14:18 alukoshko Assigned To => alukoshko
2021-04-01 14:18 alukoshko Status new => assigned
2021-04-01 15:04 alukoshko Note Added: 0000104
2021-04-01 18:50 brimioulle Note Added: 0000105
2021-04-02 11:10 secker Note Added: 0000110
2021-04-02 14:10 alukoshko Note Added: 0000112
2021-04-03 09:39 alukoshko Note Added: 0000117
2021-04-06 07:52 secker Note Added: 0000124
2021-04-06 16:02 alukoshko Note Added: 0000125
2021-04-06 16:15 brimioulle Note Added: 0000126
2021-06-08 19:50 alukoshko Note Added: 0000266
2021-06-09 06:44 secker Note Added: 0000267
2021-06-30 16:37 mpetuhov Note Added: 0000294
2021-07-08 12:22 mpetuhov Note Added: 0000302
2021-11-22 20:11 alukoshko Note Added: 0000420
2022-05-24 00:17 alukoshko Status assigned => closed
2022-05-24 00:17 alukoshko Resolution open => unable to reproduce