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

Clone CA: pkispawn does not throw an error when master CA has serialCloneTransferNumber=0 set #2104

Open
pki-bot opened this issue Oct 3, 2020 · 8 comments
Milestone

Comments

@pki-bot
Copy link

pki-bot commented Oct 3, 2020

This issue was migrated from Pagure Issue #1545. Originally filed by mharmsen (@mharmsen) on 2015-08-06 22:34:37:

  • Assigned to nobody

Clone CA: pkispawn does not throw an error when master CA has
serialCloneTransferNumber=0 set

Steps to Reproduce:

1. pkispawn master CA
2. Edit the CS.cfg

beginSerialNumber=1
endSerialNumber=100000

cloneTansferNumber=0

Actual results:

pkispawn does not throw any error

Debug log has the following error message

[05/Aug/2015:16:53:36][localhost-startStop-1]: masterConn is connected: true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: conn is connected true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: mNumConns now 2
[05/Aug/2015:16:53:36][localhost-startStop-1]: DBSubsystem: getNextRange  Next
range has been added: 10000001 - 20000000
[05/Aug/2015:16:53:36][localhost-startStop-1]: Releasing ldap connection
[05/Aug/2015:16:53:36][localhost-startStop-1]: returnConn: mNumConns now 3
[05/Aug/2015:16:53:36][localhost-startStop-1]: nNextMinSerialNo has been set to
10000001
[05/Aug/2015:16:53:36][localhost-startStop-1]: DBSubsystem: Setting next min
requests number: 10000001
[05/Aug/2015:16:53:36][localhost-startStop-1]: DBSubsystem: Setting next max
requests number: 20000000
[05/Aug/2015:16:53:36][localhost-startStop-1]: Checking for a range conflict
[05/Aug/2015:16:53:36][localhost-startStop-1]: In
LdapBoundConnFactory::getConn()
[05/Aug/2015:16:53:36][localhost-startStop-1]: masterConn is connected: true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: conn is connected true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: mNumConns now 2
[05/Aug/2015:16:53:36][localhost-startStop-1]: Releasing ldap connection
[05/Aug/2015:16:53:36][localhost-startStop-1]: returnConn: mNumConns now 3
[05/Aug/2015:16:53:36][localhost-startStop-1]: CMSEngine: checking certificate
serial number ranges
[05/Aug/2015:16:53:36][localhost-startStop-1]: In
LdapBoundConnFactory::getConn()
[05/Aug/2015:16:53:36][localhost-startStop-1]: masterConn is connected: true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: conn is connected true
[05/Aug/2015:16:53:36][localhost-startStop-1]: getConn: mNumConns now 2
[05/Aug/2015:16:53:36][localhost-startStop-1]: Repository: getSerialNumber()
[05/Aug/2015:16:53:37][localhost-startStop-1]: returnConn: mNumConns now 3
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: getSerialNumber
serial=1
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository:setSerialNumber 2
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: in InitCache
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: Instance of
Certificate Repository.
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: minSerial:101
maxSerial: 100
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: nextMinSerial:
nextMaxSerial:
[05/Aug/2015:16:53:37][localhost-startStop-1]: Repository: increment:10000000
lowWaterMark: 2000000
[05/Aug/2015:16:53:37][localhost-startStop-1]: CertificateRepository:  in
getLastSerialNumberInRange: low 257 high 256
Error in obtaining the last serial number in the repository!
        at com.netscape.cmscore.dbs.Repository.initCache(Repository.java:323)
        at com.netscape.cmscore.dbs.Repository.checkRanges(Repository.java:475)
        at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1272)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
xt.java:5210)
        at org.apache.catalina.core.StandardContext.startInternal(StandardConte
xt.java:5493)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:133)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contai
nerBase.java:156)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(Contai
nerBase.java:145)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConf
ig.java:1862)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
[05/Aug/2015:16:53:37][localhost-startStop-1]: CMSEngine.shutdown()
[05/Aug/2015:16:53:37][localhost-startStop-1]: Destroying
LdapBoundConnFactory(DirAclAuthz)
[05/Aug/2015:16:53:37][localhost-startStop-1]: Destroying
LdapBoundConnFactory(PasswdUserDBAuthentication)
[05/Aug/2015:16:53:37][localhost-startStop-1]: Destroying
LdapAnonConnFactory(PasswdUserDBAuthentication)
[05/Aug/2015:16:53:37][localhost-startStop-1]: disconnecting connection 0

Expected results:

pkispawn should throw an error
@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2015-08-10 23:36:47

Per CS/DS meeting of 08/10/2015 - 10.3
is zero a valid value?

@pki-bot pki-bot added this to the FUTURE milestone Oct 3, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2015-08-10 23:38:49

Bugzilla Bug 1252173 was filed to document this as a known issue in the release notes.

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2016-05-06 21:58:31

Per Bug Triage of 05/05/2016: 10.4

NOTE: (corner case)

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2016-12-01 21:12:46

Per Offline Triage of 11/30/2016-12/01/2016: FUTURE - minor

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2017-02-27 14:03:48

Metadata Update from @mharmsen:

  • Issue set to the milestone: FUTURE

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2017-08-31 00:13:02

Metadata Update from @mharmsen:

  • Custom field feature adjusted to None
  • Custom field lowhangingfruit adjusted to vakwetu: X
  • Custom field proposedmilestone adjusted to None
  • Custom field proposedpriority adjusted to None
  • Custom field reviewer adjusted to None
  • Custom field version adjusted to None
  • Issue close_status updated to: None

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2018-04-23 21:01:12

Per 10.5.x/10.6 Triage: FUTURE

RHBZ: CLOSED UPSTREAM

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from mharmsen (@mharmsen) at 2018-04-23 21:01:12

Metadata Update from @mharmsen:

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

No branches or pull requests

1 participant