Skip to content
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

NAS-127395 / 24.10 / Prevent ES24N multipath #14085

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/middlewared/middlewared/plugins/jbof/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,21 @@ async def hardwire_host(self, mgmt_ip, shelf_index, schema, verrors):
# Failed to connect any IPs => error
verrors.add(schema, f'Unable to communicate with the expansion shelf (node {node})')
return
elif len(connected_shelf_ips) > 1:
# Too many connections exist (currently do not support multipath)
verrors.add(schema, f'Too many connections wired to the expansion shelf (node {node})')
return
self.logger.debug('Configured node %r: %r', node, connected_shelf_ips)
else:
connected_shelf_ips = await self.hardwire_node('', shelf_index, shelf_ip_to_mac)
if not connected_shelf_ips:
# Failed to connect any IPs => error
verrors.add(schema, 'Unable to communicate with the expansion shelf')
return
elif len(connected_shelf_ips) > 1:
# Too many connections exist (currently do not support multipath)
verrors.add(schema, 'Too many connections wired to the expansion shelf')
return
self.logger.debug('Configured node: %r', connected_shelf_ips)

@private
Expand Down
Loading