Description of problem: https://community.theforeman.org/t/hammer-host-create-fails-with-error-usergroup-not-found/20374 I reproduce issue described in https://projects.theforeman.org/issues/30814 with satellite 6.9 snap 16 How reproducible: Always Steps to reproduce: 1. create host and user 2. update host owner this don't work hammer host update --id="61" --owner="QcSyNy"' this work hammer host update --id="60" --owner="MwOZeYtnRXAB" --owner-type="User"' Actual results: Unable to update a host without owner type. Expected results: Use some default one. User for example. Additional info: Not sure if this bug does not already exist.
Connecting redmine issue https://projects.theforeman.org/issues/30814 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30814 has been resolved.
Verified with sat 6.10 snap 4. hammer host update --id 3 --owner='user1' >>> Host updated. the previous functionality works as well hammer host update --id 4 --owner='user2' --owner-type="User" >>> Host updated.
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