Bug 1155921 - Guest VM Reboot not working after upgrade to 3.5
Summary: Guest VM Reboot not working after upgrade to 3.5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-guest-agent
Version: 3.5
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: 3.5.1
Assignee: Vinzenz Feenstra [evilissimo]
QA Contact: Pavel Stehlik
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-23 07:59 UTC by punit
Modified: 2016-02-10 19:49 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-21 16:13:29 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)
reboot (20.87 KB, image/jpeg)
2014-10-27 02:21 UTC, punit
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 35260 0 master MERGED sudoers: Fix of typo ovirt-shutdown-wrapper{s,} Never
oVirt gerrit 35282 0 ovirt-3.5 MERGED sudoers: Fix of typo ovirt-shutdown-wrapper{s,} Never

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.


Note You need to log in before you can comment on or make changes to this bug.