Project

General

Profile

Actions

Bug #34241

closed

undefined method `katello_gpg_key_id' for #<SccAccount:0x00007fe7a34f3020>

Added by Sergey Getovski over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

foreman-rake_errors_fetch_log.txt foreman-rake_errors_fetch_log.txt 22.7 KB Sergey Getovski, 01/11/2022 08:50 AM
Actions #1

Updated by Sergey Getovski about 2 years ago

  • Category set to Web Interface
  • Difficulty set to medium
  • Found in Releases 3.0.0 added
Actions #2

Updated by Sergey Getovski about 2 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

Actions #3

Updated by Ondřej Ezr about 2 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

Actions #4

Updated by Andrew Dewar about 2 years ago

  • Status changed from New to Closed
Actions #5

Updated by Andrew Dewar about 2 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by Andrew Dewar about 2 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

Actions #7

Updated by Nadja Heitmann about 2 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

Actions

Also available in: Atom PDF