openshift / openshift-sdn

Apache License 2.0
69 stars 63 forks source link

IP allocation doesn't allocate IPs according to IPv4 subnetting math #43

Closed jeremyeder closed 9 years ago

jeremyeder commented 9 years ago

Loop through osdn-docker-run > 255 times and you'll see what I mean:

++ ip netns exec 32545 ip addr add 10.1.0.840/16 dev eth0 Error: an inet prefix is expected rather than "10.1.0.840/16".

jeremyeder commented 9 years ago

/cc @rajatchopra @mrunalp

jeremyeder commented 9 years ago

/etc/openshift-env/used.log

rajatchopra commented 9 years ago

Yep. That was a hack to get it going. I didnt expect this to be run so many times :). Will fix.

rajatchopra commented 9 years ago

To be clear it is only a bug in the experimental branch sdn_no_lbr and sdn_internal_ports. We do not need to track this bug/fix for openshift-sdn master.

jeremyeder commented 9 years ago

agreed, sorry i should have noted that.

mrunalp commented 9 years ago

@jeremyeder We have now added an ip allocator that will be integrated into plugins soon.