-
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
Confconsole put incorrect hostname entry in interfaces file #1997
Comments
I'm not entirely sure how/why the hostname got set where it did, a quick glance and these are the only files in confconsole that deal with the hostname: https://github.com/turnkeylinux/confconsole/blob/master/plugins.d/System_Settings/hostname.py and https://github.com/turnkeylinux/confconsole/blob/master/ifutil.py Although from a quick skim it doesn't seem like either of these could've caused it. This is the initial overlayed interfaces file: And this is the inithook that sets the hostname: But neither of them seem suspect either. |
Hi @ebertland & thanks @OnGle for opening this as a specific issue. To elaborate on @OnGle's response:
FYI the base TurnKey interfaces file file (in common) includes the
The reason for the discrepancy between Note: to manage the network config within the container rather than on the host; in the guest run:
The additional One possible usage of a 2nd interface (i.e.
It's definitely related to some sort of conflict between the way that Proxmox configures containers (e.g. host controlled interfaces and hostname) and a TurnKey server expecting to be in control of that stuff itself. I agree that addressing this is highly desirable, but making changes to the default TurnKey config will require a fair bit of thought and testing to ensure that it works reliably under a number of different possible host configurations which TurnKey guests do not have control over. OTOH so long as changes can be enabled/disabled easily enough (e.g. via scripts and/or confconsole plugins) then I have no issue including them as soon as they are ready. |
Also related: #1992 |
There seems to be a bug still in the "hostname stuff". I installed the latest turnkey-core on Proxmox. There is only one ethernet interface, eth0. It looks like turnkey added
hostname core
to eth1, even though that doesn't exist on my container and it's probably rare to have another ethernet interface in a container.Also, the hostname has been changed to test2, but the one in the interfaces file has not been changed. I suspect that is because I didn't change the hostname in confconsole, yet. This might be a bug in the interaction between Proxmox's container setup and what Turnkey is expecting. I will have to learn more about that.
(Let me know if I should create a new issue for this.)
Originally posted by @ebertland in #1711 (comment)
The text was updated successfully, but these errors were encountered: