Created attachment 1204665 [details] hostname Description of problem: An error occurred while change the hostname. ==================================================== 2016-09-26 02:54:08,094 INFO An exception during the transaction: Command '['hostnamectl', 'set-hostname', 'cshaotest.redhat.com']' returned non-zero exit status 1 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 956, in __run_transaction self.plugin.dry_or(lambda: tx_element.commit()) File "/usr/lib/python2.7/site-packages/ovirt/node/plugins.py", line 188, in dry_or return func() File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 956, in <lambda> self.plugin.dry_or(lambda: tx_element.commit()) File "/usr/lib/python2.7/site-packages/ovirt/node/config/defaults.py", line 742, in commit config.network.hostname(self.hostname) File "/usr/lib/python2.7/site-packages/ovirt/node/config/network.py", line 231, in hostname new_hostname]) File "/usr/lib/python2.7/site-packages/ovirt/node/utils/process.py", line 139, in check_call return int(subprocess.check_call(*args, **kwargs)) File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call raise CalledProcessError(retcode, cmd) ==================================================== Version-Release number of selected component (if applicable): rhev-hypervisor7-7.3-20160923.2 ovirt-node-3.6.1-20.0.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1. Install rhev-hypervisor7-7.3-20160923.2 via PXE. 2. Login RHEV-H. 3. Configure network. 4. Set hostname to cshaotest.redhat.com 5. Focus on the output. 6. Drop to shell to check the hostname. Actual results: 1. After step5, an error occurred while change the hostname. 2. After step6, failed to save hostname. # hostname dhcp-11-27.nay.redhat.com Expected results: Change hostname can successful without error. Additional info: No such issue on RHEV-H 7.2 for RHEV 3.6.9 (rhev-hypervisor7-7.2-20160920.1) build. So this is a regression bug from 7.2 to 7.3.
Created attachment 1204666 [details] /var/log/*.*; /tmp/log; sosreport;
Add keyword "regression" due to no such issue on RHEV-H 7.2 for RHEV 3.6.9 (rhev-hypervisor7-7.2-20160920.1) build. So this is a regression bug from 7.2 to 7.3.
Please try running hostnamectl set-hostname cshaotest.redhat.com manually.
(In reply to Fabian Deutsch from comment #3) > Please try running > > hostnamectl set-hostname cshaotest.redhat.com > > manually. # hostnamectl set-hostname cshaotest.redhat.com Could not set property: Connection timed out
Also encounter this issue during auto_install with parameter: hostname=huzhao.redhat.com Please refer to attachment for detailed error report.
Created attachment 1204749 [details] screenshot during auto_install
Does it work in permissive mode? It could be that this is also related to the Private* stanzas in the unit files.
(In reply to Fabian Deutsch from comment #7) > Does it work in permissive mode? > > It could be that this is also related to the Private* stanzas in the unit > files. Seem it still can't work in permissive mode. # setenforce 0 # getenforce Permissive # hostnamectl set-hostname cshaotest.redhat.com Could not set property: Connection timed out I just send a mail to you with the reproduce's env. Thanks.
Just a reminder: changing hostname in console is not supported, only with TUI or autoinstall.
Test version: rhev-hypervisor7-7.3-20161007.0 ovirt-node-3.6.1-31.0.el7ev.noarch Test steps: 1. Install rhev-hypervisor7-7.3-20161007.0 2. Login RHEV-H. 3. Configure network. 4. Set hostname to cshaotest.redhat.com 5. Focus on the output. 6. Drop to shell to check the hostname. 7. Reboot Test results: 1. After step 5, change hostname can successful without error. 2. After step7, the new hostname still here. So the bug is fixed, change bug status to VERIFIED.