Description of problem: adding a new host with a preview PREFIX item into the ifcfg file prevents bootstrap to complete. Version-Release number of selected component (if applicable): vdsm-4.10.1-0.18.git112fd54.fc17.x86_64 How reproducible: Steps to Reproduce: 1.having a host with a previous PREFIX=24 instead of NETMASK=255.255.255.0 2.regestering this host into engine 3. Actual results: boostrap fails Expected results: boostrap successes Additional info:
Dan, I think this is related to addNetwork script.
It is. It's also about bootstrap blindly passing the content of ifcfg-* to this script.
(In reply to comment #2) > It is. It's also about bootstrap blindly passing the content of ifcfg-* to > this script. What do you expect, to have the network logic twice, duplicated in bootstrap and in vdsm?
Dan, As we talk, this should be handled by the addNetwork script. I will be happy if this is on the 3.2 schedule. If that's help, the conversion function I use: def prefix2netmask(prefix): return socket.inet_ntoa( struct.pack( "!I", int( ( ''.ljust(prefix, '1') + ''.ljust(32-prefix, '0') ), 2 ) ) ) Maybe there is a better way... :)
http://gerrit.ovirt.org/9322 commit f3d315bc52e8ac5ac59ca2c5fc2bb5d1e0a2bbc0 Author: Dan Kenigsberg <danken> Date: Mon Nov 19 13:17:35 2012 +0200 configNet: support PREFIX option PREFIX=16 means NETMASK=255.255.0.0.