Description of problem: right now guestFQDN would hold same values since GA has been started. shouldn't this be updated? Version-Release number of selected component (if applicable): rhevm-guest-agent-common-1.0.9-3.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. change hostname 2. check vdsClient -s 0 getVmStats $uuid for guestFQDN 3. Actual results: static since GA start Expected results: should be udpated Additional info:
On which guest-agent version this should be fixed? I tested it on rhevm-guest-agent-common-1.0.9-5.el6ev.noarch, and found that once hostname is changed by [1], guestName is updated, but guestFQDN not updated, and still contain value after last VM reboot. [1]sudo hostname command & edit networks, no vm reboot
1.0.10-1 and higher should have this fixed
Test on VM installed with: [root@RHEL6 yum.repos.d]# rpm -qa | grep guest qemu-guest-agent-0.12.1.2-2.415.el6_5.14.x86_64 rhevm-guest-agent-common-1.0.10-1.el6_5.noarch Found that once hostname is changed by [1], guestFQDN not updated, in 'vdsClient -s 0 getVmStats $uuid' (host has vdsm-4.16.5-2.el6ev.x86_64) and still contain same value, as after VM last reboot. [1]sudo hostname command & edit /etc/sysconfig/networks, with no VM reboot In this guest-agent version, compared to rhevm-guest-agent-common-1.0.9-5.el6ev, the guestName no longer exist. Is this OK?
Well this is what is reported by: # python -c "import socket; print socket.getfqdn();" When this shows the old name, then it will keep showing the old name in the guest agent... To change it for me on EL6 was the following: - Change the hostname in /etc/sysconfig/networks - Make the new hostname resolvable in /etc/hosts - service NetworkManager stop - service network restart - service NetworkManager start - Run python -c "import socket; print socket.getfqdn();" to verify it works After that it got reported by the guest agent
Verified on rhevm-guest-agent-common-1.0.10-2 - Change the hostname in /etc/sysconfig/networks - Make the new hostname resolvable in /etc/hosts - Change hostname by 'hostname' command - (service NetworkManager do not exist) - service network restart - (service NetworkManager do not exist) - Run python -c "import socket; print socket.getfqdn();" show new hostname - 'vdsClient -s 0 getVmStats $uuid' show: guestName = new hostname guestFQDN = new hostname
RHEV-M 3.5.0 has been released