Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1155921

Summary: Guest VM Reboot not working after upgrade to 3.5
Product: [Retired] oVirt Reporter: punit <hypunit>
Component: ovirt-guest-agentAssignee: Vinzenz Feenstra [evilissimo] <vfeenstr>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5CC: bugs, danken, ecohen, gklein, hypunit, iheim, lsurette, michal.skrivanek, rbalakri, Rhev-m-bugs, vfeenstr, yeylon
Target Milestone: ---   
Target Release: 3.5.1   
Hardware: All   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 16:13:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
reboot none

Description punit 2014-10-23 07:59:04 UTC
Description of problem:


Version-Release number of selected component (if applicable): Ovirt 3.5


How reproducible:Create VM of Ubuntu 14.04 or Debian 7.6 and install the guest agent and try to reboot through API or portal....it display that it's done but actually it's not...


Steps to Reproduce:
1. Press the reboot button of the guest VM (Ubuntu 14 or Debian 7.6) from Ovirt GUI portal.
2. Dashboard shows it's rebooted but actually it's not rebooted.
3. Even through API the same...

Actual results: Not rebooted...even no command shooted to guest VM...


Expected results: Guest VM (Ubuntu and debian) Should reboot...


Additional info: Only Ubuntu and debian has this problem...centos and fedora is ok....

Comment 1 Dan Kenigsberg 2014-10-24 10:40:39 UTC
Can you share vdsm.log and and in-guest agent logs?

Which versions of Engine, vdsm and guest agent are you using?

Comment 2 punit 2014-10-27 02:21:28 UTC
Created attachment 950876 [details]
reboot

Comment 3 punit 2014-10-27 02:24:55 UTC
Hi Dan,

I am using the following :- 

Engine :- Ovirt 3.5
Ovirt_guest-agent :- 1.0.10.2-1.1
VDSM :- vdsm-4.16.7-1.gitdb83943.el6

----------------
root@ubntu:/var/log/ovirt-guest-agent# tail -f  ovirt-guest-agent.log
Dummy-2::INFO::2014-10-27 10:02:41,123::OVirtAgentLogic::270::root::Received an external command: shutdown...
Dummy-2::INFO::2014-10-27 10:02:41,124::OVirtAgentLogic::295::root::Rebooting (timeout = 0, message = 'System Administrator has initiated shutdown of this Virtual Machine. Virtual Machine is shutting down.')
^C
root@ubntu:/var/log/ovirt-guest-agent#
--------------

Comment 4 Michal Skrivanek 2014-10-27 13:11:14 UTC
Ovirt_guest-agent :- 1.0.10.2-1.1

is there recent enough?

Comment 5 punit 2014-10-28 01:53:45 UTC
Hi Michal,

Do i need to update it ?? It seems this one is the latest...

Comment 6 Vinzenz Feenstra [evilissimo] 2014-11-10 14:11:13 UTC
@Michal: Yes this is currently the latest version.

@punit: 

Could you please check that the following file exists /etc/sudoers.d/50_ovirt-guest-agent 
If it does exist please attach it to the bug.
Thanks.

Comment 7 punit 2014-11-11 02:02:59 UTC
Hi Vinzenz,

Yes...this file is exists in the sudoers.d directory with the following contents :- 

------------
root@ubuntu-1:~# cat /etc/sudoers.d/50_ovirt-guest-agent
Cmnd_Alias OVIRTAGENT_SCRIPTS =\
    /usr/share/ovirt-guest-agent/ovirt-hibernate-wrapper.sh *,\
    /usr/share/ovirt-guest-agent/ovirt-shutdown-wrappers.sh *,\
    /usr/share/ovirt-guest-agent/ovirt-locksession-wrapper.sh

ovirtagent ALL= NOPASSWD: OVIRTAGENT_SCRIPTS
Defaults:ovirtagent !requiretty
Defaults:ovirtagent !syslog
root@ubuntu-1:~#
-----------

Thanks,
Punit

Comment 8 Vinzenz Feenstra [evilissimo] 2014-11-18 07:52:35 UTC
Please for now as a workaround please update the /etc/sudoers.d/50_ovirt-guest-agent file:

# sed -i s/ovirt-shutdown-wrappers/ovirt-shutdown-wrapper/ /etc/sudoers.d/50_ovirt-guest-agent

Comment 9 Sandro Bonazzola 2015-01-21 16:13:29 UTC
oVirt 3.5.1 has been released and since this bug is targeted 3.5.1 and in modified state, it should be included in this release.
Please re-target and move nack to modified if this assumption is not valid for this bug.

Comment 10 Vinzenz Feenstra [evilissimo] 2015-01-22 11:25:12 UTC
no, this is ok.All packages have been now released.