[Users] oVirt 3.0 - VM shows paused status only

Roy Golan rgolan at redhat.com
Wed May 8 11:22:59 UTC 2013


On 05/08/2013 12:59 PM, Sven Knohsalla wrote:
> Hi Omer,
>
> the VM is also shown as "paused" in the WebGUI and I cannot stop /shutdown the paused VM
> " Error while executing action SetVmTicket: Unexpected exception" (WebGUI error)
>
> If I run vdsClient -s 0 destroy 5a34c59f-a860-4e55-b1b0-2a96ce875a86 on the hypervisor the command shell doesn't react
>
> Same on shell when trying to run the following command:
> --
> [root at deovn-a03 ~]# vdsClient -s 0 pause 5a34c59f-a860-4e55-b1b0-2a96ce875a86
> Unexpected exception
The VM is in VDSM cache and doesn't really exist so its excepted that 
the destroy would fail.(exception are always unexpected )

a restart to VDSM will help here:

$ service vdsmd restart

you can track the VDSM log:

/var/log/vdsm/vdsm.log

and the engine should be recovering too now.

let us know if you got things working.
> --
>
> engine.log output:
>
> 2013-05-08 11:54:53,972 INFO  [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (QuartzScheduler_Worker-43) vds::refreshVmList vm id c8496856-3974-4aaf-87a1-eb059037b37d status = Down on vds deovn-a03 ignoring it in the refresh till migration is done
>
> 2013-05-08 11:54:53,979 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] (pool-5-thread-46) START, DestroyVDSCommand(vdsId = 48a9d32e-b257-11e2-aa96-5254005cbe44, vmId=5a34c59f-a860-4e55-b1b0-2a96ce875a86, force=false, secondsToWait=0, gracefully=false), log id: 30796f16
>
> So it seems the origin migration wasn't finished, I'm not able to restart the migration to another hypervisor..
>
>
> Well, do I have any option if the VM won't come down with console command?
>
> Really appreciate your help!
>
> Kind regards,
> Sven.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Omer Frenkel [mailto:ofrenkel at redhat.com]
> Gesendet: Mittwoch, 8. Mai 2013 11:17
> An: Sven Knohsalla
> Cc: Roy Golan; users at ovirt.org
> Betreff: Re: [Users] oVirt 3.0 - VM shows paused status only
>
>
>
> ----- Original Message -----
>> From: "Sven Knohsalla" <s.knohsalla at netbiscuits.com>
>> To: "Roy Golan" <rgolan at redhat.com>
>> Cc: users at ovirt.org
>> Sent: Wednesday, May 8, 2013 12:01:23 PM
>> Subject: Re: [Users] oVirt 3.0 - VM shows paused status only
>>
>> Hi Roy!
>>
>> Update:
>> Ok, need to use param -s (SSL) to get proper output:
>> vdsClient -s 0 getAllVmStats | grep Paused
>>
>>
>> 5a34c59f-a860-4e55-b1b0-2a96ce875a86
>>          Status = Paused
>>          kvmEnable = true
>>          network = {}
>>          acpiEnable = true
>>          monitorResponse = 0
>>          vmType = kvm
>>          pid = 0
>>          disks = {}
>>          displayIp = 172.16.101.103
>>          elapsedTime = 19426
>>          timeOffset = 889311
>>          displaySecurePort = -1
>>          boot = c
>>          displayPort = -1
>>          clientIp =
>>          displayType = qxl
>>          nice =
>>
>> So the VM is shown on the destination hypervisor as paused ( exactly
>> what I see in oVirt GUI :) )
>>
>> Is there a possibility to use the ID to fake/change the current status?
>>
> if the vm is paused on this host (as vdsm report) and in the engine the vm is marked as run on this host, what is the error you see when you try to stop (use poewr-off) in the engine?
> you can also try manually doing that on the host with vdsClient:
> vdsClient -s 0 destroy 5a34c59f-a860-4e55-b1b0-2a96ce875a86
>
>> Thanks,
>> Sven
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Roy Golan [mailto:rgolan at redhat.com]
>> Gesendet: Mittwoch, 8. Mai 2013 10:51
>> An: Sven Knohsalla
>> Betreff: Re: AW: [Users] oVirt 3.0 - VM shows paused status only
>>
>> vdsClient 0 getAllVmStats
>>
>> On Wed 08 May 2013 11:45:30 AM IDT, Sven Knohsalla wrote:
>>> Hi Roy,
>>>
>>> I think there is a difference between shell commands oVirt 3.0 and > 3.1:
>>>
>>> Output:
>>>
>>> "
>>> [root at deovn-a03 ~]# vdsClient 0 list Traceback (most recent call
>>> last):
>>>     File "/usr/share/vdsm/vdsClient.py", line 1972, in <module>
>>>     File "/usr/share/vdsm/vdsClient.py", line 229, in do_list
>>>     File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
>>>     File "/usr/lib64/python2.7/xmlrpclib.py", line 1575, in __request
>>>     File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
>>>     File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request
>>>     File "/usr/lib64/python2.7/httplib.py", line 1027, in getresponse
>>>     File "/usr/lib64/python2.7/httplib.py", line 407, in begin
>>>     File "/usr/lib64/python2.7/httplib.py", line 371, in _read_status
>>> BadStatusLine: '
>>>
>>>
>>> Unfortunately I'm not common with the command syntax, although the
>>> help for vdsClient shows the same command..
>>>
>>> Thanks for any further help here!
>>>
>>> Best, Sven.
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Roy Golan [mailto:rgolan at redhat.com]
>>> Gesendet: Mittwoch, 8. Mai 2013 10:29
>>> An: Sven Knohsalla
>>> Betreff: Re: [Users] oVirt 3.0 - VM shows paused status only
>>>
>>> On Wed 08 May 2013 10:14:03 AM IDT, Sven Knohsalla wrote:
>>>> Hi,
>>>>
>>>> thanks for the fast response.
>>>>
>>>> All three hosts are up, had to reboot the host which the VM should
>>>> normally run,
>>>>
>>>> so the VM is marked to run on the 3^rd HV (WebGUI).
>>>>
>>>> virsh –r list just shows the actual running VMs on the marked
>>>> hypervisor, but the paused VM is missing.
>>>>
>>>> Would it help to reboot the 3^rd HV to change the state of this VM?
>>>>
>>> whats the output of "vdsClient 0 list" on that HV?
>>>
>>>> How is it possible to force a VM status?
>>>>
>>>> Thanks in advance!
>>>>
>>>> Best, Sven.
>>>>
>>>> *Von:*Omer Frenkel [mailto:ofrenkel at redhat.com]
>>>> *Gesendet:* Mittwoch, 8. Mai 2013 08:26
>>>> *An:* Sven Knohsalla
>>>> *Cc:* users at ovirt.org
>>>> *Betreff:* Re: [Users] oVirt 3.0 - VM shows paused status only
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> -
>>>> --
>>>>
>>>>       *From: *"Sven Knohsalla" <s.knohsalla at netbiscuits.com
>>>>       <mailto:s.knohsalla at netbiscuits.com>>
>>>>       *To: *users at ovirt.org <mailto:users at ovirt.org>
>>>>       *Sent: *Wednesday, May 8, 2013 8:24:12 AM
>>>>       *Subject: *[Users] oVirt 3.0 - VM shows paused status only
>>>>
>>>>       Hi,
>>>>
>>>>       it seems I didn’t give enough time for one VM to shutdown ( on
>>>>       2.3.0 HV) properly, so it ended up as “paused”.
>>>>
>>>>       Unfortunately I don’t have the option to unpause , the commands
>>>>       shutdown/power off/start are all failing.
>>>>
>>>>       Makes sense as the VM isn’t running on any hypervisor anymore,
>>>>
>>>>       so it must be a DB entry which has been set by the engine?
>>>>
>>>>       Is there a workaround/command to reset a paused VM on the
>>>>       engine/DB to set the status to powered off?
>>>>
>>>> well there is, but i would suggest to try the safer way first,
>>>>
>>>> what is the status of your hosts?
>>>>
>>>> what is reorted (in the ui) as the host this vm is running on?
>>>>
>>>>       Thanks in advance for your help!
>>>>
>>>>       Best,
>>>>
>>>>       Sven.
>>>>
>>>>       Sven Knohsalla |System Administration
>>>>
>>>>       Office +49 631 68036 433 | Fax +49 631 68036 111
>>>>       |E-Mails.knohsalla at netbiscuits.com
>>>>       <mailto:s.knohsalla at netbiscuits.com>| Skype: netbiscuits.admin
>>>>
>>>>       Netbiscuits GmbH | Europaallee 10 | 67657 | GERMANY
>>>>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=3a1a9d19-c305-4032-8cef-00b03c3d4c79&groupId=10211&t=1361534926402
>>>>       <http://www.netbiscuits.com/>
>>>>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=3031deca-7e56-4417-9822-3d6d72f71ef0&groupId=10211&t=1347280983812
>>>>       <https://www.netbiscuits.com/news>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=1d1a5e29-ceda-4ab1-9353-67a1e838364d&groupId=10211&t=1347281040591
>>>>       <https://twitter.com/netbiscuits>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=c99bf866-be25-4236-a0ee-dca68ec828a5&groupId=10211&t=1347280983848
>>>>       <http://www.linkedin.com/company/netbiscuits>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=d62ba951-14dc-450d-b5f1-be33884225e3&groupId=10211&t=1347280983872
>>>>       <http://www.xing.com/companies/netbiscuitsgmbh>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=7b28f500-f415-40bb-851f-0cd55beeaf45&groupId=10211&t=1347280983791
>>>>       <https://www.facebook.com/Netbiscuits>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=cc8764d0-a5ac-4623-bb63-da3ca7c97f94&groupId=10211&t=1347280983836
>>>>       <https://plus.google.com/u/0/112410769451962733032>
>>>>       https://my.netbiscuits.com/image/image_gallery?uuid=a15e871c-a11b-419c-acca-da5a0ebd5856&groupId=10211&t=1347281040599
>>>>       <http://www.youtube.com/user/netbiscuits>
>>>>
>>>>       *Register Court:*Local Court Kaiserslautern | *Commercial Register
>>>>       ID:* HR B 3604
>>>>       *Management Board*: Guido Moggert, Michael Neidhöfer, Christian
>>>>       Reitz, Martin Süß
>>>>
>>>>       This message and any files transmitted with it are confidential
>>>>       and intended solely for the use of the individual or entity to
>>>>       whom they are addressed. It may also be privileged or otherwise
>>>>       protected by work product immunity or other legal rules. Please
>>>>       notify the sender immediately by e-mail if you have received this
>>>>       e-mail by mistake and delete this e-mail from your system. If you
>>>>       are not the intended recipient you are notified that disclosing,
>>>>       copying, distributing or taking any action in reliance on the
>>>>       contents of this information is strictly prohibited.
>>>>
>>>>       Warning: Although Netbiscuits has taken reasonable precautions to
>>>>       ensure no viruses are present in this email, the company cannot
>>>>       accept responsibility for any loss or damage arising from the use
>>>>       of this email or attachments.
>>>>
>>>>       Beschreibung: Beschreibung:
>>>>       http://www.netbiscuits.com/image/image_gallery?uuid=0ba7711a-a277-4ea0-acb0-17fe13c3089d&groupId=10211&t=1348560850164Please
>>>>       consider the environment before printing
>>>>
>>>>
>>>>       _______________________________________________
>>>>       Users mailing list
>>>>       Users at ovirt.org <mailto:Users at ovirt.org>
>>>>       http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users




More information about the Users mailing list