Bug 2223465 - Registering host to Satellite using non-admin user fails in first attempt and successful after that using same command.
Summary: Registering host to Satellite using non-admin user fails in first attempt and...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-18 02:00 UTC by Akshay Kapse
Modified: 2023-08-03 17:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19133 0 None None None 2023-07-25 11:05:45 UTC

Description Akshay Kapse 2023-07-18 02:00:37 UTC
Description of problem:
- Registration using non-admin user fails to register host with below error:
~~~
Host was not found by the subscription UUID: '', this can happen if the host is registered already, but not to this instance
~~~
- But, it is again successful if I rerun same command but assigns Default Location in place of any other defined location.

Version-Release number of selected component (if applicable):
- Satellite 6.14

How reproducible:
100%

Steps to Reproduce:
1. Create a non-admin user and assign all roles.
2. Generate a registration curl command and register host.

Actual results:
- Host fails to register in first attempt.

Expected results:
- Should be able to register.

Comment 2 Leos Stejskal 2023-07-18 11:29:48 UTC
Hi,
I see that you have "ignore subman errors" set to true. Why?

> Unit d48923ce-5f36-4615-a317-6397952142d5 has been deleted (HTTP error code 410: Gone)

The message is saying that the system is already registered in the Satellite.
Please remove all the hosts from Satellite and try to register (new fresh) system again.

Comment 4 Leos Stejskal 2023-08-01 06:00:01 UTC
Hi,
what roles and permissions does the user have? I tried it with the "Register hosts" role and it works fine

Comment 12 Leos Stejskal 2023-08-02 09:04:00 UTC
> This do not show same error with same set of commands.

Yes that is expected, there were some changes and fixes in the registration process between 6.12 and 6.14.


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