Description of problem: The host is not getting registered using global registration method but it's getting registered using subscription-manager Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1.Generate curl command using Global registration and execute it on the client system to register it. It fails with error ERROR: Validation failed: Name can't be blank, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123 2. Use subscription-manager to register the host. Its successful. Actual results: # curl -X GET "https://dhjoshi-rhsat.syslab.pnq2.redhat.com:9090/register?activation_key=test_ak_7&location_id=2&organization_id=1&setup_insights=false" -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTIyOTYzODUsImp0aSI6IjNmZWExYmQ2YWMyZjYwNGMyNTUzNzE1OWQxNzBlM2E2ZDcxZDU0NzdhYTNiZWU4OTBlZTg1ODQ4NTIwN2JhZjAiLCJleHAiOjE2MTIzMTA3ODV9.wHc37GgmUDu75msyhkzNq75VAZlzJi2iS9MVG0eu_ms' | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10361 100 10361 0 0 25599 0 --:--:-- --:--:-- --:--:-- 25582 # # Running registration # % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8616 100 8616 0 0 1231k 0 --:--:-- --:--:-- --:--:-- 1402k Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Examining /tmp/tmp.dGdCEUcNyB.rpm: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch Marking /tmp/tmp.dGdCEUcNyB.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com noarch 1.0-1 /tmp.dGdCEUcNyB 20 k Transaction Summary =============================================================================================================================================== Install 1 Package Total size: 20 k Installed size: 20 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Verifying : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Installed: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 Complete! The system has been registered with ID: db790995-59ef-4dc3-b1d7-bb5c58843f3b The registered system name is: vm254-162.gsslab.pnq2.redhat.com % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 241 100 177 100 64 470 169 --:--:-- --:--:-- --:--:-- 470 ERROR: Validation failed: Name can't be blank, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123 # hostname vm254-162.gsslab.pnq2.redhat.com Expected results: the host should be registered successfully. Additional info: # curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://dhjoshi-rhsat.syslab.pnq2.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8616 100 8616 0 0 46771 0 --:--:-- --:--:-- --:--:-- 47081 [root@vm254-162 ~]# yum localinstall katello-ca-consumer-latest.noarch.rpm -y Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Examining katello-ca-consumer-latest.noarch.rpm: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch Marking katello-ca-consumer-latest.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com noarch 1.0-1 /katello-ca-consumer-latest.noarch 20 k Transaction Summary =============================================================================================================================================== Install 1 Package Total size: 20 k Installed size: 20 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Verifying : katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch 1/1 Installed: katello-ca-consumer-dhjoshi-rhsat.syslab.pnq2.redhat.com.noarch 0:1.0-1 Complete! # subscription-manager register --org="RedHat" --activationkey="test_ak_7" The system has been registered with ID: 66c6c393-c4e6-481d-acad-30cd40c67da0 The registered system name is: vm254-162.gsslab.pnq2.redhat.com # subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: Disabled
*** This bug has been marked as a duplicate of bug 1920231 ***