Bug 857728 - Shoudl be able to use the same GPG key on multiple Orgs
Summary: Shoudl be able to use the same GPG key on multiple Orgs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Og Maciel
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-16 15:38 UTC by Og Maciel
Modified: 2014-09-18 15:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 17:24:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
traceback (18.91 KB, text/x-log)
2012-09-16 15:38 UTC, Og Maciel
no flags Details

Description Og Maciel 2012-09-16 15:38:25 UTC
Created attachment 613430 [details]
traceback

Description of problem:

Seems that we have a constraint on how many times a GPG key can be used for organizations. I don't see why this is the case and would argue that one could use the same GPG key on multiple orgs.

Version-Release number of selected component (if applicable):

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch

How reproducible:


Steps to Reproduce:
1. Upload the same GPG key on multiple (different) organizations; shouldn't matter what you name your key.
2.
3.
  
Actual results:

The web ui gets pretty "scrambled" (see BZ #857727) and the following error is displayed in the web ui:

      ERROR: duplicate key value violates unique constraint "index_gpg_keys_on_organization_id_and_name" (PGError)
    Click here for more details.


Expected results:


Additional info:

See attached traceback file.

Comment 1 Og Maciel 2012-09-16 15:44:39 UTC
FWIW, the GPG keys seems to get added in the end.

Comment 3 Justin Sherrill 2012-09-17 16:20:31 UTC
This wasn't really ever an issue, root cause was https://bugzilla.redhat.com/show_bug.cgi?id=857727.  Uploading a gpg key would submit twice, causing odd errors. 

Should be fixed in PR https://github.com/Katello/katello/pull/682

Comment 4 Justin Sherrill 2012-09-17 16:21:40 UTC
a1e2f99adc8294a0bdb07ea45c9132361a36dcf1

Comment 5 Og Maciel 2012-09-17 17:24:57 UTC
Closing it as this was indeed triggered by BZ 857727

Verified using:

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarc


Note You need to log in before you can comment on or make changes to this bug.