-
Notifications
You must be signed in to change notification settings - Fork 138
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
Networking configuration error - with email configuration.. #2047
Comments
Hi @carlbeech, I've been working around that area of the code lately so thanks a lot for your report! I'm curious to know what happened, and would like to be able to reproduce the issue. To this aim, would you be able to give more information on how you setup this connection before you observed this issue? If you used Rockstor's webUI for that, the settings used would be helpful. The reason I'm asking this is that the error you observed results from the absence of a device information associated to this connection in Rockstor's database:
As this association is made when the connection is created, I'm wondering if the issue originated there. Alternatively, was there any "hardware" change (or VM configuration change) between the creation of this connection and when you got the error above? In advance, thanks for your help, |
Hi Not sure I can recall 100% whether I used the web-gui or nmtui - I suspect I may have used nmtui, as I needed a manual IP setting not DHCP - and I think I got a similar error when I first installed and tried to edit the settings through the GUI (but didn't have time to get into the detail at that point). There's not been any changes in the hardware config from the VM side (apart from adding disks). Is there a way to manually re-sync the Rockstor database with what the server actually has - I'd far prefer to use the web UI rather than having to go into the console and muck around with nmtui... It would strike me that such a tool might be useful anyway, to periodically perform a re-sync...? Cheers |
Thanks for the information,
This is actually exactly how Rockstor operates with network configuration: it uses |
Hi Ok - thanks for the info - that makes a bit more sense... as a matter of interest, it got mentioned on another github issue I raised that I should be raising this through the forums, not here? Let me know if that is better.... I spotted in the rockstor.log the following: And NMCLI outputs are: [root@rockstor_home log]# nmcli lo: unmanaged DNS configuration: Use "nmcli device show" to get complete information about known devices and Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details. GENERAL.DEVICE: lo However, as you can see above, the issue is tying in with two 'wired connection 1' entries... so I need to delete one - I'm guessing I need to use the NMCLI/NMTUI to do that... Cheers |
I tell a lie - I hadn't spotted the 'bin' icon - I've clicked on it, and it deleted it :-) Many thanks Carl. |
Yes that was me. I'd stick with what we have here now as it looks like we are getting to the nub of it. The forum can be useful to initially whittle down whats going on and then we tease out the individual issues to be as concise as possible in the GitHub issues, and identify if we already have existing issues open for the same base cause. But now worries as your contribution by way of reporting is welcome anywhere. And thanks for taking the time and effort to work through this. Much appreciated. @FroggyFlox This to me looks very much like an existing issue we already have in GitHub: |
Thanks a lot for the reference, @phillxnet, that does look very similar indeed. It seems we have some improvement to make on how to handle this situation. I remember the issue you just referenced now (I had forgotten about it), and given there seems to be a reproducer, I see if I can actually reproduce it and maybe address the problem. Thanks for all the additional information and help @carlbeech! |
Hi
I thought I'd give email alerting a go, as I think I have an issue with scheduled tasks... I tried to configure email, but when I clicked on verify I got a message that it had an error - I realised what the problem was - in that I'd only had 192.16.1.1 in my DNS, but the email config was for 'smtp.gmail.com'.
So I went back to the networking config, and edited it, so that it had 192.168.1.1,8.8.8.8 - however when I submitted the update, I got an error:
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 322, in put
device = nco.networkdevice_set.first().name
AttributeError: 'NoneType' object has no attribute 'name'
The network config I was updating to was:
Name * Wired connection 1
Connection Type * ethernet
Device * lo
Config Method * manual
MTU 1500
IP Address * 192.168.1.198/24
Gateway 192.168.1.1
DNS Servers 192.168.1.1,8.8.8.8
Search Domains
I used nmtui tool to make the necessary network changes (although I'm not sure if the rockstor screen makes other changes?)
I've worked through the email settings and got those to work - once I'd done the extra security settings associated with gmail...
So as far as I'm aware, things are functioning, however, I thought you may want to know about the error if you alter network settings...
I'm using rockstor 3-9-2-48 (stable), within a vmware 6.5 environment.
Please let me know if there's any extra / logs / config file information needed.
Cheers
Carl.
The text was updated successfully, but these errors were encountered: