Description of problem: I imported two different manifests in two different orgs. 1. stageSamTestSimple20Nov2011.zip ==> Acme_corporation 2. stageManifest06October2011.zip ==> sghai_org First import of simple Nov's manifest was successful in ACME_Corporation. when I imported oct's manifest in second org(sghai_org), got: "409 conflict: import is older than existing data" So I imported the oct's manifest with --force and it was imported successfully. Now I tried to enable the repo from cli and for that I did the product and repo listing. Product and repo listing was successful under ACME org. But got empty repo list in sghai_org. --- [root@dhcp201-123 ~]# katello -u admin -p admin provider import_manifest --org ACME_Corporation --name "Red Hat" --file /root/stageSamTestSimple20Nov2011.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/stageManifest06October2011.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/stageManifest06October2011.zip --force Manifest imported [root@dhcp201-123 ~]# katello -u admin -p admin repo list --environment 'Locker' --org sghai_org --product "Red Hat Enterprise Linux Server" ------------------------------------------------------------------------------------------------------------------------------------------------------------- Repo List For Org sghai_org Environment Locker Product Red Hat Enterprise Linux Server Id Name Package Count ------------------------------------------------------------------------------------------------------------------------------------------------------------- [root@dhcp201-123 ~]# katello -u admin -p admin repo list --environment '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 ------------------------------------------------------------------------------------------------------------------------------------------------------------- [root@dhcp201-123 ~]# katello -u admin -p admin repo list --environment 'Locker' --org ACME_Corporation --product "Red Hat Enterprise Linux Server" --include_disabled ------------------------------------------------------------------------------------------------------------------------------------------------------------- Repo List For Org ACME_Corporation Environment Locker Product Red Hat Enterprise Linux Server Id Name Package Count ------------------------------------------------------------------------------------------------------------------------------------------------------------- 857 Red Hat Enterprise Linux 5 Server Beta Source ISOs 5Server x86_64 858 Red Hat Enterprise Linux 5 Server Beta Source ISOs 57 ia64 859 Red Hat Enterprise Linux 5 Server Beta Source ISOs 58 ia64 860 Red Hat Enterprise Linux 5 Server Beta Source ISOs 5Server i386 861 Red Hat Enterprise Linux 5 Server Beta Source ISOs 58 x86_64 862 Red Hat Enterprise Linux 5 Server Beta Source ISOs 5Server ia64 863 Red Hat Enterprise Linux 5 Server Beta Source ISOs 58 i386 864 Red Hat Enterprise Linux 5 Server Beta Source ISOs 57 x86_64 ::::: ::::: <output truncate> From webUI, I can see the repo listing in sghai_org and can enable the repos but not from cli. Version-Release number of selected component (if applicable): [root@dhcp201-123 ~]# rpm -qa | grep katello katello-glue-candlepin-0.1.143-2.el6.noarch katello-cli-common-0.1.25-2.el6.noarch katello-qpid-broker-key-pair-1.0-1.noarch katello-certs-tools-1.0.1-2.el6.noarch katello-glue-pulp-0.1.143-2.el6.noarch katello-all-0.1.143-2.el6.noarch katello-trusted-ssl-cert-1.0-1.noarch katello-configure-0.1.37-2.el6.noarch katello-common-0.1.143-2.el6.noarch katello-0.1.143-2.el6.noarch katello-cli-0.1.25-2.el6.noarch katello-glue-foreman-0.1.143-2.el6.noarch katello-httpd-ssl-key-pair-1.0-1.noarch [root@dhcp201-123 ~] How reproducible: always Steps to Reproduce: 1. Import simple Nov's manifest in ACME_Corporation org 2. Create a new org "sghai_org" and import Oct's manifest with --force 3. Now check the repo listing for 2nd imported manifest in sghai_org Actual results: repomlist is empty Expected results: repo list shouldn't be empty after 2nd manifest import. Additional info:
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