-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
6.15.0
Description of problem:
- Host was not found by the subscription UUID: 'xxxxxxx-xxx-xxxx-xxxx-xxxxxxx', this can happen if the host is registered already, but not to this instance.
Version-Release number of selected component (if applicable):
How reproducible:
Easily
Steps to Reproduce:
1. Register host to different location and then unregister. Check registration status:
- subscription-manager clean
All local data removed - subscription-manager unregister
This system is currently not registered. - subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
2. Now register host using user which have access only to another location:
- curl -sS --insecure 'https://satellite.example.com/register?activation_keys=ak1&location_id=3&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJpYXQiOjE3MDM0Nzk5ODQsImp0aSI6IjkyNTc3YTVjMTMzNTFiMGUzNjAxMjFiMWI5YThhNjJiOGE2YTk0ZmM4OGFmNDM1MzkxNDBlYzEwM2VjMjJhZTEiLCJleHAiOjE3MDM0OTQzODQsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.JpM_imwit0kPHmcIayhbIy2kARlSDgcM6HKP3eo1d5s' | bash
# - Running registration
#
The system has been registered with ID: xxxxx-xxxxxx-xxx-xxxx-xxxxx
The registered system name is: host.example.com
ERROR: not_found
Host was not found by the subscription UUID: 'xxxxxxx-xxx-xxxx-xxxx-xxxxxxx', this can happen if the host is registered already, but not to this instance
Actual results:
- Host registered but error "Host was not found by the subscription UUID" is misleading:
~~~
- subscription-manager identity
system identity: xxxxx-xxxxxx-xxx-xxxx-xxxxx
name: host.example.com
org name: RedHat
org ID: RedHat
environment name: Library
~~~
Expected results:
- Error "Host was not found by the subscription UUID" should not be there in command output if host is getting registered successfully.
Additional info: