| Summary: | Hostname shown in cockpit is not the same between login page and host page | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | wanghui <huiwa> |
| Component: | cockpit | Assignee: | Marius Vollmer <mvollmer> |
| Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | CC: | bugs, cshao, fdeutsch, huzhao, leiwang, mvollmer, stefw, weiwang, yaniwang |
| Target Milestone: | pre-dev-freeze | Keywords: | Extras |
| Target Release: | 7.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-07 08:58:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1329957 | ||
|
Description
wanghui
2016-04-26 02:23:20 UTC
What does the hostnamectl command say? This is where Cockpit gets the information about the host name. (In reply to Stef Walter from comment #1) > What does the hostnamectl command say? This is where Cockpit gets the > information about the host name. # hostnamectl Static hostname: test.redhat.com Pretty hostname: test Transient hostname: ltest.redhat.com Icon name: computer-desktop Chassis: desktop Machine ID: aedcf54a9c5d4e87b19123ee38fc653b Boot ID: 6fdeb36ea0cf4479b5310153686897a4 Operating System: oVirt Node 3.6.5_master CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-327.13.1.el7.x86_64 Architecture: x86-64 Marius, do you think we should show the transient host name in the server page when it differs from the static host name? > do you think we should show the transient host name in the server page when it differs from the static host name?
Shouldn't the static hostname take precedence always? I think I remember a change you made to systemd to that effect, no?
Stef, https://github.com/systemd/systemd/commit/c779a44222161155c039a7fd2fd304c006590ac7 Based on that I'd say that the login page should use the static hostname. Is the problem here maybe that the "#hostname ..." thing changes the kernel hostname directly? This is not supported anymore with systemd. Everyone must go via hostnamed. > the "#hostname ..." thing
Ahh, that's just /usr/bin/hostname.
Marius, I agree. If someone calls hostname, instead of hostnamectl to change the hostname they've gone "off road" and get to keep both pieces. I would suggest closing this with WONTFIX. > If someone calls hostname, instead of hostnamectl to change the hostname they've gone "off road" and get to keep both pieces. Yeah, that's the new rule apparently. Is it documented somewhere? https://www.freedesktop.org/wiki/Software/systemd/hostnamed/ doesn't really mention it. It's documented here: http://cockpit-project.org/guide/latest/feature-systemd.html Should we make it more explicit? |