Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1098192

Summary: Publish fails with: 'Link path [%(l)s] exists, but is not a symbolic link
Product: [Retired] Pulp Reporter: Ina Panova <ipanova>
Component: z_otherAssignee: pulp-bugs
Status: CLOSED DUPLICATE QA Contact: pulp-qe-list
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: pthomas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-15 18:56:53 UTC Type: Bug
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: 1090534    
Bug Blocks:    

Description Ina Panova 2014-05-15 13:04:02 UTC
Description of problem:
# pulp-admin -u admin -p admin rpm repo create --repo-id rhel7 --feed http://ftp.redhat.com/redhat/rhel/beta/7/x86_64/os/
Successfully created repository [rhel7]

[root@ec2-54-246-60-188 ~]# pulp-admin -u admin -p admin rpm repo sync run --repo-id rhel7
+----------------------------------------------------------------------+
                    Synchronizing Repository [rhel7]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Downloading metadata...
[\]
... completed

Downloading repository content...
[==================================================] 100%
RPMs:       8520/8520 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 5/5 items
... completed

Importing errata...
[-]
... completed

Importing package groups/categories...
[\]
... completed


Task Succeeded



[\]
Waiting to begin...
Publishing Distribution files
[-]

Task Failed

Pulp exception occurred: PulpExecutionException

[root@ec2-54-246-60-188 ~]#

From /var/log/messages:

May 15 12:42:58 ec2-54-246-60-188 pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.publish.publish[09d85031-f8bc-4f0b-9b59-a02a07c9e96b]
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR: Exception caught from plugin during publish for repo [rhel7]
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR: Traceback (most recent call last):
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/server/managers/repo/publish.py", line 126, in _do_publish
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     publish_report = publish_repo(transfer_repo, conduit, call_config)
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 543, in wrap_f
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     return f(*args, **kwargs)
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/distributor.py", line 130, in publ
ish_repo
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     return self._publisher.publish()
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 169, in publish
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     step.process()
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 368, in process
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     self._process_block()
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 603, in _process_block
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     self.process_unit(package_unit)
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 375, in process_
unit
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     self._publish_distribution_files(unit)
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/distributors/yum/publish.py", line 426, in _publish_distribution_files
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     self._create_symlink(source_path, symlink_path)
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 447, in _create_symlink
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR:     raise RuntimeError(msg % {'l': link_path})
May 15 12:42:58 ec2-54-246-60-188 pulp: pulp.server.managers.repo.publish:ERROR: RuntimeError: Link path [/var/lib/pulp/working/repos/rhel7/distributors/yum_distributor/repodata/repomd.xml] exists, but is not a symbolic link


Version-Release number of selected component (if applicable):
2.4.0-0.13.beta

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Meanwhile, I can successfully sync and publish http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/

Comment 1 Preethi Thomas 2014-05-15 13:44:51 UTC
Looking at the log could be the same as https://bugzilla.redhat.com/show_bug.cgi?id=1095829

Comment 2 Ina Panova 2014-05-15 18:56:53 UTC

*** This bug has been marked as a duplicate of bug 1095829 ***