Bug #34241
closedundefined method `katello_gpg_key_id' for #<SccAccount:0x00007fe7a34f3020>
Description
Hello Team,
I have done a fresh install a couple of months ago and then I faced an issue with foreman_scc_manager.
When I click on the button "Add SCC account" the fallowing errors appears:
Oops, we're sorry but something went wrong undefined method `katello_gpg_key_id' for #<SccAccount:0x00007fe7a590f0a8>
ALso i have applied the newest fix v1.8.16 for the foreman_scc_manager.
I have performed foreman-rake db:migrate and foreman-maintain service restart but unfortunately the error still persists.
As an attachement you can find the output from foreman-rake errors:fetch_log request_id=dd24da67.
Can you advice me how I could solve this issue?
Files
Updated by Sergey Getovski over 3 years ago
- Category set to Web Interface
- Difficulty set to medium
- Found in Releases 3.0.0 added
Updated by Sergey Getovski over 3 years ago
I have installed the SCC manager plugin for Hammer CLI.
Then I have managed to add an SCC account using hammer:
hammer scc_manager scc_accounts create --base-url https://scc.suse.com --name SUSE_Repo --login (Organization Credentials) --password --location
Now I am able to see the created account:
hammer scc_manager scc_accounts list --location
-------------------------|---------------------|----------------------------|------------------ --|-------------------|--------------
SCC ACCOUNT NAME SCC ACCOUNT ID ORGANIZATION NAME BASE URL SYNC INTERVAL SYNC DATE
SUSE_Repo 1 https://scc.suse.com never 2022-01-114:37:05UTC
------------------------- --------------------- ------------------------------ ----------------- - ------------------- ------------------------
Unfortunately I am not able to manage them from the web interface. When I click on some button - Add SCC Account or even on the already created SUSE_Repo the error still appears:
Oops, we're sorry but something went wrong undefined method `katello_gpg_key_id' for #SccAccount:0x00007fa7116c9d40
Updated by Ondřej Ezr over 3 years ago
- Project changed from Foreman to Katello
- Category deleted (
Web Interface) - Found in Releases deleted (
3.0.0)
Unfortunatelly I do not know how to help, but moving this to a correct project, hopefully there will be more luck :)
Also linking this in scc_manager, that is the most probable cause: https://github.com/ATIX-AG/foreman_scc_manager/issues/88
Updated by Andrew Dewar over 3 years ago
Hi Sergey,
We've updated most of our gpg key logic in katello, this issue should likely be brought up in the scc-manager plugin repo here: https://github.com/ATIX-AG/foreman_scc_manager.
I suspect that the scc-manager plugin requires an update to their API call.
If they can confirm a that a specific api is still producing these kinds of errors, do please come back here and we'll be happy to address the issue.
Cheers
Updated by Nadja Heitmann over 3 years ago
We have already addressed this issue in the PRs below and I cannot reproduce it on Foreman 3.0 and 3.1, anymore.
https://github.com/ATIX-AG/foreman_scc_manager/pull/87
https://github.com/ATIX-AG/foreman_scc_manager/pull/79