Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27302

Host owner not set correctly during registration

XMLWordPrintable

    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • Release Notes
    • 2,000
    • Hide
      .Host owner set correctly during registration

      Previously, when you registered a host, Satellite set the host owner to `Anonymous Admin`.
      With this release, Satellite sets the host owner to the user who generated the registration command.
      Show
      .Host owner set correctly during registration Previously, when you registered a host, Satellite set the host owner to `Anonymous Admin`. With this release, Satellite sets the host owner to the user who generated the registration command.
    • Bug Fix
    • Done
    • Rocket
    • Moderate
    • Automated
    • No

      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.

              Unassigned Unassigned
              lhellebr@redhat.com Lukas Hellebrandt
              Shubham Ganar Shubham Ganar
              Lena Ansorgová Lena Ansorgová
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: