*Problem:
syncing redhat repo failed
Expected outcome:
Pulpcore version:
3.22.4
Pulp plugins installed and their versions:
pulp-ansible 0.16.1
pulp-cli 0.19.0
pulp-deb 2.20.2
pulp-file 1.12.0
pulp-glue 0.19.0
pulp-rpm 3.19.3
pulp-rpm-client 3.19.3
pulpcore 3.22.4
pulpcore-client 3.22.4
Operating system - distribution and version:
rhel 8.6
Other relevant data:
We have been syncing from redhat for last 7 months. Recently we have been getting the below errors for most of redhat repos. Any idea why this happens and how to fix it?
"traceback": " File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 460, in execute_task\n result = func(*args, **kwargs)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 398, in synchronize\n remote = RpmRemote.objects.get(pk=remote_pk)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/manager.py\", line 85, in manager_method\n return getattr(self.get_queryset(), name)(*args, **kwargs)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py\", line 431, in get\n num = len(clone)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py\", line 262, in __len__\n self._fetch_all()\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py\", line 1324, in _fetch_all\n self._result_cache = list(self._iterable_class(self))\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py\", line 68, in __iter__\n for row in compiler.results_iter(results):\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/sql/compiler.py\", line 1122, in apply_converters\n value = converter(value, expression, connection)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/app/models/fields.py\", line 104, in from_db_value\n return force_str(self._fernet.decrypt(force_bytes(value)))\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py\", line 91, in decrypt\n return self._decrypt_data(data, timestamp, time_info)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py\", line 152, in _decrypt_data\n self._verify_signature(data)\n File \"/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py\", line 136, in _verify_signature\n raise InvalidToken\n"
I also notice rhel-7.6-server-eus-rpms didn’t have the issue when we use the same entitlement. We also test the same entitlement key on our dev instance with pulpcore 3.45 and it worked. It doesn’t look like this is an entitlement key issue.