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.
1. Proposed title of this feature request
To be able to control the time schedule of InventorySync::Async::InventoryScheduledSync task in Red Hat Satellite 6.
2. What is the nature and description of the request?
A new option or setting is to be introduced to control the cron schedule for InventorySync::Async::InventoryScheduledSync task.
3. Why does the customer need this? (List the business requirements here)
Under very specific circumstances, It may be required by some end-user to run the InsightsScheduledSync job during the daytime as network disconnection is expected around midnight.
But as per https://github.com/theforeman/foreman_rh_cloud/blob/foreman_2_3/lib/foreman_rh_cloud/engine.rb#L149-L154 , the cronline is hardcoded for these two jobs
if User.unscoped.find_by_login(User::ANONYMOUS_ADMIN).present?
::ForemanTasks.dynflow.config.on_init(false) do |world|
ForemanRhCloud::Engine.register_scheduled_task(InventorySync::Async::InventoryScheduledSync, '0 0 * * *')
ForemanRhCloud::Engine.register_scheduled_task(InsightsCloud::Async::InsightsClientStatusAging, '0 0 * * *')
end
end
So there is no easy way to change the scheduling here for InventoryScheduledSync task.
4. How would the customer like to achieve this? (List the functional requirements here)
There should be an option\settings present via either satellite-installer or via satellite settings (preferably) to be able to choose the scheduling time of InventoryScheduledSync task as per requirement.
5. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
* Install Satellite and observe if the InventoryScheduledSync task is scheduled to run as per its default cron i.e. 0 0 * * *
* Use the newly developed option to tweak the scheduling of InventoryScheduledSync task to 0 10 * * * cronline and then observe if it's getting properly executed as per the new schedule or not.
* Needless to mention, whenever the scheduling will be changed, The existing Recurring logic either should be updated or else recreated with a new cron line.
6. Is there already an existing RFE upstream or in Red Hat Bugzilla?
NA
7. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?
As soon as possible
8. Is the sales team involved in this request and do they have any additional input?
NA
9. List any affected packages or components.
foreman_rh_cloud
10. Would the customer be able to assist in testing this functionality if implemented?
Yes
11. Additional information:
NA
This feature is already available in Satellite starting from 6.12.1.
The system would either randomize the start of all tasks between 00:00 and 03:00 or it is possible to force the delay by setting SATELLITE_RH_CLOUD_REQUESTS_DELAY environment variable to number of seconds to wait from midnight.
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you.
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.