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

Getting "Host was not found by the subscription UUID" while migrating host to different location using registration command to Satellite.

XMLWordPrintable

    • Moderate
    • No

      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:

      1. subscription-manager clean
        All local data removed
      2. subscription-manager unregister
        This system is currently not registered.
      3. 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:

      1. 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
        #
      2. 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:
        ~~~
      1. 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:

            rhn-engineering-lstejska Leos Stejskal
            rhn-support-akapse Akshay Kapse
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: