Bug 670978
Summary: | package install error off origin cloned repo | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | dgao |
Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | cperry, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | Sprint 20 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-08-16 12:10:52 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: | 647488 |
Description
dgao
2011-01-19 20:14:19 UTC
I was able to see this bug on pulp-nightly, but wasn't able to reproduce it again. When I checked your origin_clone_repo, it did not have any packages. I was trying to figure out how it reached that stage. Can you add the sequence of commands you tried? This is what I did: 1. Cloned test_repo to origin_clone_repo: [root@pulp-nightly repos]# pulp-admin repo clone --clone_id=origin_clone_repo --id=test-repo clone_type=origin -F Repository [test-repo] is being cloned as [origin_clone_repo] You can safely CTRL+C this current command and it will continue [=========================] 100% Total: 5/5 items ) Clone: Finished [root@pulp-nightly repos]# ls origin_clone_repo/ emoticons-0.1-2.x86_64.rpm feedless-1.0-1.noarch.rpm origin-1.0-1.noarch.rpm parent-1.0-1.noarch.rpm patb-0.1-2.x86_64.rpm repodata updateinfo.xml 2. Bind consumer to origin_clone_repo [root@pulp-nightly repos]# pulp-admin consumer bind --id=test_consumer --repoid=origin_clone_repo Successfully subscribed consumer [test_consumer] to repo [origin_clone_repo] 3. Disable other repos: [root@pulp-nightly repos]# cat /etc/yum.repos.d/pulp.repo # # Pulp Repositories # Managed by Pulp client # [f13test] name = f13test baseurl = https://pulp-nightly.usersys.redhat.com/pulp/repos/repos/pulp/pulp/fedora-13/x86_64 enabled = 0 sslverify = 0 [origin_clone_repo] name = origin_clone_repo baseurl = https://pulp-nightly.usersys.redhat.com/pulp/repos/origin_clone_repo enabled = 1 4. Package install: [root@pulp-nightly repos]# pulp-admin package install --consumerid=test_consumer -n patb Created task id: 85813e82-2531-11e0-9f89-5452004fdd6d Task is scheduled for: 2011-01-21 02:39 . [[[u'patb-0.1-2.x86_64'], None]] installed on test_consumer Yea this bug in particular is difficult to reproduce by hand, but somehow can be reproduced consistently w/ the automation framework. So the steps automation took: - Create regular repo w/ feed and sync the repo. - Create parent clone and origin clone of the above repo. - Bind consumer to the clones. - Sync the clones and check for reported pkg counts. - Unbind origin clone and install test pkg from parent clone. (Success) - Uninstall test pkg, unbind parent clone and rebind origin clone. - Install test pkg from origin clone. (Failure) $ git commit -a -m "670978 - Fixed repo clone error because of incompatibility between consecutive local sync and yum sync on a repo" [master 31c6683] 670978 - Fixed repo clone error because of incompatibility between consecutive local sync and yum sync on a repo 1 files changed, 11 insertions(+), 3 deletions(-) Fixed in 0.135. 201102041047:33.392 - FINE: ssh root.redhat.com pulp-admin package install -n origin --consumerid=test_consumer (com.redhat.qe.tools.SSHCommandRunner.run) 201102041047:35.893 - FINE: Stdout: Created task id: 145b4005-3076-11e0-9cd3-5452004fdd6d Task is scheduled for: 2011-02-04 10:47 . [[[u'origin-1.0-1.noarch'], None]] installed on test_consumer Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |