[Users] Remove "running" Vm's from host

Hi All, Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever. The engine thinks and shows that these VM's are still running. When this host is also the SPM, you can have issues that you cannot activate storage and so on. What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running... Thanks! Cheers, Matt

------=_Part_156963_1312393399.1376835012595 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- Original Message -----
From: "Matt ." <yamakasi.014@gmail.com> To: "users" <users@ovirt.org> Sent: Sunday, August 18, 2013 5:04:21 PM Subject: [Users] Remove "running" Vm's from host
Hi All,
Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever.
The engine thinks and shows that these VM's are still running.
When this host is also the SPM, you can have issues that you cannot activate storage and so on.
What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running...
is the host in UP status? if the host is in "UP" status in the UI, and the vms are not running (you can try to run on the host "vdsClient 0 list table" to see vdsm returns) then the engine should be updated automatically with the vms statuses.
Thanks!
Cheers,
Matt
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Subject: </b>[Users] Remove "running" Vm's from host<br><div><br></div><di= v dir=3D"ltr"><div><div><div><div>Hi All,<br><div><br></div></div>Something= I have seen before and I'm testing now is that you can have that a host ha= d VM's running when it fails or whatever.<br><div><br></div></div>The engin= e thinks and shows that these VM's are still running.<br><br></div>When thi= s host is also the SPM, you can have issues that you cannot activate storag= e and so on. <br><div><br></div><br></div><div>What would be a known and de= cent way to have your SPM not running VM's, is itpossible to "remove" them = from the engine @ Host ? They are actually not running...<br></div></div></=
------=_Part_156963_1312393399.1376835012595 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id= =3D"zwchr"><blockquote style=3D"border-left:2px solid #1010FF;margin-left:5= px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-de= coration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>Fr= om: </b>"Matt ." <yamakasi.014@gmail.com><br><b>To: </b>"users" <u= sers@ovirt.org><br><b>Sent: </b>Sunday, August 18, 2013 5:04:21 PM<br><b= blockquote><div>is the host in UP status?<br></div><div>if the host is in "= UP" status in the UI, and the vms are not running (you can try to run on th= e host "vdsClient 0 list table" to see vdsm returns)<br></div><div>then the= engine should be updated automatically with the vms statuses.<br></div><di= v><br></div><blockquote style=3D"border-left:2px solid #1010FF;margin-left:= 5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-d= ecoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div= dir=3D"ltr"><div>Thanks!<br></div><div><br></div><div>Cheers,<br><div><br>= </div></div><div>Matt<br></div></div><br>__________________________________= _____________<br>Users mailing list<br>Users@ovirt.org<br>http://lists.ovir= t.org/mailman/listinfo/users<br></blockquote><div><br></div></div></body></= html> ------=_Part_156963_1312393399.1376835012595--

I get some errors on this one: # vdsClient 0 list table Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 2457, in <module> code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 287, in do_list response = self.s.getAllVmStats() File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request self.send_content(h, request_body) File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 720, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known [root@kvm-02 ~]# 2013/8/18 Omer Frenkel <ofrenkel@redhat.com>
------------------------------
*From: *"Matt ." <yamakasi.014@gmail.com> *To: *"users" <users@ovirt.org> *Sent: *Sunday, August 18, 2013 5:04:21 PM *Subject: *[Users] Remove "running" Vm's from host
Hi All,
Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever.
The engine thinks and shows that these VM's are still running.
When this host is also the SPM, you can have issues that you cannot activate storage and so on.
What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running...
is the host in UP status? if the host is in "UP" status in the UI, and the vms are not running (you can try to run on the host "vdsClient 0 list table" to see vdsm returns) then the engine should be updated automatically with the vms statuses.
Thanks!
Cheers,
Matt
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Also a DNS issue for the last error, so added the hostnames in the hosts file again and I get this now: Connection to kvm-02.domain.local:54321 refused 2013/8/18 Matt . <yamakasi.014@gmail.com>
I get some errors on this one:
# vdsClient 0 list table Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 2457, in <module> code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 287, in do_list response = self.s.getAllVmStats() File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request self.send_content(h, request_body) File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 720, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known [root@kvm-02 ~]#
2013/8/18 Omer Frenkel <ofrenkel@redhat.com>
------------------------------
*From: *"Matt ." <yamakasi.014@gmail.com> *To: *"users" <users@ovirt.org> *Sent: *Sunday, August 18, 2013 5:04:21 PM *Subject: *[Users] Remove "running" Vm's from host
Hi All,
Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever.
The engine thinks and shows that these VM's are still running.
When this host is also the SPM, you can have issues that you cannot activate storage and so on.
What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running...
is the host in UP status? if the host is in "UP" status in the UI, and the vms are not running (you can try to run on the host "vdsClient 0 list table" to see vdsm returns) then the engine should be updated automatically with the vms statuses.
Thanks!
Cheers,
Matt
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Still that odd bug that fills the vdsm.log... Working now again since vdsm didn't start 2013/8/18 Matt . <yamakasi.014@gmail.com>
Also a DNS issue for the last error, so added the hostnames in the hosts file again and I get this now:
Connection to kvm-02.domain.local:54321 refused
2013/8/18 Matt . <yamakasi.014@gmail.com>
I get some errors on this one:
# vdsClient 0 list table Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 2457, in <module> code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 287, in do_list response = self.s.getAllVmStats() File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request self.send_content(h, request_body) File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 720, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known [root@kvm-02 ~]#
2013/8/18 Omer Frenkel <ofrenkel@redhat.com>
------------------------------
*From: *"Matt ." <yamakasi.014@gmail.com> *To: *"users" <users@ovirt.org> *Sent: *Sunday, August 18, 2013 5:04:21 PM *Subject: *[Users] Remove "running" Vm's from host
Hi All,
Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever.
The engine thinks and shows that these VM's are still running.
When this host is also the SPM, you can have issues that you cannot activate storage and so on.
What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running...
is the host in UP status? if the host is in "UP" status in the UI, and the vms are not running (you can try to run on the host "vdsClient 0 list table" to see vdsm returns) then the engine should be updated automatically with the vms statuses.
Thanks!
Cheers,
Matt
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

