Bug 768254
Summary: | Empty repo list in case of 2nd manifest import and in different org | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
Component: | API | Assignee: | Ivan Necas <inecas> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.1 | CC: | bkearney, dgoodwin, jlaska |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 18:14:48 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: | 747354 |
Description
Sachin Ghai
2011-12-16 07:23:34 UTC
No I change the order if manifest import: 1. stageManifest06October2011.zip ==> Acme_corporation 2. stageSamTestSimple20Nov2011.zip ==> sghai_org Now again in this case repo list is empty for sghai_org ( 2nd import). so this issue happens in case of 2nd import only. [root@dhcp201-123 ~]# katello -u admin -p admin provider import_manifest --org ACME_Corporation --name "Red Hat" --file /root/stageManifest06October2011.zip Manifest imported [root@dhcp201-123 ~]# katello -u admin -p admin org create --name sghai_org Successfully created org [ sghai_org ] [root@dhcp201-123 ~]# katello -u admin -p admin provider import_manifest --org sghai_org --name "Red Hat" --file /root/stageSamTestSimple20Nov2011.zip Importing manifest, please wait... Manifest import for provider [ Red Hat ] failed, Candlepin::Owner: 409 Conflict {"displayMessage":"Import is older than existing data"} (POST /candlepin/owners/sghai_org/imports) [root@dhcp201-123 ~]# katello -u admin -p admin provider import_manifest --org sghai_org --name "Red Hat" --file /root/stageSamTestSimple20Nov2011.zip --force Manifest imported katello> repo list --env Locker --org sghai_org --product "Red Hat Enterprise Linux Server" --include_disabled ------------------------------------------------------------------------------------------------------------------------------------------------------------- Repo List For Org sghai_org Environment Locker Product Red Hat Enterprise Linux Server Id Name Package Count ---------------------------------------------------------------------------------------------------------------------------- It's caused by using Candlepin Id for identifying products. However there are multiple Katello products mapped to single product in Candlepin. Therefore CP ID can't be used as unique key for identifying the product. The fix was introduced in commit f3b57d1da6b93af2bda0fbb5246824fb68efdb20, and tagged in katello-0.1.225-1, katello-cli-0.1.53-1 Moving to MODIFIED, pending the builds mentioned in comment#3 are available in brew for testing. Verified with following builds: katello-cli-0.1.53-1.el6.noarch candlepin-0.5.8-1.el6.noarch pulp-0.0.265-1.el6.noarch katello-glue-candlepin-0.1.226-1.el6.noarch katello-0.1.226-1.el6.noarch I imported two different manifest in two different orgs: 1. stageSamTestSimple20Nov2011.zip in ACME_Corporation: ======================================================== katello> provider import_manifest --org ACME_Corporation --name "Red Hat" --file /root/stageSamTestSimple20Nov2011.zip --force Manifest imported 2. stageManifest06October2011.zip in sghai_org: ============================================= katello> provider import_manifest --org sghai_org --name "Red Hat" --file /root/stageManifest06October2011.zip --force Manifest imported And I can list the repos from both org's ========================================= katello> repo list --environment 'Library' --org sghai_org --product "Red Hat Enterprise Linux Server" --include_disabled -------------------------------------------------------------------------------- Repo List For Org sghai_org Environment Library Product Red Hat Enterprise Linux Server Id Name Package Count -------------------------------------------------------------------------------- 3 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5Server 4 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5.8 5 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5.7 6 Red Hat Enterprise Linux 5 Server Beta Source ISOs ia64 5.8 7 Red Hat Enterprise Linux 5 Server Beta Source ISOs x86_64 5.8 <truncate> katello> repo list --environment 'Library' --org ACME_Corporation --product "Red Hat Enterprise Linux Server" --include_disabled -------------------------------------------------------------------------------- Repo List For Org ACME_Corporation Environment Library Product Red Hat Enterprise Linux Server Id Name Package Count -------------------------------------------------------------------------------- 392 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5Server 393 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5.8 394 Red Hat Enterprise Linux 5 Server Beta Source ISOs i386 5.7 395 Red Hat Enterprise Linux 5 Server Beta Source ISOs ia64 5.8 396 Red Hat Enterprise Linux 5 Server Beta Source ISOs x86_64 5.8 <truncate> getting rid of 6.0.0 version since that doesn't exist |