Project

General

Profile

Actions

Bug #37014

closed

Host owner not set correctly during registration

Added by Nofar Alfassi 11 months ago. Updated 16 days ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2252768

Description of problem:
When a host is registered, its Owner is not set to the admin that generated the registration command. It stays set to a hidden API user, Owner is displayed as Anonymous Admin.

Version-Release number of selected component (if applicable):
Reproduced in Sat Stream (6.15) and 6.14.0

How reproducible:
Deterministic

Steps to Reproduce:
1. On a Satellite, have a manifest and RHEL + Client repos synced and an AK
2. In WebUI, got to Hosts -> Register
3. Set insecure, select the AK
4. Generate
5. On the host, run the generated command
6. In Hosts -> All hosts, see the Owner column

Actual results:
The host is registered and everything works well but the Owner is set to Anonymous Admin:
  1. hammer host info --name <FQDN> | grep -i owner
    Owner: Anonymous Admin
    Owner Id: 1
    Owner Type: User

Expected results:
I think the user who actually ran the registration process should be set as owner.

Actions #1

Updated by Nofar Alfassi 11 months ago

  • Subject changed from Host owner not set correctly during registration to Host owner not set correctly during registration
  • Assignee set to Nofar Alfassi
Actions #2

Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9970 added
Actions #3

Updated by The Foreman Bot 11 months ago

  • Pull request deleted (https://github.com/theforeman/foreman/pull/9970)
Actions #4

Updated by Nofar Alfassi 11 months ago

  • Project changed from Foreman to Katello
  • Status changed from Ready For Testing to New
Actions #5

Updated by The Foreman Bot 11 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10843 added
Actions #6

Updated by The Foreman Bot 10 months ago

  • Fixed in Releases Katello 4.12.0 added
Actions #7

Updated by Nofar Alfassi 10 months ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by Quinn James 10 months ago

  • Category set to Hosts
  • Target version set to Katello 4.10.1
  • Triaged changed from No to Yes
Actions #9

Updated by The Foreman Bot 9 months ago

  • Fixed in Releases Katello 4.11.2 added
Actions #10

Updated by The Foreman Bot 9 months ago

  • Pull request https://github.com/Katello/katello/pull/10920 added
Actions #11

Updated by Nofar Alfassi 16 days ago

  • Pull request deleted (https://github.com/Katello/katello/pull/10920)
Actions

Also available in: Atom PDF