Bug 783499 - KeyError: 'sha256' while attempting to promote katello-managed repository
Summary: KeyError: 'sha256' while attempting to promote katello-managed repository
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-20 16:07 UTC by James Laska
Modified: 2013-09-09 16:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
/var/log/pulp/pulp.log (625.13 KB, text/plain)
2012-01-20 16:07 UTC, James Laska
no flags Details

Description James Laska 2012-01-20 16:07:25 UTC
Created attachment 556546 [details]
/var/log/pulp/pulp.log

Description of problem:

While attempting to promote a newly added custom provider repository, katello reports that the promotion failed.  Inspecting /var/log/pulp/pulp.log shows a traceback that maybe the cause (see "Actual Results" below).

Version-Release number of selected component (if applicable):
* pulp-0.0.256-1.el6.src.rpm

How reproducible:
 * Everytime I click on my failed promotion, I see this error

Steps to Reproduce:
1. Install RHEL-6.2, register to RHN and update
2. Install katello-all
3. Run katello-configure
4. Import a Red Hat manifest, and add a custom provider with the following products/repositories:

 * "repo"=>{"name"=>"ce-rhel-6-candidate", "feed"=>"http://download.lab.bos.redhat.com/rel-eng/repos/ce-rhel-6-candidate/x86_64"}
 * "repo"=>{"name"=>"se-rhel-6-candidate", "feed"=>"http://download.lab.bos.redhat.com/rel-eng/repos/se-rhel-6-candidate/x86_64"}
 * "repo"=>{"name"=>"vmware-esx-rhel-6", "feed"=>"http://packages.vmware.com/tools/esx/4.1u1/rhel6/x86_64"}

5. Add a new environment (Stage), sync and promote repositories to Stage

 * 83540:  Parameters: {"name"=>"promote repos", "env_id"=>"1", "authenticity_token"=>"nVv5LEwXXtO3aDZ7BIq2IBXqUb3gZAnpAPiSChqWDNY=", "utf8"=>"✓", "description"=>""}
 * 84150:  Parameters: {"name"=>"promote repos", "env_id"=>"6", "authenticity_token"=>"nVv5LEwXXtO3aDZ7BIq2IBXqUb3gZAnpAPiSChqWDNY=", "utf8"=>"✓", "description"=>""}

(a second promotion required sync syncing had failed the first time)

6. Create 2 system templates with different package sets
7. Add another repository to an existing custom provider

 * "repo"=>{"name"=>"ce-rhel-6-puddle", "feed"=>"http://download.lab.bos.redhat.com/rel-eng/CloudForms/CloudEngine/1.0/latest/el6/x86_64"}

8. Attempt to promote templates and new repository

 * 96783:  Parameters: {"name"=>"promote templates", "env_id"=>"6", "authenticity_token"=>"nVv5LEwXXtO3aDZ7BIq2IBXqUb3gZAnpAPiSChqWDNY=", "utf8"=>"✓", "description"=>""}

Actual results:

