bug: IPPrefixPool
doesn't take into account resources that have been freed
#5315
Labels
type/bug
Something isn't working as expected
Component
API Server / GraphQL
Infrahub version
1.0.9
Current Behavior
I have a /24 prefix that is connected to a IP prefix resource pool. I have allocated many subnets out of this pool and at some point reached the end of my /24 prefix. Then I removed the first prefixes allocated but somehow my resource pool still see the prefix as full and thus doesn't want to allocate anymore.
['IPPrefixPoolGetResource'] No more resources available
Few additional bits:
Expected Behavior
I expect the IP prefix resource pool to catchup on the latest deletions that happened in the prefix and re-allocate them during the following instances.
Steps to Reproduce
-> Even tho there is some space (cause you removed some records) resource pool says the prefix is full
Additional Information
Weirdly enough in the logs I see that the resource pool mentions some of the records I have deleted, maybe somehow the resource pool has a cache that is not cleared? or take the state of the data from the past? (tried to reboot infrahub but still have the same message...)
logs.txt
The text was updated successfully, but these errors were encountered: