Bug 866540
| Summary: | PREFIX item is not accepted into the bootstrap processus | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | exploit |
| Component: | vdsm | Assignee: | Dan Kenigsberg <danken> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Haim <hateya> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.1 GA | CC: | abaron, acathrow, alonbl, bazulay, danken, dougsland, dyasny, exploit, iheim, mgoldboi, yeylon, ykaul |
| Target Milestone: | --- | Keywords: | EasyFix |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | network | ||
| Fixed In Version: | vdsm-4.10.3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-02 12:42:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
exploit
2012-10-15 15:18:06 UTC
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. |