Bug 645896
Summary: | sync fails if the gpg key is added before repo sync | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
Component: | z_other | Assignee: | Jeff Ortel <jortel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 14:01:57 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: | 641987 |
Description
Preethi Thomas
2010-10-22 19:56:29 UTC
2010-10-22 16:21:51,777 [INFO][Thread-41] unlink() @ keystore.py:162 - unlinking: /var/lib/pulp/gpg/content/extras/RPM-GPG-KEY-jortel 2010-10-22 16:21:51,778 [ERROR][Thread-41] keyfiles() @ keystore.py:135 - /var/lib/pulp/repos/content/extras/packages Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 129, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/content/extras/packages' 2010-10-22 16:21:51,779 [ERROR][Thread-41] keyfiles() @ keystore.py:135 - /var/lib/pulp/repos/content/extras/repodata Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 129, in keyfiles f = open(fp) IOError: [Errno 21] Is a directory: u'/var/lib/pulp/repos/content/extras/repodata' 2010-10-22 16:21:51,780 [ERROR][Thread-41] failed() @ task.py:205 - Task id:00009af3-de1a-11df-bd37-002564a85a58, method_name:_sync: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 129, in run result = self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 838, in _sync sync_packages, sync_errataids = repo_sync.sync(repo, repo_source, progress_callback) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 72, in sync synchronizer.add_keys_from_dir(repo_dir, repo) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo_sync.py", line 212, in add_keys_from_dir keystore.relink() File "/usr/lib/python2.6/site-packages/pulp/server/api/keystore.py", line 96, in relink fn = os.path.basename(path) File "/usr/lib64/python2.6/posixpath.py", line 111, in basename i = p.rfind('/') + 1 AttributeError: 'tuple' object has no attribute 'rfind' Fixed: acadebeb53c15a146292165e4635a5edbf2d81dd Fixed in build 0.76. verified [root@preethi ~]# pulp-admin repo create --id=repo-gpg --name=repo-gpg --feed=yum:http://atlantis.usersys.redhat.com/content/extras/ Successfully created repository [ repo-gpg ] [root@preethi ~]# pulp-admin repo update --id=repo-gpg --addkeys=/root/gpg/ uploading /root/gpg/RPM-GPG-KEY-jortel Successfully updated repository [ repo-gpg ] [root@preethi ~]# pulp-admin repo sync --id=repo-gpg -F Sync for repository repo-gpg started You can safely CTRL+C this current command and it will continue [==================================================] 100% (1 of 1 pkgs) Sync: Finished [root@preethi ~]# pulp-admin repo sync --id=repo-gpg -F Sync for repository repo-gpg started You can safely CTRL+C this current command and it will continue [==================================================] 100% (1 of 1 pkgs) Sync: Finished [root@preethi ~]# pulp-admin repo listkeys --id=repo-gpg RPM-GPG-KEY-jortel Closing with Community Release 15 pulp-0.0.223-4. |