Bug 1643818
| Summary: | Cannot update GPG Key on created product | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sanket Jagtap <sjagtap> |
| Component: | Content Credentials | Assignee: | Samir Jha <sajha> |
| Status: | CLOSED ERRATA | QA Contact: | Sanket Jagtap <sjagtap> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5.0 | CC: | nkathole, pcreech, sjagtap |
| Target Milestone: | 6.5.0 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-14 12:38:26 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: | |||
Created redmine issue http://projects.theforeman.org/issues/25412 from this bug *** Bug 1654926 has been marked as a duplicate of this bug. *** Moving to POST, since upstream PR is merged. Build: Satellite 6.5 Snap 8
hammer> product info --id 38 --organization-id 1
ID: 38
Name: rhel_custom
Label: rhel_custom
Description:
Sync State:
Sync Plan ID:
GPG:
GPG Key ID:
GPG Key:
Organization: Default Organization
Content:
1) Repo Name: fake_repo
URL: /custom/rhel_custom/fake_repo
Content Type: yum
hammer> gpg list --organization-id 1
---|---------
ID | NAME
---|---------
1 | fake_key
---|---------
hammer> product update --gpg-key=fake_key --id 38 --organization-id 1
Product updated.
hammer> product info --id 38 --organization-id 1
ID: 38
Name: rhel_custom
Label: rhel_custom
Description:
Sync State:
Sync Plan ID:
GPG:
GPG Key ID: 1
GPG Key: fake_key
Organization: Default Organization
Content:
1) Repo Name: fake_repo
URL: /custom/rhel_custom/fake_repo
Content Type: yum
hammer> gpg info --id 1
ID: 1
Name: fake_key
Organization: Default Organization
Repositories:
1) ID: 10
Name: fake_repo
Content Type: yum
Product: rhel_custom
Content:
-----BEGIN CERTIFICATE-----
MIIDsjCCApqgAwIBAgIBBjANBgkqhkiG9w0BAQsFADBOMRAwDgYDVQQKDAdSZWQg
SGF0MQ0wCwYDVQQLDARwcm9kMSswKQYDVQQDDCJJbnRlcm1lZGlhdGUgQ2VydGlm
aWNhdGUgQXV0aG9yaXR5MB4XDTE1MTAxNDE3NDc1NloXDTM1MTAwOTE3NDc1Nlow
<Snip>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1222 |
Description of problem: Version-Release number of selected component (if applicable): Satellite 6.5.0 snap1 How reproducible: Always Steps to Reproduce: b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme product info --id="205" --organization-id="216"' 2018-10-28 14:54:55 - robottelo.ssh - INFO - <<< stdout ID: 205 Name: KeHdLNfEVNCRbOCRLFnS Label: RQotMzSOTcSJwEAkItvr Description: TmeaMZmiJOaJlWeJNquW Sync State: Sync Plan ID: GPG: GPG Key ID: GPG Key: Organization: XqsWli Content: 2018-10-28 14:54:56 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv repository create --content-type="yum" --name="gIVKTAQyVcwXmGr" --product-id="205" --publish-via-http="true" --url="http://inecas.fedorapeople.org/fakerepos/zoo3/"' 2018-10-28 14:55:02 - robottelo.ssh - INFO - <<< stdout Message,Id,Name Repository created.,124,gIVKTAQyVcwXmGr 2018-10-28 14:55:02 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme repository info --id="124"' 2018-10-28 14:55:05 - robottelo.ssh - INFO - <<< stdout ID: 124 Name: gIVKTAQyVcwXmGr Label: gIVKTAQyVcwXmGr Organization: XqsWli Red Hat Repository: no Content Type: yum Mirror on Sync: yes URL: http://inecas.fedorapeople.org/fakerepos/zoo3/ Publish Via HTTP: yes Relative Path: XqsWli/Library/custom/RQotMzSOTcSJwEAkItvr/gIVKTAQyVcwXmGr Download Policy: on_demand Product: ID: 205 Name: KeHdLNfEVNCRbOCRLFnS GPG Key: Sync: Status: Not Synced Created: 2018/10/28 18:54:59 Updated: 2018/10/28 18:55:01 Content Counts: Packages: 0 Source RPMS: 0 Package Groups: 0 Errata: 0 Module Streams: 0 2018-10-28 14:55:06 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv gpg create --key="/tmp/caIrW4dap2" --name="rdWtNixDKl" --organization-id="216"' 2018-10-28 14:55:09 - robottelo.ssh - INFO - <<< stdout Message,Id,Name GPG Key created.,12,rdWtNixDKl 2018-10-28 14:55:10 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=json gpg info --id="12" --organization-id="216"' 2018-10-28 14:55:13 - robottelo.ssh - INFO - <<< stdout { "ID": 12, "Name": "rdWtNixDKl", "Organization": "XqsWli", "Repositories": { }, "Content": "cGfk345tAgFT33S8fdjEHHN8f5Ct" } 2018-10-28 14:55:13 - robottelo.ssh - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv product update --gpg-key="rdWtNixDKl" --id="205" --organization-id="216"' 2018-10-28 14:55:16 - robottelo.ssh - INFO - <<< stderr Could not update the product: Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject. Actual results: Value (NilClass) '' is not any of: ForemanTasks::Concerns::ActionSubject. Expected results: GPG key should be associated Additional info: