[Pulp-list] Corrupted RPM during sync

Urwin, Paul paul.urwin at jpmchase.com
Fri Mar 21 14:51:29 UTC 2014


Hello,

I was performing a sync the other day and got this:

>From /root/.pulp/admin.log:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run
    exit_code = Cli.run(self, args)
  File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/sync_publish.py", line 101, in run
    status.display_group_status(self.context, self.renderer, task_group_id)
  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 64, in display_group_status
    _display_status(context, renderer, task_list)
  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 96, in _display_status
    _display_task_status(context, renderer, task.task_id, quiet_waiting=quiet_waiting)
  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 123, in _display_task_status
    renderer.display_report(response.response_body.progress)
  File "/usr/lib/python2.6/site-packages/pulp_rpm/extension/admin/status.py", line 76, in display_report
    self.render_download_step(progress_report)
  File "/usr/lib/python2.6/site-packages/pulp_rpm/extension/admin/status.py", line 232, in render_download_step
    if error[constants.ERROR_CODE] == constants.ERROR_CHECKSUM_TYPE_UNKNOWN:
KeyError: 'error_code'


(Command was: pulp-admin rpm repo sync run --repo-id=myrepo)


Now I've found that at least one of the RPMs in the repository are corrupted.

[root at hostname yum_distributor]# rpm -K kernel-3.10.0-110.el7.x86_64.rpm
kernel-3.10.0-110.el7.x86_64.rpm: rsa sha1 (MD5) PGP MD5 NOT OK

If I look for the RPM as follows:

pulp-admin rpm repo content rpm --repo-id=myrepo --match 'filename=kernel-3.10.0-110.el7.x86_64.rpm'

I see in the output:

Checksum:     026c33a2518c7a6c495eb206c9f0088a19fcfa3c
Checksumtype: sha

That checksum does not match what I get with sha1sum:

[root at hostname yum_distributor]# sha1sum kernel-3.10.0-110.el7.x86_64.rpm
b5d2fd77677e120355bc51cedb876cf5c31b3e4e  kernel-3.10.0-110.el7.x86_64.rpm

Could the Pulp sync error be related?  And how can I get pulp to perform an integrity check on its RPMs to spot any other corruptions and resync the corrupted RPMs? (Presumably there's a bug to be filed here).

Thanks!

Paul

This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities.




More information about the Pulp-list mailing list