Project

Profile

Help

Issue #2722

closed

Local variable 'published_after_predistributor' referenced before assignment"

Added by ipanova@redhat.com almost 7 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.13.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 19
Quarter:

Description

1. create repo with yum and rsync dist
2. publish with rsync --> observe skipped publish result
3. publish with rsync again and observe the traceback

Operations:       publish
Resources:        test-repo380 (repository)
State:            Failed
Start Time:       2017-04-19T12:12:41Z
Finish Time:      2017-04-19T12:12:41Z
Result:           N/A
Task Id:          497cf91a-350c-4fd8-83b9-72b386dd3aff
Progress Report:  
Traceback:        Traceback (most recent call last):   File
                  "/usr/lib/python2.7/site-packages/celery/app/trace.py", line
                  240, in trace_task     R = retval = fun(*args, **kwargs)  
                  File
                  "/home/ipanova/pulp_development/pulp/server/pulp/server/async/
                  tasks.py", line 506, in __call__     return super(Task,
                  self).__call__(*args, **kwargs)   File
                  "/home/ipanova/pulp_development/pulp/server/pulp/server/async/
                  tasks.py", line 107, in __call__     return super(PulpTask,
                  self).__call__(*args, **kwargs)   File
                  "/usr/lib/python2.7/site-packages/celery/app/trace.py", line
                  437, in __protected_call__     return self.run(*args,
                  **kwargs)   File
                  "/home/ipanova/pulp_development/pulp/server/pulp/server/contro
                  llers/repository.py", line 1106, in publish     result =
                  check_publish(repo_obj, dist_id, dist_inst, transfer_repo,
                  conduit, call_config)   File
                  "/home/ipanova/pulp_development/pulp/server/pulp/server/contro
                  llers/repository.py", line 1164, in check_publish    
                  skip_for_predistributor = (predistributor_id and
                  (published_after_predistributor or UnboundLocalError: local
                  variable 'published_after_predistributor' referenced before
                  assignment 

Also available in: Atom PDF