-
Notifications
You must be signed in to change notification settings - Fork 0
Add Infiniband phyiscal network plugin #6
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
Conversation
The ib_physnet plugin populates the physical_network field of ironic ports determined to be Infiniband ports. Ports with a 'client-id' field in their 'extra' attribute are determined to be IB ports. The plugin is configured via the option [port_physnet] ib_physnet, which is the name of the physical network to apply.
| :returns: The physical network to set, or None. | ||
| """ | ||
| proc_data = introspection_data['all_interfaces'][iface_name] | ||
| if proc_data.get('client_id'): |
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.
If this was called something more specific like ib_client_id it might be more obvious to someone not familiar with IB, that it was an IB port but not to worry.
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.
Yeah this really isn't the best way to identify IB ports. It was added in the original ironic IB spec: https://specs.openstack.org/openstack/ironic-specs/specs/not-implemented/add-infiniband-support.html
| @@ -0,0 +1,67 @@ | |||
| # Copyright (c) 2017 StackHPC Ltd. | |||
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.
attonit: 2018
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.
Done
| def test_expected_data_non_ib(self): | ||
| cfg.CONF.set_override('ib_physnet', 'physnet1', | ||
| group='port_physnet') | ||
| self.data['all_interfaces']['em1']['client_id'] = None |
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.
I suppose we could also try with the client_id key removed, not that the code's broken.
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.
Done
The ib_physnet plugin populates the physical_network field of ironic
ports determined to be Infiniband ports. Ports with a 'client-id' field
in their 'extra' attribute are determined to be IB ports.
The plugin is configured via the option [port_physnet] ib_physnet, which
is the name of the physical network to apply.