Closed fockarty closed 22 hours ago
Hi @fockarty,
Thank you for the report. Can you:
Ensure the maintenance window is correctly configured. Please provide the exact window you're referring to.
just in case, verify the system's time zone:
timedatectl status
Adjust the earliestOccurrence
to fit within the maintenance window.
Hi, it seems Uyuni and I had a disagreement about what was the third tuesday. Just tried again and all worked. Sorry to have bothered you
solved
Problem description
If a system has a maintainance windows (lets say 3th tuesday 2300 CET) is not possible to use system/schedulePackageUpdate via the api.
expected: the job gets scheduled for the first window after earliestOccurence
actual : the api gives an internal server error
which is very strange because the json has earliestOccurrence which suggests that the job should be scheduled after that date
Steps to reproduce
API=https://servername/rhn/manager/api
curl -H "Content-Type: application/json" -d '{"login": "admin", "password": "secret"}' -i $API/auth/login -k
curl -k -v -H "Content-Type: application/json" --cookie "pxt-session-cookie=; Max-Age=3600; Expires=date/time GMT; Path=/; Secure; HttpOnly;HttpOnly;Secure" \
$API/system/schedulePackageUpdate -d '{"sids": 1000010001, "earliestOccurrence": "Jun 18, 2024, 09:00:00 PM"}' -k -v
response is 500 Internal Server Error instead of real error (bug numbert ), real error see logs field
...
Uyuni version
Uyuni proxy version (if used)
No response
Useful logs
Additional information
No response