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

MultipleObjectsReturned: get() returned more than one NetworkConnection -- it returned 2! #1350

Closed
schakrava opened this Issue Jun 15, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@schakrava
Member

schakrava commented Jun 15, 2016

For network connections including team and bond types, sometimes multiple connections may be auto detected as masters. This is usually caused by either 1)manual intervention or 2)insufficient cleanup/delete of connections. The problem can be easily reproduced as follows

  1. Create a team connection in the UI
  2. Create another team connection on the CLI using nmcli command with the same name.
  3. Refresh the UI or go to the network interfaces screen again. This results in the above error.

There are multiple ways to workaround this, but the simplest fix is to expect that there can be more than one master connection. It will result in these duplicate/stale connections to be listed in the UI, which can then be deleted by the user easily.

@schakrava schakrava added the bug label Jun 15, 2016

@schakrava schakrava added this to the Looney Bean milestone Jun 15, 2016

@schakrava schakrava self-assigned this Jun 15, 2016

schakrava added a commit to schakrava/rockstor-core that referenced this issue Jun 15, 2016

schakrava added a commit to schakrava/rockstor-core that referenced this issue Jun 15, 2016

@schakrava schakrava closed this in d8befc1 Jun 16, 2016

schakrava added a commit that referenced this issue Jun 16, 2016

Merge pull request #1351 from schakrava/1350_network_get_returned_2
expect the possibility of multiple master connections. Fixes #1350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment