Can't sync Google RPM repository
pulp-admin rpm repo create --feed https://packages.cloud.google.com/yum/repos/google-cloud-compute-el7-x86_64 --repo-id google pulp-admin rpm repo sync run --repo-id google
The sync finishes with an error. The problem seems to be the updateinfo file. The "issued" element of the errata is different from errata published by RedHat.
<issued> <date>2017-08-31 00:00:00</date>
<issued date='2017-08-31 00:00:00'> </issued>
#4 Updated by bmbouter over 3 years ago
I was able to reproduce the issue exactly as written. It gives traceback:
Traceback (most recent call last): File "/home/vagrant/devel/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 283, in run self.get_errata(metadata_files) File "/home/vagrant/devel/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 867, in get_errata updateinfo.process_package_element, additive_type=True) File "/home/vagrant/devel/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/sync.py", line 949, in save_fileless_units for model in package_info_generator: File "/home/vagrant/devel/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/repomd/packages.py", line 64, in package_list_generator package_info = process_func(element) File "/home/vagrant/devel/pulp_rpm/plugins/pulp_rpm/plugins/importers/yum/repomd/updateinfo.py", line 81, in process_package_element package_info['issued'] = issued_element.attrib['date'] KeyError: 'date'
#6 Updated by bmbouter over 3 years ago
- Status changed from POST to CLOSED - WORKSFORME
This is extremely strange. I now cannot reproduce the issue. Also in debugging the code from the existing pulp/pulp_rpm:2-master branch I see it finding the date correctly for the reproducer repo. I believe something changed with the remote metadata.
I'm going to close the PR and also this issue as WORKSFORME.
Please register to edit this issue