Problem:
With pulp v2 we were monitoring pulp repo sync tasks to evaluate proper completion using specific api endpoint:
https://ip_address/pulp/api/v2/repositories/{repo_name}/history/sync?limit=1
We processed output to get relevant information, however in pulp v3 which we are migrating to, I have not been able to find a key that can link a task to a specific repo hence I cannot correlate them so monitoring is almost impossible since task href can be only related to repo at the moment of task execution, we are running sync tasks using cron and I think storing in a file task href everytime task is run is not feasible since we use lambda to monitor so we need a proper API method. Maybe I overlooked something please bear with me, but as of now I donât have a clear view on how to implement this monitoring. Do you have any suggestions/ideas?
Off topic question, task list is automatically rotated by pulp? or do I need to schedule purge task?
Expected outcome:
Pulpcore version:
âcoreâ: â3.48.0â,
Pulp plugins installed and their versions:
âversionsâ: {
ârpmâ: â3.25.1â,
âcoreâ: â3.48.0â,
âfileâ: â3.48.0â,
âcertguardâ: â3.48.0â
},
Operating system - distribution and version:
RHEL 9
Other relevant data: