bcgov / nr-fom

Forestry Operations Map
Apache License 2.0
0 stars 1 forks source link

PROD Issue - Batch Job Issue: Published FOMs Did Not Get Switched To Commenting Open On Opening Date. #563

Open ianliuwk1019 opened 8 months ago

ianliuwk1019 commented 8 months ago

Describe the Bug Julius reported that a FOM in Published state but commenting opening date is today in production did not get changed to status to be Commenting Open.

Expected Behaviour Status should be Commenting Open.

Actual Behaviour Still on Published status.

Steps To Reproduce See screenshot below (Production)

Screenshots image

Additional context

MCatherine1994 commented 8 months ago

Issue and Solution:

This issue is cased by the cronjob uses wrong image. As shared in #562, the cronjob pulls image from GitHub image registry, uses the latest "test" tag image. However, since we're doing some recent improvement and test deployment, the latest "test" tag image has all our new features. The cronjob argument got changed, so the checks to run the state change cronjob failed and it can't be triggered anymore.

And if we check the api deployment config, it's pulling the image from the Openshift image stream. It uses the latest "test" image when we did prod deployment last time, which is expected and correct.

So in the fix ticket #562, pr #568, we updated the api/openshift.deploy.yml, to let cronjob pull the image from Openshift image stream as well. The workflow works as below:

Deployment Condition We did a PROD deployment on Wednesday to get all business required feature improvement in prod. And that make the cronjob argument works again to trigger the cronjob. So this problem is solved temporarily.

The complete fixes are done in pr #568, and it's merged to main and deployed in test now. We still need to deploy the fix to production to avoid getting the same issue in the future.