-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open vSwitch: Do not fail to add node when the ovs_name or ovs_link already exists #1495
Conversation
It is possible that the Ganeti switch is already configured by external tools. Do not error out when that is the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your improvement.
Actually I tried to understand the openvswitch design of Ganeti. What I've found are undocumented cluster/group/node parameters ovs
, ovs_link
, ovs_name
(correct me if I'm wrong). However I could reproduce the problem, which also occur at gnt-node add --readd
.
All other network modes rely on external setup, probably ovs should do the same? But this an other story.
Thanks for checking. It would make sense for Ganeti to assume that the OVS bridge is already configured and not cleverly try to create it. I think then the I'll make a mental TODO to simplify and document the OVS stuff. :-) |
Not so sure about that. Ganeti's principle is that it will usually configure things as needed, and not require the admin to do extra manual work... Of course, this does not always apply - I mention this as a general principle, for ovs maybe it makes more sense to do it this way. |
Right, thanks for the input. I don't have a strong opinion, I just remember being thorougly confused between the distinction of Probably the best course of action will reveal itself just by documenting this stuff. :-) |
...which brings me to another point: I would like to include OVS configurations in automated testings of Ganeti but I have no clue about it at all. Would it be possible to share your configuration e.g. to the ganeti mailing list (or to me directly)? That way we could a) extend current Ganeti test environments to support & test OVS and b) also add documentation to Ganeti itself on how to setup and use OVS. |
@rbott sounds great! I'll document three different scenarios here, each creating an OVS brige named
I'm currently writing a blog post on how to run Ganeti with OVS on GNU Guix, which I'll run by the mailing list in a few days. It only covers scenario 1 here though. |
I should mention that such an "access interface" is only really necessary if the node needs an IP on I tend to create a |
gnt-node add
will unconditionally attempt to create the switch and connect the uplink specified in the node group. It is possible that the switch is already configured by external tools. This PR makes it not fail when that is the case.