--=_6302db3a4911040f3c08927c=786c1587-5e71-57a9-b3fa-8ff7635c8c11_=
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hello,=0A=
=0A=
=0A=
=0A=
I'm trying to script stopping all vms at once but when I'm using example =
=0A=
given in documentation, it won't work. The problem is when I read the =
=0A=
command containing pipe from file. When the same command is pasted into =
=0A=
stdin, everything works fine.=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
[root@ovirt-administration ~]# ovirt-shell -c=0A=
=0A=
=0A=
=0A=
=0A=
=C2=A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
=0A=
=C2=A0>>> connected to oVirt manager 3.2.0.0 <<<=0A=
=0A=
=C2=A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=C2=A0++++++++++++++++++++++++++++++++++++++++++=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Welcome to oVirt shell=0A=
=0A=
=0A=
=0A=
=0A=
=C2=A0++++++++++++++++++++++++++++++++++++++++++=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
[oVirt shell (connected)]# list vms | grep test3=0A=
=0A=
name =C2=A0 =C2=A0 =C2=A0 : test3=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
oVirt shell (connected)]# exit=0A=
=0A=
=0A=
[root@ovirt-administration ~]#=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
But when I read from file:=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
[root@ovirt-administration ~]# ovirt-shell -c -f /root/listall.txt=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=C2=A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
=0A=
=C2=A0>>> connected to oVirt manager 3.2.0.0 <<<=0A=
=0A=
=C2=A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=
=0A=
=0A=
=0A=
=0A=
[oVirt shell (connected)]# list vms | grep lindev=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
id =C2=A0 =C2=A0 =C2=A0 =C2=A0 : cd27d9fd-611e-4a3d-8eba-ae6e50c038dc=
=0A=
=0A=
=0A=
name =C2=A0 =C2=A0 =C2=A0 : test2=0A=
=0A=
=0A=
=0A=
=0A=
id =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 77cb6321-e21f-4bfb-aae6-ee178dbd9b8a=
=0A=
=0A=
name =C2=A0 =C2=A0 =C2=A0 : test3=0A=
=0A=
=0A=
=0A=
=0A=
id =C2=A0 =C2=A0 =C2=A0 =C2=A0 : eba23051-8285-4a46-936d-25bd37c6cf8f=
=0A=
=0A=
name =C2=A0 =C2=A0 =C2=A0 : test4=0A=
=0A=
=0A=
=0A=
=0A=
[oVirt shell (connected)]# exit=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
[root@ovirt-administration ~]#=0A=
=0A=
=0A=
=0A=
=0A=
=0A=
This looks like a bug in ovirt-shell. Any thought?=0A=
=0A=
=0A=
=0A=
=0A=
Best regards=0A=
=0A=
Evgeny=0A=
=0A=
=0A=
=0A=
--=_6302db3a4911040f3c08927c=786c1587-5e71-57a9-b3fa-8ff7635c8c11_=
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body>Hello,<div><br></div><div>I'm trying
to script stopping all vm=
s at once but when I'm using example given in documentation, it won't work=
. The problem is when I read the command containing pipe from file. When t=
he same command is pasted into stdin, everything works
fine.</div><div><br=
</div><div><div>[root@ovirt-administration ~]#
ovirt-shell -c</div><div><=
br></div><div> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</=
div><div> >>> connected to oVirt manager 3.2.0.0
<<<=
;</div><div> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</=
div><div><span style=3D"font-size: 15px; line-height:
1.3;"><br></span></d=
iv><div><span style=3D"font-size: 15px; line-height:
1.3;"><br></span></di=
v><div><span style=3D"font-size: 15px; line-height:
1.3;"> ++++++++++=
++++++++++++++++++++++++++++++++</span><br></div><div><br></div><div> =
; Welcome to oVirt
shell</div><div><br><=
/div><div> ++++++++++++++++++++++++++++++++++++++++++</div></div><div=
<br></div><div><div>[oVirt shell (connected)]#
list vms | grep test3</div=
<div>name :
test3</div></div><div><br></div><div><di=
v><span style=3D"font-size: 15px; line-height: 1.3;">oVirt shell
(connecte=
d)]# exit</span><br></div><div><span style=3D"font-size:
15px; line-height=
: 1.3;">[root@ovirt-administration
~]#</span><br></div></div><div><br></di=
v><div><br></div><div>But when I read from
file:</div><div><br></div><div>=
<br></div><div><span style=3D"font-size: 15px; line-height:
1.3;">[root@ov=
irt-administration ~]# ovirt-shell -c -f
/root/listall.txt</span><br></div=
<div><div><br></div><div> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D</div><div> >>> connected to oVirt
manager 3.2.0=
.0
<<<</div><div> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D</div><div><br></div><div>[oVirt shell
(connected)]# list vms =
| grep
lindev</div><div><br></div><div><br></div><div><span
style=3D"font-=
size: 15px; line-height: 1.3;">id :
cd27d9fd-6=
11e-4a3d-8eba-ae6e50c038dc</span><br></div><div>name
=
: test2</div><div><br></div><div>id
: 77cb6321=
-e21f-4bfb-aae6-ee178dbd9b8a</div><div>name :
test3</=
div><div><br></div><div>id
: eba23051-8285-4a4=
6-936d-25bd37c6cf8f</div><div>name :
test4</div><div>=
<br></div><div><span style=3D"font-size: 15px; line-height:
1.3;">[oVirt s=
hell (connected)]#
exit</span><br></div><div><br></div><div>[root@ovirt-ad=
ministration ~]#</div></div><div><br></div><div>This
looks like a bug in o=
virt-shell. Any thought?</div><div><br></div><div>Best
regards</div><div>E=
vgeny</div><div><br></div></body></html>=
--=_6302db3a4911040f3c08927c=786c1587-5e71-57a9-b3fa-8ff7635c8c11_=--