Adding Vinzenz and the list, since they should know of a possible agent bug.
On Mon, Jun 16, 2014 at 05:40:59PM +0800, John Xue wrote: > On Fri, Jun 13, 2014 at 6:19 PM, Dan Kenigsberg <dan...@redhat.com> wrote: > > On Fri, Jun 13, 2014 at 09:22:37AM +0800, John Xue wrote: > >> I went through the xfce GUI options "Settings Manager" - "Power > >> Manager" to the field "When power button is pressed", set to power > >> off, but only successful one time, after reboot it was already set to > >> "Ask". If no one login to guest(just power on from console, and power > >> off), it always fail. > >> > >> I try to modify acpi configuration: > >> #cat /etc/acpi/events/powerbtn > >> event=button[ /]power > >> #action=/etc/acpi/powerbtn.sh > >> action=/sbin/poweroff > >> > >> It work, but I think this isn't a good solution. Any idea? Thanks! > >> > >> On Thu, Jun 12, 2014 at 11:50 PM, Dan Kenigsberg <dan...@redhat.com> wrote: > >> > On Thu, Jun 12, 2014 at 01:37:19PM +0000, Sven Kieske wrote: > >> >> are you sure acpid is running inside the guest? > >> > > >> > ... or a guest agent? > >> > >> yes, both of them are running in guest. > >> > >> > > >> > Can you find the shutdown request on /var/log/vdsm/vdsm.log on the host > >> > that runs your guest? > >> > >> yes, this is the log: > >> > >> Thread-158109::DEBUG::2014-06-12 > >> 16:08:26,589::BindingXMLRPC::965::vds::(wrapper) client > >> [10.10.10.75]::call vmShutdown with > >> ('b552d1aa-bc35-4788-a448-1726d4b984d5', '30', 'System Administrator > >> has initiated shutdown of this Virtual Machine. Virtual Machine is > >> shutting down.') {} flowID [5939b847] > >> Thread-158109::DEBUG::2014-06-12 > >> 16:08:26,590::vm::2532::vm.Vm::(shutdown) > >> vmId=`b552d1aa-bc35-4788-a448-1726d4b984d5`::guestAgent shutdown > >> called > >> Thread-158109::DEBUG::2014-06-12 > >> 16:08:26,590::guestIF::304::vm.Vm::(desktopShutdown) > >> vmId=`b552d1aa-bc35-4788-a448-1726d4b984d5`::desktopShutdown called > >> Thread-158109::DEBUG::2014-06-12 > >> 16:08:26,591::BindingXMLRPC::972::vds::(wrapper) return vmShutdown > >> with {'status': {'message': 'Machine shut down', 'code': 0}} > > > > I there no attempt to use ACPI lower in the logs? > > > > Anyway, it seems that an ACPI even is received by the guest. Could you > > now share the log of your guest agent, in order to see if it received > > the shutdown request and handled it somehow? > > This is the log: > Dummy-2::INFO::2014-06-16 > 17:01:06,001::OVirtAgentLogic::266::root::Received an external > command: shutdown... > Dummy-2::INFO::2014-06-16 > 17:01:06,001::OVirtAgentLogic::291::root::Shutting down (timeout = 30, > message = 'System Administrator has initiated shutdown of this Virtual > Machine. Virtual Machine is shutting down.') > Dummy-2::DEBUG::2014-06-16 > 17:01:06,002::GuestAgentLinux2::178::root::Executing shutdown command: > ['/usr/share/ovirt-guest-agent/ovirt-shutdown', '-h', '+1', u'"System > Administrator has initiated shutdown of this Virtual Machine. Virtual > Machine is shutting down."'] > > After check this log, I think I find the problem, the ovirthguest user > haven't permission to sudo, so I add ovirtagent to sudoers. > %ovirtagent ALL NOPASSWD: > /usr/share/ovirt-guest-agent/ovirt-shutdown-wrapper.sh > > It work. But I find another problem. I just modify a guest of pool, > after reboot, I miss sodoers config, it is back to orignal. How to > keep this config without change template? > > Thank you! > > -- > Regards, > John Xue _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users