-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cannot change server's network role? #474
Comments
@sjml can you please run Thank You! |
Thanks for your quick response! The diagnostics are up here. I'm sure this is just something I'm misunderstanding, but appreciate you taking a look. |
As IIAB is installed various configuration values are written to /etc/iiab/iiab.ini, one of which is [computed_network]-> iiab_network_mode. This is then assigned to network mode in Admin Console. So the question is why does yours say Gateway, whereas the one I am looking at says Appliance. Mine is a VM. |
The other comment to make is that the radio buttons in Admin Console represent the user's wishes, but they may not be possible. The network functions try to implement those wishes and they fall back to what is deemed possible. For some reason those functions seem to think Gateway describes your configuration. |
Is there a way to debug the process of computing the network? Do I need to disable the WiFi entirely, rather than just turning off the AP? |
Look at /opt/iiab/iiab/iiab-network.log. Add 'computed_network' variable values to /etc/iiab/iiab.ini You can narrow the search by running iiab-network in /opt/iiab/iiab after any changes |
'gui_desired_network_role' is not part of what admin_console writes to the bottom of local_vars.yml when ICO is selected, that is what forces the user override see https://github.com/iiab/iiab/blob/master/roles/network/tasks/computed_network.yml#L54-L95
|
Think you are right. Must be quite an old regression. Possibly home_url as well. |
Thanks so much @sjml for helping us work through this. Aside: Are you in Lebanon? |
What is a bit confusing is the 'LAN' device (br0) can also used with network bluetooth devices not just hostapd using the WiFi chipset and is left active for that reason unless overridden. A 'gateway' in the truest sense should provide internet access but that is an option controlled by the user, the device layout naming was not changed it is just a representation of the maximum of what could be enabled. In the end what do you want to achieve? I'll wait for a response, your option many not currently be available via the admin-console but is available in the underling network code and possible with entries in local_vars.yml. |
OK, so just so I'm clear -- sounds like this is a bug, and not something I messed up with my particular setup? (As I said in the original post, this is not blocking me from anything, just want it to be set right as much as possible.)
Yup! The IIAB units I'm building will go to Iraq, though. (I work in multiple sites around the region.) |
http://iiab.me/beqaa/ was built quite some time ago, but may be of interest. |
$('#'+ this.name).is(":visible") returns false for fields that are not hidden |
Is this an issue with
|
I am in the process of modifying all this to allow installation of roles from adm cons. I would prefer not to fix it here. As @jvonau mentioned the workaround is to set a missing variable in /etc/iiab/local_vars.yml and then run ansible. |
This is expected to be addressed by #475 |
closing. please reopen if problem persists. |
I may be misunderstanding how this panel in the admin console works... from what I can tell in the code, the network role gets set by analyzing what is available on different interfaces, not from the console?
I currently have a Raspberry Pi 4 with its access point disabled and connected to the internet via its ethernet port. But it always comes up in "Gateway" mode instead of "Appliance." I've tried changing the radio button, saving the configuration, and doing "Install Configured Options" but every time I reboot it still comes up as "Gateway." Is there some other way I need to be changing this option?
It's probably not horrible to be set as a Gateway in this instance, but I'm trying to see if I can just have it sit on the network as its own machine without caring about a broader role.
Thanks for whatever help you can offer.
The text was updated successfully, but these errors were encountered: