[Engine-devel] about ovirt-shell

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_000B_01CE56FC.F4262150 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all: When I connect to ovirt-engine use ovirt-shell like this: It's failed, I don't know why. The ovirt-engine is build and deployed by myself and base ovirt-engine 3.2 But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well. ++++++++++++++++++++++++++++++++++++++++++ Welcome to oVirt shell ++++++++++++++++++++++++++++++++++++++++++ [oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111 error: [ERROR]::No response returned from server. If you're using HTTP protocol against a SSL secured server, then try using HTTPS instead. [oVirt shell (disconnected)]# ------=_NextPart_000_000B_01CE56FC.F4262150 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"\6279\6CE8\6846\6587\672C Char"; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:9.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.Char {mso-style-name:"\6279\6CE8\6846\6587\672C Char"; mso-style-priority:99; mso-style-link:\6279\6CE8\6846\6587\672C;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple = style=3D'text-justify-trim:punctuation'> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US>Hi all:<o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> When I connect to ovirt-engine use ovirt-shell like this: It’s failed, = I don’t know why.<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>The ovirt-engine is build and = deployed by myself and base ovirt-engine 3.2<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> But when I connect to the ovirt-engine use rmp installed, ovirt-shell work = well.<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US>++++++++++++++++++++++++++++++++++++++++++<o:p></o:p></span>= </p> <p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> = Welcome to oVirt shell<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> ++++++++++++++++++++++++++++++++++++++++++<o:p></o:p><= /span></p> <p class=3DMsoNormal><span = lang=3DEN-US> = <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US> = <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>[oVirt shell (disconnected)]# = connect --url http://192.168.1.201 --user admin@internal --password = 111111<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>error: [ERROR]::No response = returned from server. If you're using HTTP protocol<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>against a SSL secured server, = then try using HTTPS instead.<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>[oVirt shell = (disconnected)]#<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> </div> </body> </html> ------=_NextPart_000_000B_01CE56FC.F4262150--

On 05/22/2013 09:59 AM, wlbleaboy@126 wrote:
Hi all:
When I connect to ovirt-engine use ovirt-shell like this: It’s failed, I don’t know why.
The ovirt-engine is build and deployed by myself and base ovirt-engine 3.2
But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well.
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111
The URL should be in a format of http://address:port/api for example: if running from the command line, you can connect to it via (verify your host address and port): ovirt-shell -l http://localhost:8080/api -u admin@internal -c and provide the password when prompted to.
error: [ERROR]::No response returned from server. If you're using HTTP protocol
against a SSL secured server, then try using HTTPS instead.
[oVirt shell (disconnected)]#
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

I got the failed info like this error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib when I used ovirt-shell -l https://192.168.1.198:443/api -u admin@internal -c -A ~/.spicec/ca.crt -----ÓÊŒþÔŒþ----- ·¢ŒþÈË: Moti Asayag [mailto:masayag@redhat.com] ·¢ËÍʱŒä: 2013Äê5ÔÂ22ÈÕ 15:36 ÊÕŒþÈË: wlbleaboy@126 ³ËÍ: engine-devel@ovirt.org Ö÷Ìâ: Re: [Engine-devel] about ovirt-shell On 05/22/2013 09:59 AM, wlbleaboy@126 wrote:
Hi all:
When I connect to ovirt-engine use ovirt-shell like this: It¡¯s failed, I don¡¯t know why.
The ovirt-engine is build and deployed by myself and base ovirt-engine 3.2
But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well.
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111
The URL should be in a format of http://address:port/api for example: if running from the command line, you can connect to it via (verify your host address and port): ovirt-shell -l http://localhost:8080/api -u admin@internal -c and provide the password when prompted to.
error: [ERROR]::No response returned from server. If you're using HTTP protocol
against a SSL secured server, then try using HTTPS instead.
[oVirt shell (disconnected)]#
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 05/22/2013 01:21 PM, wlbleaboy@126 wrote:
I got the failed info like this
error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
when I used ovirt-shell -l https://192.168.1.198:443/api -u admin@internal -c -A ~/.spicec/ca.crt Try without -c -c is to connect automatically using the credentials present in file ~/.ovirtshellrc
-----邮件原件----- 发件人: Moti Asayag [mailto:masayag@redhat.com] 发送时间: 2013年5月22日 15:36 收件人: wlbleaboy@126 抄送: engine-devel@ovirt.org 主题: Re: [Engine-devel] about ovirt-shell
On 05/22/2013 09:59 AM, wlbleaboy@126 wrote:
Hi all:
When I connect to ovirt-engine use ovirt-shell like this: It’s failed, I don’t know why.
The ovirt-engine is build and deployed by myself and base ovirt-engine 3.2
But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well.
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111 The URL should be in a format of http://address:port/api
for example:
if running from the command line, you can connect to it via (verify your host address and port):
ovirt-shell -l http://localhost:8080/api -u admin@internal -c
and provide the password when prompted to.
error: [ERROR]::No response returned from server. If you're using HTTP protocol
against a SSL secured server, then try using HTTPS instead.
[oVirt shell (disconnected)]#
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Aravinda

I got the failed info like this
error: [ERROR]::oVirt API connection failure, [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system
Hi, all: I solved it. The ovirtsdk I used is ovirt-engine-sdk 3.2.0.6, the ovirt-engine is 3.2, Afternoon, I update ovirt-sdek-engine to 3.2.0.11, and when assign --ca-file I use "/home/leaboy/.spicec/ca.crt" replace the " ~/.spicec/ca.crt" And then, it work well. -----ÓÊŒþÔŒþ----- ·¢ŒþÈË: Aravinda [mailto:avishwan@redhat.com] ·¢ËÍʱŒä: 2013Äê5ÔÂ22ÈÕ 17:41 ÊÕŒþÈË: wlbleaboy@126 ³ËÍ: 'Moti Asayag'; engine-devel@ovirt.org Ö÷Ìâ: Re: [Engine-devel] ŽðžŽ: about ovirt-shell On 05/22/2013 01:21 PM, wlbleaboy@126 wrote: lib
when I used ovirt-shell -l https://192.168.1.198:443/api -u admin@internal -c -A ~/.spicec/ca.crt
Try without -c -c is to connect automatically using the credentials present in file ~/.ovirtshellrc
-----ÓÊŒþÔŒþ----- ·¢ŒþÈË: Moti Asayag [mailto:masayag@redhat.com] ·¢ËÍʱŒä: 2013Äê5ÔÂ22ÈÕ 15:36 ÊÕŒþÈË: wlbleaboy@126 ³ËÍ: engine-devel@ovirt.org Ö÷Ìâ: Re: [Engine-devel] about ovirt-shell
On 05/22/2013 09:59 AM, wlbleaboy@126 wrote:
Hi all:
When I connect to ovirt-engine use ovirt-shell like this: It¡¯s failed, I don¡¯t know why.
The ovirt-engine is build and deployed by myself and base ovirt-engine 3. 2
But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well.
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111 The URL should be in a format of http://address:port/api
for example:
if running from the command line, you can connect to it via (verify your host address and port):
ovirt-shell -l http://localhost:8080/api -u admin@internal -c
and provide the password when prompted to.
error: [ERROR]::No response returned from server. If you're using HTTP protocol
against a SSL secured server, then try using HTTPS instead.
[oVirt shell (disconnected)]#
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Aravinda

On 05/22/2013 09:59 AM, wlbleaboy@126 wrote:
Hi all:
When I connect to ovirt-engine use ovirt-shell like this: It’s failed, I don’t know why.
The ovirt-engine is build and deployed by myself and base ovirt-engine 3.2
But when I connect to the ovirt-engine use rmp installed, ovirt-shell work well.
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (disconnected)]# connect --url http://192.168.1.201 --user admin@internal --password 111111
error: [ERROR]::No response returned from server. If you're using HTTP protocol
against a SSL secured server, then try using HTTPS instead.
the problem exactly as stated in this error message, e.g you're using http protocol in your url, while server running over ssl, just do --url https://192.168.1.201
[oVirt shell (disconnected)]#
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D
participants (4)
-
Aravinda
-
Michael Pasternak
-
Moti Asayag
-
wlbleaboy@126