Updates:
Status: Fixed
Owner: [email protected]
Labels: Usability Component-networking
Comment #2 on issue 1068 by [email protected]: gnt-network info outputs
wrong external reservations (addresses offset by +30)
https://code.google.com/p/ganeti/issues/detail?id=1068
Fixed in
commit 2a050e1939d1f576e5008b69deebd9c9e4e3c086
Author: Petr Pudlak <[email protected]>
Date: Fri Apr 17 19:06:19 2015 +0200
Fix the computation of the list of reserved IP addresses
After refactoring the code for network addresses to Haskell, a
regression appeared that added 30 to all IP addresses in the generated
list. Since the code for generating the list used just 'show' and look
for 0s and 1s in the string (and treating anything else as 0), it turned
out that after adding a separate type for address pools, the strings
become
"AddressPool {apReservations = ...}"
and the initial part of the string was exactly the mysterious 30
characters.
This fix replaces this by switching to correct types and iterating over
the bits in BitArray.
Fixes #1068.
Signed-off-by: Petr Pudlak <[email protected]>
Reviewed-by: Klaus Aehlig <[email protected]>
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings