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.
DescriptionStephen Wadeley
2021-10-26 18:23:15 UTC
Description of problem:
Making HTTP PUT to hosts/:id/errata/applicability endpoint fails to return task info
Version-Release number of selected component (if applicable):
Sat6.10
How reproducible:
Every time
Steps to Reproduce:
1. Set up a Content Host
2. Install RPM which requires errata
3. Make HTTP PUT to hosts/:id/errata/applicability
Actual results:
Received HTTP 202 response: []
Expected results:
As in Sat6.9.7:
HTTP 202 response: {"id":"3d54aefa-6df2-4333-b01e-b802b294b36e","label":"Actions::Katello::Host::GenerateApplicability","pending":true,"action":"Generate applicability","username":"admin","started_at":"2021-10-26 18:13:21 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"services_checked":["pulp","pulp_auth"],"host_ids":[5],"use_queue":false,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Generate applicability","input":"","output":"","errors":[]},"cli_example":null,"start_at":"2021-10-26 18:13:21 UTC","available_actions":{"cancellable":false,"resumable":false}}
Additional info:
Found by test automation
https://github.com/SatelliteQE/robottelo/blob/89da04d68ca9a242dd5184edbb5228d0597d9d78/tests/foreman/longrun/test_inc_updates.py#L151
Hello
Can engineering please confirm:
There is no more Foremen task "Actions::Katello::Host::GenerateApplicability" to search for.
Does that mean errata applicability is now faster as it is not a Foreman task?
Is there any way QE's automated testing can be sure a GenerateApplicability request has been completed. not just received?
Thank you
Hi Stephen,
I'm guessing it should definitely be faster now that it's not a part of the tasking system. And that's why there really isn't anything to show in the result. The request places a message on an internal queue where it will be processed pretty much instantly. I'd recommend having test cases that assert the observable outcomes:
- Does the errata you are expecting show up as applicable after recalculation?
- Does installing the applicable result in it no longer being shown as applicable?
It could be useful to store a timestamp of when the last errata applicability calculation was completed for a given host to give some more traceability. I'd run that idea by Justin to check if something like that doesn't already exist, but I'm not aware of something like it.
Description of problem: Making HTTP PUT to hosts/:id/errata/applicability endpoint fails to return task info Version-Release number of selected component (if applicable): Sat6.10 How reproducible: Every time Steps to Reproduce: 1. Set up a Content Host 2. Install RPM which requires errata 3. Make HTTP PUT to hosts/:id/errata/applicability Actual results: Received HTTP 202 response: [] Expected results: As in Sat6.9.7: HTTP 202 response: {"id":"3d54aefa-6df2-4333-b01e-b802b294b36e","label":"Actions::Katello::Host::GenerateApplicability","pending":true,"action":"Generate applicability","username":"admin","started_at":"2021-10-26 18:13:21 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"services_checked":["pulp","pulp_auth"],"host_ids":[5],"use_queue":false,"current_request_id":null,"current_timezone":"UTC","current_user_id":4,"current_organization_id":null,"current_location_id":null},"output":{},"humanized":{"action":"Generate applicability","input":"","output":"","errors":[]},"cli_example":null,"start_at":"2021-10-26 18:13:21 UTC","available_actions":{"cancellable":false,"resumable":false}} Additional info: Found by test automation https://github.com/SatelliteQE/robottelo/blob/89da04d68ca9a242dd5184edbb5228d0597d9d78/tests/foreman/longrun/test_inc_updates.py#L151