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

Bug 913012

Summary: Packages from Google Chrome can't be associated with cloned repo
Product: [Retired] Pulp Reporter: Tomas Strachota <tstrachota>
Component: API/integrationAssignee: pulp-bugs
Status: CLOSED WONTFIX QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1.0CC: rbarlow, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-03 15:32:50 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:    
Bug Blocks: 903520    

Description Tomas Strachota 2013-02-20 08:32:08 UTC
Description of problem:

Associating a package from google chrome repo via api fails.
If a repository is first cloned and then synced it's not possible to associate a package with the clone (post call to /api/services/associate/packages/) Adding the package one by one using pulp-admin works ok.


Version-Release number of selected component (if applicable):
pulp-1.1.15-1.el6cf.noarch


How reproducible:
always


Steps to Reproduce:
wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O /tmp/google_key.pub
pulp-admin repo create --id chrome1 --feed 'http://dl.google.com/linux/chrome/rpm/stable/x86_64' --gpgkeys '/tmp/google_key.pub'
pulp-admin repo clone --id chrome1 --clone_id chrome2
pulp-admin repo sync --id chrome1

# the package google-chrome-stable is listed for repo chrome1
pulp-admin package search

# let's use the api to assign it to the cloned repo chrome2
curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"package_info":[[["google-chrome-stable-24.0.1312.70-181759.x86_64.rpm","c983a6ee19b032b13328c1d98d931103b83e79ba"],["chrome2"]]]}' -k -u $PULP_USER:$PULP_PASSWD https://localhost:443/pulp/api/services/associate/packages/


Actual results:
The server responds with
{"google-chrome-stable-24.0.1312.70-181759.x86_64.rpm": {"c983a6ee19b032b13328c1d98d931103b83e79ba": [["chrome2"]]}}
which means the package was not associated.


Expected results:
The server should associate the package and return {}


Additional info:
/var/log/pulp/log says:
2013-02-20 10:11:15,588 22497:140608989538048: pulp.server.api.repo:ERROR: repo:2192 Unable to find package id for filename=google-chrome-stable-24.0.1312.70-181759.x86_64.rpm, checksum=c983a6ee19b032b13328c1d98d931103b83e79ba
2013-02-20 10:11:15,589 22497:140608989538048: pulp.server.api.repo:INFO: repo:2208 Translated 1 filename,checksums in 0.0115659236908 seconds

Comment 1 Randy Barlow 2014-01-03 15:32:50 UTC
Pulp v1 has reached EOL. Feel free to reopen this bug if you are able to reproduce it with Pulp 2.3.1 or later.