Hi,
Has anyone used the id-allocator package that is found on stash ? v1.4.0 ?
I am trying to create a simple pool and and it fails:
admin@ncs(config)# resource-pools id-pool test range start 9 end 10
admin@ncs(config-id-pool-test)# top
admin@ncs(config)# commit
Commit complete.
admin@ncs(config)#
admin@ncs# show running-config resource-pools
resource-pools id-pool test
range start 9
range end 10
!
admin@ncs#
Everything seems to be fine but the ncs-java-vm.log throws an error:
<ERROR> 25-Feb-2017::01:38:04.545 RangeSet (id-allocator:Reactive fastmap id allocation)-Run-0: - Failed to setup RangeSet
- com.tailf.cdb.CdbException: already exists
at com.tailf.cdb.CdbException.mk(CdbException.java:64) at com.tailf.cdb.CdbSession.create(CdbSession.java:1100) at com.tailf.pkg.idallocator.RangeSet.<init>(RangeSet.java:45) at com.tailf.pkg.idallocator.IdAllocator.createPool(IdAllocator.java:1118) at com.tailf.pkg.idallocator.IdAllocator.run(IdAllocator.java:295) at com.tailf.ncs.ctrl.ApplicationLifeCycle$1.run(ApplicationLifeCycle.java:72) at java.lang.Thread.run(Thread.java:745) <ERROR> 25-Feb-2017::01:38:04.550 RangeSet (resource-manager:Reactive fastmap id allocation)-Run-2: - Could not add range {"start":9,"end":10}
- com.tailf.cdb.CdbException: already exists
at com.tailf.cdb.CdbException.mk(CdbException.java:64)
at com.tailf.cdb.CdbSession.create(CdbSession.java:1100)
at com.tailf.cdb.CdbSession.create(CdbSession.java:1120)
at com.tailf.pkg.idallocator.RangeSet.add(RangeSet.java:83)
at com.tailf.pkg.idallocator.RangeSet.add(RangeSet.java:19)
at com.tailf.pkg.idpool.IDPool.recalculateRanges(IDPool.java:221)
at com.tailf.pkg.idpool.IDPool.setRange(IDPool.java:174)
at com.tailf.pkg.idallocator.IdAllocator.createPool(IdAllocator.java:1136)
at com.tailf.pkg.idallocator.IdAllocator.run(IdAllocator.java:295)
at com.tailf.ncs.ctrl.ApplicationLifeCycle$1.run(ApplicationLifeCycle.java:72)
at java.lang.Thread.run(Thread.java:745)
All packages (nso-util, resource-manager and id-allocator) are the latest version from stash (cloned):
git clone https://stash.tail-f.com/scm/pkg/resource-manager.git
git clone https://stash.tail-f.com/scm/pkg/nso-util.git
git clone https://stash.tail-f.com/scm/pkg/id-allocator.git
The installation is fresh 4.3.1 installation.
Any ideas ? Should I not be using those ? the package posted on developer.cisco.com is not the latest and is from July 2016.