Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1982759 - Navigating to Admin, Organization, and selecting an organization gives 404
Summary: Navigating to Admin, Organization, and selecting an organization gives 404
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.10.0
Assignee: Chris Roberts
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-15 15:58 UTC by Stephen Wadeley
Modified: 2021-11-16 14:12 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-katello-4.1.1.28-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:12:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33573 0 Normal New Navigating to Admin, Organization, and selecting an organization gives 404 2021-09-27 20:45:23 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:12:45 UTC

Description Stephen Wadeley 2021-07-15 15:58:19 UTC
Description of problem:

In web UI, I navigated  Administer > Organization and selecting an organization's name.

Error was displayed:
 Oops, we're sorry but something went wrong 404 Not Found

Version-Release number of selected component (if applicable):
~]# rpm -q satellite
satellite-6.10.0-0.4.beta.el7sat.noarch
Snap 9.0

How reproducible:
Not very, does not happen if the org has no hosts. Happens repeatedly on orgs with one host


Steps to Reproduce:
1. Create some orgs
2. Create one content host in some of the orgs
3. navigate Administer > Organization and select the organization's names.


Actual results:
If the org has a host:
 Oops, we're sorry but something went wrong 404 Not Found

Expected results:
no errors

Comment 2 Brad Buckingham 2021-07-19 13:19:14 UTC
Is this a regression from 6.9?

Comment 3 Stephen Wadeley 2021-07-19 13:27:56 UTC
(In reply to Brad Buckingham from comment #2)
> Is this a regression from 6.9?

Hi Brad, I think not, its happening in Version 6.9.4

Comment 4 jcallaha 2021-08-19 15:01:28 UTC
This is also affecting API-created Organizations without hosts. As a result, we are unable to perform actions like switching SCA mode after manifest upload.

This is blocking a resolution path for automation failures.

Comment 5 Tomer Brisker 2021-08-31 12:43:50 UTC
Jonathon, can you please take a look? 
The stack trace seems to indicate a connection failure at https://github.com/Katello/katello/blob/master/app/controllers/katello/concerns/organizations_controller_extensions.rb#L10 that isn't handled properly.

Comment 6 Jonathon Turel 2021-08-31 13:47:26 UTC
Stephen, Jake, is this failing when using a normal manifest or one of the 'cloned' ( forget the term you all use ) manifests that have no real representation in the portal? We can probably address it but if it's the latter that's important to not because the issue is more than likely not customer-facing

Comment 7 Stephen Wadeley 2021-08-31 14:47:51 UTC
(In reply to Jonathon Turel from comment #6)
> Stephen, Jake, is this failing when using a normal manifest or one of the
> 'cloned' ( forget the term you all use ) manifests that have no real
> representation in the portal? We can probably address it but if it's the
> latter that's important to not because the issue is more than likely not
> customer-facing

Hello Jonathon

issue was noticed after running some tests to create the org, so yes, that test setup would have cloned the repo.

I can register a host to an org with manifest and check if I can reproduce this in the absence of cloning.


Thank you

Comment 8 Stephen Wadeley 2021-08-31 15:43:52 UTC
Hello Jonathon

tested with non-cloned manifest in Default org, registered a host, no error when navigating Administer > Organization and selecting the organization's name.

I tested again on some old test orgs from past test runs where a cloned manifest would have been used and got the error regardless of hosts being registered to that org in the past or not.

Note that I use stage manifests whereas Cole probably did not.

thank you

Comment 9 Jeremy Lenz 2021-09-22 14:30:10 UTC
Hey Stephen,

is there any way you can figure out how to get us a copy of that cloned manifest?  Theory is that the changed uuid in the cloned manifest is causing Katello to ask Candlepin about a consumer that doesn't actually exist. But I want to test it to be sure.

Comment 10 Stephen Wadeley 2021-09-27 08:02:38 UTC
(In reply to Jeremy Lenz from comment #9)
> Hey Stephen,
> 
> is there any way you can figure out how to get us a copy of that cloned
> manifest?  Theory is that the changed uuid in the cloned manifest is causing
> Katello to ask Candlepin about a consumer that doesn't actually exist. But I
> want to test it to be sure.

Hi Jeremy, sorry for delay, I have been on PTO.
As we discussed this last week over IRC, please contact me again on IRC with status of your testing.

Thank you

Comment 11 Lucy Fu 2021-09-27 20:45:22 UTC
Created redmine issue https://projects.theforeman.org/issues/33573 from this bug

Comment 12 Lucy Fu 2021-09-27 21:24:09 UTC
Hi Stephen,

We can't re-create the issue without a cloned manifest.
Code change was made in https://github.com/Katello/katello/pull/9674 to address it.
I think you can either send me a cloned manifest or apply the patch to your environment to verify the fix.
Please let me know what you prefer.

Thanks.

Comment 13 Stephen Wadeley 2021-09-28 08:12:41 UTC
(In reply to Lucy Fu from comment #12)
> Hi Stephen,
> 
> We can't re-create the issue without a cloned manifest.
> Code change was made in https://github.com/Katello/katello/pull/9674 to
> address it.
> I think you can either send me a cloned manifest or apply the patch to your
> environment to verify the fix.
> Please let me know what you prefer.
> 
> Thanks.

Hi Lucy

I cannot send you a cloned manifest, I tried to explain this last week to Jeremy.
Please contact me in IRC for more info if required.

I will try to test patch

Thank you

Comment 15 Stephen Wadeley 2021-09-28 12:58:30 UTC
Hi Lucy

patch does not work for me, please IRC if you want to check my test system.

thank you

Comment 16 Brad Buckingham 2021-09-29 14:13:40 UTC
Moving to POST as upstream PR is merged.

Comment 17 Stephen Wadeley 2021-09-29 14:37:54 UTC
(In reply to Stephen Wadeley from comment #15)
> Hi Lucy
> 
> patch does not work for me, please IRC if you want to check my test system.
> 
Latest patch works

thank you

Comment 19 sganar 2021-10-06 06:44:46 UTC
Verified.

Tested on Satellite 6.10.0 Snap 21.0

Steps followed: 
1. Create some orgs
2. Create one content host in some of the orgs
3. navigate Administer > Organization and select the organization's names.

Observation: 
No error is displayed.

Comment 22 errata-xmlrpc 2021-11-16 14:12:34 UTC
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 (Moderate: Satellite 6.10 Release), 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-2021:4702


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