2012-01-20 04:07:28,562 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:785 Running createrepo, this may take a few minutes to complete.
2012-01-20 04:07:28,562 1861:139916172285696: pulp.server.util:INFO: util:487 metadata found; taking backup.
2012-01-20 04:07:28,571 1861:139916172285696: pulp.server.util:INFO: util:454 Checking what metadata types are available: ['filelists', 'primary', 'primary_db', 'other_db', 'other', 'filelists_db']
2012-01-20 04:07:28,572 1861:139916172285696: pulp.server.util:INFO: util:470 started repo metadata update: ['createrepo', '--database', '--checksum', 'sha256', '--update', '/var/lib/pulp//repos/ACME_Corporation/Stage/custom/CloudEngine/ce-rhel-6-candidate']
2012-01-20 04:07:52,511 1861:139916172285696: pulp.server.util:INFO: util:520 createrepo on /var/lib/pulp//repos/ACME_Corporation/Stage/custom/CloudEngine/ce-rhel-6-candidate finished
2012-01-20 04:07:52,514 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:789 Createrepo finished in 23.9514591694 seconds
2012-01-20 04:07:52,518 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:397 No image files to import to repo..
2012-01-20 04:07:52,524 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:377 No metadata for 'File Sync' present; no files to import to repo..
2012-01-20 04:07:52,532 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:369 Skipping errata imports from sync process
2012-01-20 04:07:52,536 1861:139916172285696: pulp.server.api.repo_sync:INFO: repo_sync:275 Sync returned 351 packages, 0 errata in 46.7493960857 seconds
2012-01-20 04:07:52,539 1861:139916172285696: pulp.server.api.repo_sync:INFO: repo_sync:286 0 old packages to process, 0 new packages to process
2012-01-20 04:07:52,548 1861:139916172285696: pulp.server.api.repo_sync:INFO: repo_sync:301 Examining 0 errata from repo ACME_Corporation-Stage-CloudEngine-ce-rhel-6-candidate
2012-01-20 04:07:52,550 1861:139916172285696: pulp.server.api.repo_sync:INFO: repo_sync:305 Removing 0 old errata from repo ACME_Corporation-Stage-CloudEngine-ce-rhel-6-candidate
2012-01-20 04:07:52,562 1861:139916172285696: pulp.server.api.repo_sync:INFO: repo_sync:314 Adding 0 new errata to repo ACME_Corporation-Stage-CloudEngine-ce-rhel-6-candidate
2012-01-20 04:07:52,571 1861:139916172285696: pulp.server.tasking.task:INFO: task:440 Task succeeded: Task 1fc005ae-4346-11e1-857f-0015172f2f5c: _sync(ACME_Corporation-Stage-CloudEngine-ce-rhel-6-candidate, synchronizer=<pulp.server.api.synchronizers.YumSynchronizer object at 0x7f40e004ac10>, skip={}, max_speed=None, threads=4, progress_callback=<bound method RepoSyncTask.progress_callback of <pulp.server.api.repo_sync_task.RepoSyncTask object at 0x7f40e004a710>>)
2012-01-20 04:08:00,235 1861:139916560279296: pulp.server.api.repo:INFO: repo:909 Finished created pkg_object in 0.0208868980408 seconds
2012-01-20 04:08:00,235 1861:139916560279296: pulp.server.api.repo:INFO: repo:962 Finished check of NEVRA/filename in argument data by 0.0212709903717 seconds
2012-01-20 04:08:00,253 1861:139916560279296: pulp.server.api.repo:WARNING: repo:980 Package with same NVREA [(u'rhev-agent-gdm-plugin-rhevcred', u'0', u'2.3.16', u'3.el6', u'x86_64')] already exists in repo [ACME_Corporation-Stage-CloudEngine-ce-rhel-6-puddle]
2012-01-20 04:08:00,285 1861:139916560279296: pulp.server.webservices.controllers.decorators:ERROR: decorators:52 Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py", line 1706, in POST
    return action(id)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py", line 1110, in add_package
    errors, filtered_count = api.add_package(id, data['packageid'])
  File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 981, in add_package
    errors.append(form_error_tup(pkg, error_message))
  File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 888, in form_error_tup
    return (pkg["id"], pkg_tup, pkg["filename"], pkg["checksum"]["sha256"], error_message)
KeyError: 'sha256'

Expected results:


Additional info:

Comment 1 Pradeep Kilambi 2012-01-23 15:53:27 UTC
4fc2bcf20faa50788837c7891eefce711a04c041

Comment 2 Jeff Ortel 2012-01-23 22:22:21 UTC
build: 0.261

Comment 3 Preethi Thomas 2012-02-02 16:56:05 UTC
verified
I tried the steps and promotion completed both the times

pulp-263

Comment 4 Preethi Thomas 2012-02-24 20:18:43 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:19:32 UTC
Pulp v1.0 is released.


Note You need to log in before you can comment on or make changes to this bug.