Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
While smoke-testing the plugin, I get report where metadata.json "number_hosts" is 2, but "hosts" array in another json file has only one item:
#v+
$ cat metadata.json
{"report_id": "11a5300c-6a02-464a-a5fb-9dd7cc1e537c","host_inventory_api_version": "1.0","source": "Satellite","report_slices": {"ff45bb65-e965-4ddd-a05d-86059aa13185": {"number_hosts": 2}}}
$ python3 -c 'import json; print(len(json.load(open("ff45bb65-e965-4ddd-a05d-86059aa13185.json"))["hosts"]))'
1
#v-
I don't have report itself, but I found json files on Satellite filesystem - attaching them to bugzilla.
I could reproduce that right after I registered one host in default organization of Satellite.
Later I registered more hosts, and metadata number matched number of hosts. When I removed all hosts except one, metadata says there is only one host - as expected.
I also registered new host on another organization, but here again - metadata number matches number of hosts.
So this *might* happen only for first host registered in default organization, which would not be a big deal. But this might also creep up in other circumstances, so I think it's good idea to double-check code responsible for that part.
Found on plugin version 1.0.4, Satellite 6.7 snap 17.
While smoke-testing the plugin, I get report where metadata.json "number_hosts" is 2, but "hosts" array in another json file has only one item: #v+ $ cat metadata.json {"report_id": "11a5300c-6a02-464a-a5fb-9dd7cc1e537c","host_inventory_api_version": "1.0","source": "Satellite","report_slices": {"ff45bb65-e965-4ddd-a05d-86059aa13185": {"number_hosts": 2}}} $ python3 -c 'import json; print(len(json.load(open("ff45bb65-e965-4ddd-a05d-86059aa13185.json"))["hosts"]))' 1 #v- I don't have report itself, but I found json files on Satellite filesystem - attaching them to bugzilla. I could reproduce that right after I registered one host in default organization of Satellite. Later I registered more hosts, and metadata number matched number of hosts. When I removed all hosts except one, metadata says there is only one host - as expected. I also registered new host on another organization, but here again - metadata number matches number of hosts. So this *might* happen only for first host registered in default organization, which would not be a big deal. But this might also creep up in other circumstances, so I think it's good idea to double-check code responsible for that part. Found on plugin version 1.0.4, Satellite 6.7 snap 17.