Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1921522 - Global Registration: Registration fails when Remote execution interface specified for non-rhel system
Summary: Global Registration: Registration fails when Remote execution interface speci...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: Leos Stejskal
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-28 05:53 UTC by Ashfaqur Rahaman
Modified: 2021-11-16 14:10 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:09:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31850 0 Normal Ready For Testing Global Registration: Registration fails when Remote execution interface specified for non-rhel system 2021-02-15 03:22:40 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:05 UTC

Description Ashfaqur Rahaman 2021-01-28 05:53:04 UTC
Description of problem:

Registering a non-rhel(Ubuntu,Fedora) client with remote execution interface (ens33), failing with below error:

-----
ERROR: not_found
Interface with the 'ens33' identifier was specified as a remote execution interface, however the interface was not found on the host. If the interface exists, it needs to be created in Foreman during the registration.
-----

Same interface accepted for RHEL. I tried with Fedora and Ubuntu. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create command with Remote Execution YES and give interface "ens33"
2. Generate command
3. Use command for registration 

Actual results:

>> For RHEL, it registered correctly. 

>> For Fedora: It gives error 
---
ERROR: not_found
Interface with the 'ens33' identifier was specified as a remote execution interface, however the interface was not found on the host. If the interface exists, it needs to be created in Foreman during the registration.
----

>> For Ubuntu : Same error.

Expected results:

Subscribed properly

Additional info:

Details logs in case comment

Comment 1 Ashfaqur Rahaman 2021-01-28 05:55:18 UTC
// RHEL REGISTRATION : 

------
root@rhel7 ~]# curl -X GET --insecure "https://sat69.apac-mps.anzlab.bne.redhat.com:9090/register?activation_key=ak1&location_id=2&operatingsystem_id=1&organization_id=1&remote_execution_interface=ens33&setup_insights=false" -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTE4MTI0NzAsImp0aSI6Ijc5NDBlOTEzODczNmFhNDJiOTM2NDhlOGI3NmNlMmU2NjUyZjBhZjMyYjA5ZGM4MGZkZWZkNjczMDI5MmI3YjYiLCJleHAiOjE2MTE4MjY4NzB9.H9kMSti3PDNhVlYZ4yaIO59UdqZqWehn3G01y-nR7vU' | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10556  100 10556    0     0  14838      0 --:--:-- --:--:-- --:--:-- 14825
#
# Running registration
#
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8624  100  8624    0     0   243k      0 --:--:-- --:--:-- --:--:--  247k
Loaded plugins: langpacks, 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.kGGNKZlSqd.rpm: katello-ca-consumer-sat69.apac-mps.anzlab.bne.redhat.com-1.0-1.noarch
/tmp/tmp.kGGNKZlSqd.rpm: does not update installed package.
Nothing to do
The system has been registered with ID: aa7623a7-ba66-40fb-951a-5cafd6da17bd
The registered system name is: rhel7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10680  100 10541  100   139  10786    142 --:--:-- --:--:-- --:--:-- 10778
/usr/sbin/restorecon
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    27  100    27    0     0    130      0 --:--:-- --:--:-- --:--:--   131
Successfully enrolled host rhel7 with Foreman.

------


// UBUNTU REGISTRATION: 

-------
# curl -X GET --insecure "https://sat69.apac-mps.anzlab.bne.redhat.com:9090/register?location_id=2&operatingsystem_id=2&organization_id=1&remote_execution_interface=ens33" -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTE4MTE5MzksImp0aSI6ImUwN2VjYmYxNjM5NGJmODliYjAzYjNlODFkMGNhM2Q4NjcxOTZkYjBkMGI5NDA3MWU5ZDlhNDkyYjMyZTIxOTMiLCJleHAiOjE2MTE4MjYzMzl9.bxJM0PViIya2DnA2-QSdg2ZRt3PWqLWSreYH2jzjtzg' | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10469  100 10469    0     0  18965      0 --:--:-- --:--:-- --:--:-- 18965
#
# Running registration
#
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   423  100   258  100   165    595    381 --:--:-- --:--:-- --:--:--   976
ERROR: not_found
Interface with the 'ens33' identifier was specified as a remote execution interface, however the interface was not found on the host. If the interface exists, it needs to be created in Foreman during the registration.
-------

// FEDORA REGISTRATION: 
--------
# curl -X GET --insecure "https://sat69.apac-mps.anzlab.bne.redhat.com:9090/register?location_id=2&operatingsystem_id=3&organization_id=1&remote_execution_interface=ens33" -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTE4MTIwMTEsImp0aSI6IjI3OGU1OTRiYThjN2IyZmExYTM1Y2NiZDMyMzJkOGI3NGVkY2JmYzY2YmI4NDgzYjQwYTg4MjYzY2Q5ZDQ3MGMiLCJleHAiOjE2MTE4MjY0MTF9.O19gvOfdeI7y-DZ_xxn4PUkGc2ORafaaYWRZ3scujTY' | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10469  100 10469    0     0  19752      0 --:--:-- --:--:-- --:--:-- 19715
#
# Running registration
#
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   421  100   258  100   163    564    356 --:--:-- --:--:-- --:--:--   921
ERROR: not_found
Interface with the 'ens33' identifier was specified as a remote execution interface, however the interface was not found on the host. If the interface exists, it needs to be created in Foreman during the registration.
--------

Comment 2 Leos Stejskal 2021-02-10 12:13:31 UTC
Created redmine issue https://projects.theforeman.org/issues/31850 from this bug

Comment 3 Bryan Kearney 2021-03-05 00:04:06 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31850 has been resolved.

Comment 7 errata-xmlrpc 2021-11-16 14:09:54 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.