Giter Club home page Giter Club logo

Comments (2)

masa213f avatar masa213f commented on August 31, 2024

In this environment, 8 addressblocks were created from the default addresspool.

cybozu@gcp0-boot-0:~$ kubectl get addressblock | grep default
default-0           10.69.0.5     default           10.64.0.0/27
default-1           10.69.0.196   default           10.64.0.32/27
default-2           10.69.1.133   default           10.64.0.64/27
default-3           10.69.0.196   default           10.64.0.96/27
default-4           10.69.0.197   default           10.64.0.128/27
default-5           10.69.1.132   default           10.64.0.160/27
default-6           10.69.0.4     default           10.64.0.192/27
default-7           10.69.1.134   default           10.64.0.224/27

But coil-controller failed to count the addressblocks.
According to the following logs, it is misjudged as 7.

cybozu@gcp0-boot-0:~$ stern -n kube-system coil-controller-
(...)
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760489.8024213,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.1.132","block":"defaul
t-5","index":5,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760511.0823762,"logger":"pool-manager","msg":"created AddressBlock","pool":"default","index":6,"node":"10.69.0.4"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760511.082449,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.0.4","block":"default-6
","index":6,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1189501,"logger":"pool-manager","msg":"created AddressBlock","pool":"default","index":7,"node":"10.69.1.134"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.119075,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.1.134","block":"default
-7","index":7,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1197767,"logger":"pool-manager","msg":"resynced block usage","pool":"default","blocks":7}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1198223,"logger":"addresspool-reconciler","msg":"synchronized"}

from coil.

masa213f avatar masa213f commented on August 31, 2024

The List in pool.SyncBlocks might not list all resources due to the local cache.
Use Manager.GetAPIReader() to list addressblocks, instead of Manager.GetClient().

from coil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.