collins icon indicating copy to clipboard operation
collins copied to clipboard

Dynamic IpAddress pool creation

Open onorua opened this issue 9 years ago • 3 comments

hello, I've got a problem, here is a brief of inputs I have, and solution would like to have: Input:

  • Huge subnet
  • 1 dynamically sized subnet per customer.
  • subnet is used by dockers

The problem: IpAddress pool is statically configured inside the configuration file, without possibility to add/create/modify pool via API. At least I could not find it in the code.

What is the best practice from Collins point of view to create/modify subnet per customer?

P.S. I've tried to join collins-sm google groups - no luck. I've joined #collins on freenode - only 6 people except me in there and complete silence, that's why I've decided to create this ticket.

onorua avatar Apr 06 '15 04:04 onorua

Hi @onorua I'm sorry I didn't see your message in the collins google group or freenode - I try to stay on top of both of them. To the best of my knowledge, there is no way to create, modify or delete IP pools via the API.

I don't quite understand what you mean by "creating/modify subnet per customer". Can you explain a bit more?

Thanks!

william-richard avatar Apr 06 '15 15:04 william-richard

I've tried to join google-group without success and there is still my only message from today in IRC chatroom, maybe I'm using wrong one. Could you please tell me which one should I use? Any way, the idea is following: You have big pool, we have 3 layer deployment model for customers each of the layers has its own VLAN with some set of ACLs between them. During registering of the customer you say it's name, setup size and orchestration tool should create pools, corresponding vlans and so on. Then deployment is actually happening, and orchestration plugin perform request to IPAM module, with hope to get some free IP for the docker container. The overall procedure is quite simple (my explanations may be not) but the only thing missing is dynamic pool allocation.

onorua avatar Apr 06 '15 16:04 onorua

No you're probably in the right place. I probably need to check my settings for the google group, and the irc channel doesn't have a ton of activity. Probably the closest thing you could do for that sort of setup would be some automation of generating the config file. Collins should be able to reload most of its configs without a restart, though I haven't tried the IPAM pool configs specifically. As I said, we don't have support for dynamic pool allocation at this time.

william-richard avatar Apr 06 '15 16:04 william-richard