#9031 review-stats script cronjob timing issue
Closed: Fixed 3 years ago by mattia. Opened 3 years ago by mattia.

Describe what you would like us to do:

The review-stats script cronjob is set to be executed every hour at 0 minutes, but looking at the openshift logs (and at the time printed in the HTML output) it is run at 46 minutes.
However, the cronjob that syncs the output to the sundries that is set to run at 3 and 33 minutes appears to be executed at the right time.

This started happening after the move to iad2.

When do you need this to be done by? (YYYY/MM/DD)

Whenever you get some time, it's not high priority, just wondering why it happens.


So the cron is to be configured with the following :

spec:
  schedule: 46 * * * *
  concurrencyPolicy: Forbid
  suspend: false
  jobTemplate:

Which is not matching what we have in ansible (https://pagure.io/fedora-infra/ansible/blob/master/f/roles/openshift-apps/review-stats/templates/cron.yml#_7).

I am going to redeploy that job which should fix the problem.

Ok that should be fixed now, closing the ticket but please reopen if you see something wrong.

Metadata Update from @cverna:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

@cverna now the pvc cannot be mounted:
no persistent volumes available for this claim and no storage class is set

@cverna now the pvc cannot be mounted:
no persistent volumes available for this claim and no storage class is set

Ah :( we might need @kevin to help us there

Metadata Update from @cverna:
- Issue status updated to: Open (was: Closed)

3 years ago

Fixed.

For the record:

[root@os-master01 ~][PROD-IAD2]# oc delete pv/openshift-prod-reviewstats
persistentvolume "openshift-prod-reviewstats" deleted
[root@os-master01 ~][PROD-IAD2]# oc create -f openshift_prod_reviewstats.yml
persistentvolume/openshift-prod-reviewstats created

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Fixed.
For the record:
[root@os-master01 ~][PROD-IAD2]# oc delete pv/openshift-prod-reviewstats
persistentvolume "openshift-prod-reviewstats" deleted
[root@os-master01 ~][PROD-IAD2]# oc create -f openshift_prod_reviewstats.yml
persistentvolume/openshift-prod-reviewstats created

It doesn't seem to have worked, the script is still broken and and pvc cannot be mounted.

Metadata Update from @mattia:
- Issue status updated to: Open (was: Closed)

3 years ago

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: OpenShift, groomed, low-trouble, medium-gain

3 years ago

Somehow messaging-bridges had the pvc and grabbed the volume. ;(

Anyhow, I have cleaned it up and it should be working now...

Can you confirm?

Somehow messaging-bridges had the pvc and grabbed the volume. ;(
Anyhow, I have cleaned it up and it should be working now...
Can you confirm?

Yes, everything seems to work again as normal.
Thank you.

Metadata Update from @mattia:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata