Bug 1944708 - Hammer host create fails with Error: usergroup not found
Summary: Hammer host create fails with Error: usergroup not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: tstrych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-30 14:09 UTC by tstrych
Modified: 2022-10-12 17:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30814 0 Normal Ready For Testing Wrong assuming when owner-type is not specified 2021-03-30 17:31:19 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:42 UTC

Description tstrych 2021-03-30 14:09:30 UTC
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.

Comment 1 Oleh Fedorenko 2021-03-30 17:31:18 UTC
Connecting redmine issue https://projects.theforeman.org/issues/30814 from this bug

Comment 2 Bryan Kearney 2021-04-13 10:17:24 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30814 has been resolved.

Comment 3 tstrych 2021-06-15 15:07:24 UTC
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.

Comment 6 errata-xmlrpc 2021-11-16 14:10:29 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.