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

Network config: Failed to configure network interface(X) due to a system error #915

Closed
roweryan opened this issue Oct 1, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@roweryan
Copy link

roweryan commented Oct 1, 2015

If you have multiple network devices, and you edit one that is not in use, you get the following error:

Network config:  Failed to configure network interface(X) due to a system error 

Also would it be possible to set the type to "None" if you never want the interface to come up? Like for wireless for example.

@schakrava
Copy link
Member

@roweryan Thanks for opening this issue, but could you retest with 3.8-8 and report back what you see? I think this should be fixed now.

@schakrava schakrava added this to the Toulumne milestone Oct 5, 2015
@schakrava schakrava self-assigned this Oct 5, 2015
@roweryan
Copy link
Author

roweryan commented Oct 5, 2015

When I abandon configuring a new interface by clicking Cancel I get:

Error! execv() arg 2 must contain only strings

@roweryan
Copy link
Author

roweryan commented Oct 5, 2015

Also the "none" type is missing.

@schakrava
Copy link
Member

@roweryan with the info provided here, I am unable to reproduce the behavior. Are you able to consistently reproduce it? If so, please detail the steps and send the logs to support@rockstor.com

@roweryan
Copy link
Author

roweryan commented Oct 8, 2015

go to settings > network interfaces
click actions > pencil (edit) next to a device you do not use
click cancel on the next screen

Error!

execv() arg 2 must contain only strings

[08/Oct/2015 22:28:00] ERROR [storageadmin.util:38] request path: /api/network/enp0s31f6 method: PUT data: {u'dns_servers': u'', u'itype': u'', u'name': u'enp0s31f6', u'ipaddr': u'', u'method': u'manual', u'netmask': u'', u'gateway': u''}
[08/Oct/2015 22:28:00] ERROR [storageadmin.util:39] exception: execv() arg 2 must contain only strings
Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception
    yield
  File "/opt/rockstor/src/rockstor/storageadmin/views/network.py", line 192, in put
    gateway=gateway, dns_servers=dns_servers)
  File "/opt/rockstor/src/rockstor/system/osi.py", line 219, in config_network_device
    run_command(add_cmd)
  File "/opt/rockstor/src/rockstor/system/osi.py", line 71, in run_command
    p = subprocess.Popen(cmd, shell=shell, stdout=stdout, stderr=stderr)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
TypeError: execv() arg 2 must contain only strings

@schakrava
Copy link
Member

Figured it out @roweryan . You are not using Chrome browser are you? I am guessing Firefox, but for UI related issues, please include your browser going forward. Anyway, fix is on the way. Really appreciate the bug report!

schakrava added a commit that referenced this issue Oct 9, 2015
Fix cancel button and required fields. Fixes #915
@roweryan
Copy link
Author

roweryan commented Oct 9, 2015

I use Firefox - thanks!

@roweryan
Copy link
Author

It works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants