Bug 783465
Summary: | Clicking on failed promotion results in: <NoMethodError: undefined method `[]' for nil:NilClass> | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | James Laska <jlaska> | ||||||
Component: | WebUI | Assignee: | Partha Aji <paji> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.0.0 | CC: | cwelton, hbrock, jturner, mmccune, paji | ||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||
Target Release: | Unused | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-08-22 18:21:37 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 747354 | ||||||||
Attachments: |
|
Description
James Laska
2012-01-20 14:41:56 UTC
From pulp log. 2012-01-20 04:07:21,698 1861:139916172285696: pulp.server.api.synchronizers:INFO: synchronizers:1201 Copying repodata from /var/lib/pulp//repos/ACME_Corporation/Locker/custom/CloudEngine/ce-rhel-6-candidate/repodata to /var/lib/pulp//repos/ACME_Corporation/Stage/custom/CloudEngine/ce-rhel-6-candidate/repodata 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' Created attachment 556597 [details] Screenshot of failure I was asked to track the pulp failure in bug#783499. == Description of problem == I have a promotion that seems to have failed. I'll likely track the failure in a different bug. However, when I click on the failed promotion row in the list of "Stage Changesets" ... I am presented with an onscreen error "undefined method `[]' for nil:NilClass" James would you be able to also attach the delayed_jobs log in /var/log/katello directory ?? (In reply to comment #3) > James would you be able to also attach the delayed_jobs log in /var/log/katello > directory ?? Hi Partha, I'm sorry ... I've long since reinstalled this system. But good news, /var/log/katello/delayed_job.log appears to be included in the katello_debug file I attached (see attachment#556518 [details]). This doesn't seem to fit the definition of urgent severity to me. It doesn't break a lot of functionality, is there data corruption? Seems like a workaround exists (do another changeset). mass move ON_QA after brewing Been having a hard time actually getting a promotion to fail now :). Used to be able to shut down the delayed_job to trigger a failed promotion, but that doesn't seem to occur anymore. Will try other things (shutdown pulp, etc.) to try and emulate/trigger a failed promotion. Finally managed a forced fail by stopping pulp-server service (and most of the system along with it) while a promotion was en route. Upon bringing these services back up and reloading the page, a failed promotion resulted. QA Verified - clicking the resulting failed promotion no longer triggers the undefined error -- rather, user can click through and view the attempted promotion's details. |