Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable OCSP direct pushing during upgrade #4436

Merged
merged 1 commit into from
May 11, 2023

Conversation

fmarco76
Copy link
Member

The direct publishing to OCSP is not working properly and a previous commit has change the default value for the ca.publish.rule.instance.ocsprule-<instance-<port>.enable attribute to false. This commit add the upgrade script to set false for the existing instances during the upgrade.

There are no problems with existing instances because the communication with OCSP was not properly working and other mechanism were in place.

Close the issue: RHCS-4085

@fmarco76 fmarco76 requested review from edewata and ladycfu May 10, 2023 14:06
Copy link
Contributor

@ladycfu ladycfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if tested to work.

@edewata
Copy link
Contributor

edewata commented May 10, 2023

I think the code looks good, but PKI 10.13.5 has been tagged and built, so the v10.13 branch actually contains the code meant for 10.13.6. I think we should bump the version number in the spec file and move this script into 10.13.6 folder. @ckelleyRH What do you think?

BTW, here's some doc on writing an upgrade script: https://github.com/dogtagpki/pki/blob/master/docs/development/Creating-Upgrade-Script.adoc

@fmarco76
Copy link
Member Author

I think the code looks good, but PKI 10.13.5 has been tagged and built, so the v10.13 branch actually contains the code meant for 10.13.6. I think we should bump the version number in the spec file and move this script into 10.13.6 folder. @ckelleyRH What do you think?

Updated the folder to the next version.

BTW, here's some doc on writing an upgrade script: https://github.com/dogtagpki/pki/blob/master/docs/development/Creating-Upgrade-Script.adoc

That very useful, it make the manual test much easier. Thanks!

@fmarco76 fmarco76 requested a review from ckelleyRH May 11, 2023 09:15
@ckelleyRH
Copy link
Contributor

I think we should bump the version number in the spec file and move this script into 10.13.6 folder. @ckelleyRH What do you think?

Agreed 😃

Copy link
Contributor

@ckelleyRH ckelleyRH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently line 32 contains whitespace that is causing the pylint job to fail (I can't see it in the diff in the GUI though, but maybe it is auotmagically stripped?). Once that is resolved it is good to merge for me.

The direct publishing to OCSP is not working properly and a previous
commit has change the default value for the `ca.publish.rule.instance.ocsprule-<instance-<port>.enable` attribute to false. This commit add the upgrade script to set false for the existing instances during the upgrade.

There are no problems with existing instances because the communication
with OCSP was not properly working and other mechanism were in place.

Close the issue: RHCS-4085
@fmarco76
Copy link
Member Author

@ladycfu @edewata @ckelleyRH Thanks!

@fmarco76 fmarco76 merged commit fcd8d2a into dogtagpki:v10.13 May 11, 2023
@fmarco76 fmarco76 deleted the UpgradeDisableOCSPPub branch May 11, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants