Can't sync Appstream and PowerTools for Centos8

Problem:

Can’t sync PowerTools and Appstream

Expected outcome:

Full sync, without issues, as of BaseOS and CentOS Plus

Foreman and Proxy versions:

foreman-2.0.0-0.9.rc2
foreman-proxy-2.0.0-0.3
katello-3.15.0-0.5.rc1

Distribution and version:

CentOS 7.7

Other relevant data:
I have been trying for weeks and started on 3.12, I can’t seem to find the real origin of the error.

Here’s the error:

{“pulp_tasks”=>
[{“exception”=>nil,
“task_type”=>“pulp.server.managers.repo.sync.sync”,
“_href”=>"/pulp/api/v2/tasks/8becebd0-f51a-4d4e-ba15-4f5c94079faf/",
“task_id”=>“8becebd0-f51a-4d4e-ba15-4f5c94079faf”,
“tags”=>
[“pulp:repository:6f571ec3-4d28-4e94-baaf-984bb39ba498”,
“pulp:action:sync”],
“finish_time”=>“2020-03-23T11:12:40Z”,
ns"=>“task_status”,
“start_time”=>“2020-03-23T11:11:13Z”,
“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 686, in call\n" +
" return super(Task, self).call(*args, **kwargs)\n" +
" File “/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py”, line 108, 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 851, in sync\n" +
" raise pulp_exceptions.PulpExecutionException(
(‘Importer indicated a failed response’))\n” +
“PulpExecutionException: Importer indicated a failed response\n”,
“spawned_tasks”=>,
“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”=>“NOT_STARTED”},
“purge_duplicates”=>{“state”=>“NOT_STARTED”},
“distribution”=>
{“items_total”=>0,
“state”=>“FINISHED”,
“error_details”=>,
“items_left”=>0},
“modules”=>{“state”=>“FAILED”, “error”=>“No module named gi”},
“errata”=>{“state”=>“NOT_STARTED”},
“metadata”=>{“state”=>“FINISHED”}}},
“queue”=>
“reserved_resource_worker-6@hq-all-katello-01.binarytalents.tech.dq2”,
“state”=>“error”,
“worker_name”=>
“reserved_resource_worker-6@hq-all-katello-01.binarytalents.tech”,
“result”=>nil,
“error”=>
{“code”=>“PLP0000”,
“data”=>{},
“description”=>“Importer indicated a failed response”,
“sub_errors”=>},
“_id”=>{"$oid"=>“5e789950af895ea8acd2c5fa”},
“id”=>“5e789950af895ea8acd2c5fa”}],
“contents_changed”=>true,
“poll_attempts”=>{“total”=>26, “failed”=>1}}

It’s a bug and python-gobject package should be included in the installer:

yum install python-gobject

this will install these dependencies:

cairo-gobject
python-gobject-base
gobject-introspection
pycairo