------=_Part_747654_1629217781.1376925625282 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit sorry it seems you are using secure mode so try: vdsClient -s 0 list table ----- Original Message -----
From: "Matt ." <yamakasi.014@gmail.com> To: "Omer Frenkel" <ofrenkel@redhat.com> Cc: "users" <users@ovirt.org> Sent: Sunday, August 18, 2013 6:05:55 PM Subject: Re: [Users] Remove "running" Vm's from host
I get some errors on this one:
# vdsClient 0 list table Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 2457, in <module> code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 287, in do_list response = self.s.getAllVmStats() File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1235, in request self.send_content(h, request_body) File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content connection.endheaders() File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 739, in send self.connect() File "/usr/lib64/python2.6/httplib.py", line 720, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known [root@kvm-02 ~]#
2013/8/18 Omer Frenkel < ofrenkel@redhat.com >
From: "Matt ." < yamakasi.014@gmail.com >
To: "users" < users@ovirt.org >
Sent: Sunday, August 18, 2013 5:04:21 PM
Subject: [Users] Remove "running" Vm's from host
Hi All,
Something I have seen before and I'm testing now is that you can have that a host had VM's running when it fails or whatever.
The engine thinks and shows that these VM's are still running.
When this host is also the SPM, you can have issues that you cannot activate storage and so on.
What would be a known and decent way to have your SPM not running VM's, is itpossible to "remove" them from the engine @ Host ? They are actually not running...
is the host in UP status?
if the host is in "UP" status in the UI, and the vms are not running (you can try to run on the host "vdsClient 0 list table" to see vdsm returns)
then the engine should be updated automatically with the vms statuses.
Thanks!
Cheers,
Matt
_______________________________________________
Users mailing list
Users@ovirt.org
verbose=3Dself.__verbose<br> File "/usr/lib64/pyt= hon2.6/xmlrpclib.py", line 1235, in request<br> self.send= _content(h, request_body)<br> File "/usr/lib64/python2.6/xmlrpclib.py", line 1349, in send_content= <br> connection.endheaders()<br> File "/usr/lib64/p= ython2.6/httplib.py", line 908, in endheaders<br> self._s= end_output()<br> File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output<br= self.send(msg)<br> File "/usr/lib64/python2.6/htt=
------=_Part_747654_1629217781.1376925625282 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"font-family: times new roman, new york, times, se= rif; font-size: 12pt; color: #000000"><div>sorry it seems you are using sec= ure mode so try:<br></div><div>vdsClient -s 0 list table</div><div><br></di= v><div><br></div><hr id=3D"zwchr"><blockquote style=3D"border-left:2px soli= d #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;fo= nt-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif= ;font-size:12pt;"><b>From: </b>"Matt ." <yamakasi.014@gmail.com><br><= b>To: </b>"Omer Frenkel" <ofrenkel@redhat.com><br><b>Cc: </b>"users" = <users@ovirt.org><br><b>Sent: </b>Sunday, August 18, 2013 6:05:55 PM<= br><b>Subject: </b>Re: [Users] Remove "running" Vm's from host<br><div><br>= </div><div dir=3D"ltr">I get some errors on this one:<br><div><br></div># v= dsClient 0 list table<br>Traceback (most recent call last):<br> File = "/usr/share/vdsm/vdsClient.py", line 2457, in <module><br>  = ; code, message =3D commands[command][0](commandArgs)<br> File "/usr/share/vdsm/vdsClient.py", line 287, in do_list<br> &= nbsp; response =3D self.s.getAllVmStats()<br> File "/usr/lib64/= python2.6/xmlrpclib.py", line 1199, in __call__<br> retur= n self.__send(self.__name, args)<br> File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request<br= plib.py", line 739, in send<br> self.connect()<br> = File "/usr/lib64/python2.6/httplib.py", line 720, in connect<br> self.timeout)<br> File "/usr/lib64/python2.6/socke= t.py", line 553, in create_connection<br> for res in geta= ddrinfo(host, port, 0, SOCK_STREAM):<br>gaierror: [Errno -2] Name or servic= e not known<br>[root@kvm-02 ~]# <br> <br></div><div class=3D"gmail_extra"><br><div><br></div><div class=3D"gmail= _quote">2013/8/18 Omer Frenkel <span dir=3D"ltr"><<a href=3D"mailto:ofre= nkel@redhat.com" target=3D"_blank">ofrenkel@redhat.com</a>></span><br><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex"> <div><div style=3D"font-size:12pt;font-family:times new roman,new york,time= s,serif"><div><br></div><div><br></div><hr><blockquote style=3D"padding-lef= t:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetic= a,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px = solid #1010ff"> <b>From: </b>"Matt ." <<a href=3D"mailto:yamakasi.014@gmail.com" target= =3D"_blank">yamakasi.014@gmail.com</a>><br><b>To: </b>"users" <<a hre= f=3D"mailto:users@ovirt.org" target=3D"_blank">users@ovirt.org</a>><br> <b>Sent: </b>Sunday, August 18, 2013 5:04:21 PM<br><b>Subject: </b>[Users] = Remove "running" Vm's from host<div><div class=3D"h5"><br><div><br></div><d= iv dir=3D"ltr"><div><div><div><div>Hi All,<br><div><br></div> </div>Something I have seen before and I'm testing now is that you can have= that a host had VM's running when it fails or whatever.<br><div><br></div>= </div>The engine thinks and shows that these VM's are still running.<br> <br></div>When this host is also the SPM, you can have issues that you cann= ot activate storage and so on. <br><div><br></div><br></div><div>What would= be a known and decent way to have your SPM not running VM's, is itpossible= to "remove" them from the engine @ Host ? They are actually not running...= <br> </div></div></div></div></blockquote><div>is the host in UP status?<br></di= v><div>if the host is in "UP" status in the UI, and the vms are not running= (you can try to run on the host "vdsClient 0 list table" to see vdsm retur= ns)<br> </div><div>then the engine should be updated automatically with the vms sta= tuses.<br></div><div><br></div><blockquote style=3D"padding-left:5px;font-s= ize:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans= -serif;text-decoration:none;font-weight:normal;border-left:2px solid #1010f= f"> <div dir=3D"ltr"><div>Thanks!<br></div><div><br></div><div>Cheers,<br><div>= <br></div></div><div>Matt<br></div></div><br>______________________________= _________________<br>Users mailing list<br><a href=3D"mailto:Users@ovirt.or= g" target=3D"_blank">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/users" target=3D"_blank"=
http://lists.ovirt.org/mailman/listinfo/users</a><br></blockquote><div><br= </div></div></div></blockquote></div><br></div> </blockquote><div><br></div></div></body></html> ------=_Part_747654_1629217781.1376925625282--
participants (2)
-
Matt .
-
Omer Frenkel