'NoneType' object has no attribute 'name' when setting NIC to manual

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Error when trying to set another NIC in Config method manual

Detailed step by step instructions to reproduce the problem

Goto Networks choose a NIC and try and set it up

Web-UI screenshot

[Drag and drop the image here]

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 321, in put device = nco.networkdevice_set.first().name AttributeError: 'NoneType' object has no attribute 'name'

@EBA Welcome to the Rockstor community.

Thanks for the report. So to clarify you already have an existing NIC manually configured and this issue occurred when you attempted to manually configure a second NIC. Could you describe your desired end state, NIC config wise, as well if your would.

Also could you confirm that the same still happens after upgrading to the latest testing release, i.e. if you subscribe to the testing channel you should then be offered a much newer (but still old in comparison to stable) version of Rockstor (our testing channel is awaiting plans to change it away from rpm support). But I’m pretty sure we haven’t made any changes in either channel to this code since 3.9.1-0 but worth a try just in case.

Thanks again for the report and once we have the exact steps to reproduce this maybe you would like to open a GitHub issue so that we can get this one line up ready to fix.