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 1816699 - Satellite Receptor Installer role can miss accounts under certain conditions
Summary: Satellite Receptor Installer role can miss accounts under certain conditions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Cloud Connector
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: 6.8.0
Assignee: Shimon Shtein
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
: 1837866 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 14:54 UTC by jag
Modified: 2023-12-15 17:33 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
If all of a Red Hat account's organizations include both custom subscriptions and Red Hat subscriptions, and you added the custom subscriptions first, the "Configure Cloud Connector" Ansible playbook will not detect the account number and will fail to configure a Cloud Connector for that account. To work around this issue, add the Red Hat subscriptions before adding the custom subscriptions.
Clone Of:
: 1851148 (view as bug list)
Environment:
Last Closed: 2020-10-27 13:00:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:01:07 UTC

Description jag 2020-03-24 14:54:02 UTC
Description of problem:

The role for installing Receptor with Satellite scans for organizations, looks for the first subscription associated with that organization, and extracts the account ID from that first subscription.

If a particular account is only associated with organizations that also have a custom subscription as their first subscription returned by the API, that account will not have a Receptor set up and running for it.


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

Applies to role version v0.6.2


Additional info:

The proper solution is to change the jmespath query here:
https://github.com/project-receptor/satellite-receptor-installer/blob/v0.6.2/tasks/extract_orgs.yml#L26

Instead of: results[0].account_number
It should be: results[?account_number != null] | [0].account_number

Comment 11 Adam Ruzicka 2020-06-29 15:10:41 UTC
*** Bug 1837866 has been marked as a duplicate of this bug. ***

Comment 12 Jitendra Yejare 2020-08-11 14:00:41 UTC
Verified!
------------------


As per discussion with DEV, the bug verification has been superseded by https://bugzilla.redhat.com/show_bug.cgi?id=1833031.

And the bug is already marked Verified hence changing the state to Verified!


Still I have retested it today and there is no change in Verification comment of that bug as :

```

Receptor installed and configured successfully through Configure Cloud Connector job template.

# grep foreman-rake /usr/share/ansible/roles/project-receptor.satellite_receptor_installer/tasks/main.yml 
      command: foreman-rake katello:receptor:extract_orgs OUTPUT_FILE={{ tempfile.path }}

# time foreman-rake katello:receptor:extract_orgs OUTPUT_FILE=/tmp/testfile
Wrote results to /tmp/testfile. Please delete it when finished.

real	0m35.491s
user	0m30.005s
sys	0m4.220s

# cat /tmp/testfile
[output omitted but contains account ID and key]

# cat /etc/receptor/*/receptor.conf | grep client_key
client_key=/etc/receptor/rh_<account_id>/key.pem

# cat /etc/receptor/rh_<account_id>/key.pem
-----BEGIN RSA PRIVATE KEY-----
[...]
```

Comment 15 errata-xmlrpc 2020-10-27 13:00:52 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 (Important: Satellite 6.8 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-2020:4366


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